User:Poke3712/monaco.js

/* */ /**** Guild Wars Wiki Tools - GuildWiki Switch * (c) 2008 by Patrick Westerhoff [poke] */ function gwwtGuildWikiSwitch { if ( wgNamespaceNumber < 100 ) {   var itemNode = document.createElement( 'li' ); itemNode.appendChild( document.createElement( 'a' ) ); itemNode.lastChild.href = 'http://wiki.guildwars.com/wiki/' + wgCanonicalNamespace + ':' + encodeURIComponent( wgTitle ); itemNode.lastChild.title = 'See this page on Guild Wars Wiki'; itemNode.lastChild.appendChild( document.createTextNode( 'GWW' ) ); document.getElementById( 'page_tabs' ).appendChild( itemNode ); } } hookEvent( 'load', gwwtGuildWikiSwitch ); /* */