Gaming
 
[Kirkburn]

Kirkburn 28,227 edits since May 20, 2006

28,227

User:Kirkburn/wowwiki.js

From WoWWiki

Image:Icon-warning-22x22.png Note: After saving, you may have to bypass your browser's cache to see the changes.

  • Mozilla / Firefox / Safari: hold down Shift while clicking Reload, or press Ctrl-Shift-R (Cmd-Shift-R on Apple Mac)
  • Internet Explorer: hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Konqueror: simply click the Reload button, or press F5
  • Opera users may need to completely clear the cache in Tools→Preferences.
/*
<pre>
*/

/* changes the Google search box to MediaWiki search box */
function changeSearch() {
document.getElementById('p-search').innerHTML = "<h5><label for='searchInput'>Search</label></h5><div id='searchBody' class='pBody'><form action='/index.php?title=Special:Search' id='searchform'><div><input id='searchInput' name='search' title='Search WoWWiki [alt-shift-f]' accesskey='f' value='' type='text'><input name='go' class='searchButton' id='searchGoButton' value='Go' type='submit'>&nbsp;<input name='fulltext' class='searchButton' id='mw-searchButton' value='Search' type='submit'></div></form></div>";
}

/* changes the personal links (at the top) to include direct links to the customized CSS and JS pages */
function changePersonal() {
document.getElementById('p-personal').innerHTML = "<h5>Personal tools</h5><div class='pBody'><ul><li id='pt-userpage'><a href='/User:Kirkburn'>Kirkburn</a></li><li id='pt-mytalk'><a href='/User_talk:Kirkburn'>My talk</a></li><li id='pt-mycss'><a href='/User:Kirkburn/wowwiki.css'>CSS</a></li><li id='pt-myjs'><a href='/User:Kirkburn/wowwiki.js'>JS</a></li><li id='pt-preferences'><a href='/Special:Preferences'>My preferences</a></li><li id='pt-watchlist'><a href='/Special:Watchlist'>My watchlist</a></li><li id='pt-contributions'><a href='/Special:Contributions/Kirkburn'>My contributions</a></li><li id='pt-logout'><a href='/Special:Userlogout'>Log out</a></li></ul></div>";

}

/* does everything */
function doStuff() {
changePersonal();
changeSearch();
}

/* makes the page wait until it's loaded before it does everything, otherwise it won't be able to access the parts of the page which haven't loaded yet */
addOnloadHook(doStuff);

/*
</pre>
[[Category:User JS|Kirkburn]]
[[Category:User:Kirkburn]]
*/