User:Fandyllic/wowwiki.js

//

// Disable tooltip hovers code from Pcj's user page... should be enabled globally now. // wowwiki tooltips from Template:Loot //document.write(' ');

// Show both Search Boxes function twoSearch { var googleSearch = document.getElementById('p-search').innerHTML.replace("Search", "Google Search"); var wikiSearch = " Wiki Search    "; document.getElementById("p-search").innerHTML = googleSearch + wikiSearch; }

// changes the personal links (at the top) to include direct links to // the customized CSS and JS pages, shortens the other links

function changePersonal { var divs = document.getElementsByTagName('div'); document.getElementById('p-personal').innerHTML = " Personal tools Fandyllictalk<a href='/Special:Preferences'>preferences</a></li><a href='/Special:Watchlist'>watchlist</a></li><a href='/Special:Contributions/Fandyllic'>contributions</a></li><a href='/User:Fandyllic/wowwiki.css'>css</a></li><a href='/User:Fandyllic/wowwiki.js'>js</a></li><a href='/Special:Userlogout'>logout</a></li></ul> "; // add the following back if you want "what links here" in this area: // <a href='/Special:Whatlinkshere/"+ escape(wgPageName) +"'>what links here</a></li> }

// adds "what links here" tab to right of normal page tabs function changeTabs { if ( escape(wgPageName) != "Special%3AWhatlinkshere" ) { var divs = document.getElementsByTagName('div'); var tabHTML = document.getElementById('p-cactions').innerHTML; var newTabHTML = tabHTML.replace(/<\/ul>/i,'') + "<a href='/Special:Whatlinkshere/"+ escape(wgPageName) +"'>What links here</a></li></ul>"; document.getElementById('p-cactions').innerHTML = newTabHTML; } }

addOnloadHook(twoSearch); addOnloadHook(changePersonal); addOnloadHook(changeTabs);

// install wikipedia:User:Cacycle/wikEd in-browser text editor // document.write('<script type="text/javascript" src="' // + 'http://en.wikipedia.org/w/index.php?title=User:Cacycle/wikEd.js'  // + '&action=raw&ctype=text/javascript"></' + 'script>');

// mobtooltips (test based on User:Pcj/npctooltip.js) // disabled, now that mob template uses NPC // document.write('<script type="text/javascript" src=" \ // http://www.wowwiki.com/index.php?title=User:Fandyllic/mobtooltip.js \  // &action=raw&ctype=text/javascript&dontcountme=s"> ');

//