User:Kirkburn/monobook.js

/*

/* 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 = " Personal tools KirkburnMy talkCSSJS</li><a href='/Special:Preferences'>My preferences</a></li><a href='/Special:Watchlist'>My watchlist</a></li><a href='/Special:Contributions/Kirkburn'>My contributions</a></li><a href='/Special:Userlogout'>Log out</a></li></ul> ";

}

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

/*