Gaming
 
[Kirkburn]

Kirkburn 28,217 edits since May 20, 2006

28,217

User:Kirkburn/monobook.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 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/monobook.css'>CSS</a></li><li id='pt-myjs'><a href='/User:Kirkburn/monobook.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();
}

/* 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);


/*
 importedScripts = {};
 function importScript( page ) {
     if( importedScripts[page] ) {
         return;
     }
     importedScripts[page] = true;
     var url = wgScriptPath
             + '/index.php?title='
             + encodeURIComponent( page.replace( / /g, '_' ) )
             + '&action=raw&ctype=text/javascript';
     var scriptElem = document.createElement( 'script' );
     scriptElem.setAttribute( 'src' , url );
     scriptElem.setAttribute( 'type' , 'text/javascript' );
     document.getElementsByTagName( 'head' )[0].appendChild( scriptElem );
 }
 importScript("User:Kaydeethree/autoedit.js");
 importScript("User:Kaydeethree/recent2.js");
*/

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