User:Randomtime/monobook.js

// This is my .js, it has been copied from other sources, but is fairly good. // ***** ADDITIONAL LINKS *****

function addBar { document.getElementById('p-navigation').innerHTML += ' '+ ' '+ ' Admin links '+ ' '+ // Begin links to other pages 'Deletion Candidates'+ 'Banning Candidates'+ 'Logs'+ 'Watchlist</li>'+ '<a href=\"/wiki/Special:Prefixindex">Prefix Index</a></li>'+ '<a href=\"/wiki/Special:SpecialPages">Special pages</a></li>'+ '<a href=\"/wiki/Special:Allmessages">UI messages</a></li>'+ // Links end '</ul> '; } //Close addBar

addOnloadHook(addBar); //Call addBar on load

function importScript(page, lang) { var url = wgScriptPath + '/index.php?title=' + encodeURIComponent(page.replace(' ','_')) + '&action=raw&ctype=text/javascript&dontcountme=s'; if (lang) url = 'http://' + lang + '.wikipedia.org' + url; var s = document.createElement('script'); s.src = url; s.type='text/javascript'; document.getElementsByTagName('head')[0].appendChild(s); } /* End of additional links

WikiSwap*/ importScript('User:AT/wikiswap.js'); //AjaxRC by pcj - very handy importScriptPage('AjaxRC/code.js', 'dev')