User:Warwick/monobook.js

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); }

/**** Guild Wars Wiki Tools * (c) 2007 by Patrick Westerhoff [poke] */ var head = document.getElementsByTagName( 'head' )[0]; head.appendChild( document.createElement( 'script' ) ); head.lastChild.src = '/index.php?title=User:Poke/GuildWarsWikiTools.js&action=raw&ctype=text/javascript'; head.lastChild.type = 'text/javascript'; insertScript('MediaWiki:TemplateTools.js');

// ***** ADDITIONAL LINKS *****

function addBar { document.getElementById('p-navigation').innerHTML += ' '+ ' '+  ' All Wiki Links '+ ' '+ 'Deletion Candidates'+ 'Banning Candidates'+ 'Logs'+ 'Userpage</li>'+ '<a href=\"/wiki/special:mytalk">Usertalk</a></li>'+ '<a href=\"/wiki/special:mypage/Mafia">Mafia</a></li>'+ '<a href=\"/wiki/special:mypage/monobook.js">Monobook.js</a></li>'+

'</ul> '; } //Close addBar addOnloadHook(addBar); //Call addBar on load

//WikiSwap importScript('User:AT/wikiswap.js');