Gaming
 
[Taurmindo]

Taurmindo 754 edits since June 24, 2007

754

User:Taurmindo/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'>Find or 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='wiki it' type='submit'>&nbsp;<input name='fulltext' class='searchButton' id='mw-searchButton' value='search' type='submit'></div></form></div>";
}

/* adds hover tooltip on loot template */
document.write('<script type="text/javascript" src="http://www.wowwiki.com/index.php?title=User:Pcj/itemtooltip.js&action=raw&ctype=text/javascript&dontcountme=s"></script>');

/* does everything */
function doStuff() {
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|Taurmindo]]
[[Category:User:Taurmindo]]
*/