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 Fandyllictalkpreferences</a></li><li id='pt-watchlist'>watchlist</a></li><li id='pt-contributions'>contributions</a></li><li id='pt-mycss'>css</a></li><li id='pt-myjs'>js</a></li><li id='pt-logout'>logout</a></li></ul> "; // add the following back if you want "what links here" in this area: // <li id='pt-wlh'>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,'') + "<li id='ca-linkshere'>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"> ');

//