User:Aquadrizzt/monobook.js

/**** 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'; function addTopLink(label, url) { var userpage = document.getElementById('pt-userpage'); if (userpage) { var link = document.createElement('a'); link.href = url; link.appendChild(document.createTextNode(label)); var li   = document.createElement('li'); li.appendChild(link);

userpage.parentNode.insertBefore(li, userpage.parentNode.firstChild); } }

addOnloadHook(function {   /**     * Format : addTopLink ('link label', 'link url');     **/        addTopLink('Sandbox', '/wiki/User:Aquadrizzt/Sandbox');        addTopLink('WoC Builds', '/wiki/User:Aquadrizzt/Sandbox/Testing'); });