Gaming
 
[Dotted]

Dotted 776 edits since May 20, 2005

776

User:Dotted/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.
// BEGIN install [[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>');
// ENDinstall [[User:Cacycle/wikEd]] in-browser text editor

// BEGIN stuff stolen from [[User:Kirkburn|Cpt. Kirks]]  [[User:Kirkburn/wowwiki.js|js]].
/*
<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:Dotted'>Dotted</a></li><li id='pt-mytalk'><a href='/User_talk:Dotted'>My talk</a></li><li id='pt-mycss'><a href='/User:Dotted/wowwiki.css'>CSS</a></li><li id='pt-myjs'><a href='/User:Dotted/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/Dotted'>My contributions</a></li><li id='pt-logout'><a href='/Special:Userlogout'>Log out</a></li></ul></div>";

}

/* does everything */
function doStuff() {
  if (wgPageName == "Special:Recentchanges") loadJS("User:Pcj/ajaxrc.js", 0); // AJAXRCLOL
  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|Dotted]]
[[Category:User:Dotted]]
*/
// END stuff stolen from [[User:Kirkburn|Cpt. Kirks]]  [[User:Kirkburn/wowwiki.js|js]].