User:Randomtime/monobook.js

// I have too many javascripts // ***** ADDITIONAL LINKS ***** // User:Lupin/popups.js importScriptURI('http://en.wikipedia.org/w/index.php?title=User:Lupin/popups.js' + '&action=raw&ctype=text/javascript'); 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')

// restore watchlist link $(document).ready(function{ $("#pt-following").html('<a href="/wiki/Special:Watchlist" title="The list of pages you are monitoring for changes [l]" accesskey="l">my watchlist</a>'); });