User:Gem/monobook.js

// ***** GEMSTALKER *****

hookEvent( 'load', function { if ( wgPageName != 'Special:Recentchanges' )    return;  var links = document.getElementById( 'bodyContent' ).getElementsByTagName( 'a' );  for ( var i = 0; i < links.length; i++ )  {    if ( links[i].title.indexOf( 'User:Gem' ) > -1 )      links[i].style.background = '#F0A637';  } } );

// ***** GUILDWARSWIKITOOLS *****

/**** 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';

// ***** WIKISWAP *****

/**** Guild Wars Wiki Tools - GuildWiki Switch * (c) 2007 by Patrick Westerhoff [poke] */ function gwwtGuildWikiSwitch {  if ( wgNamespaceNumber < 100 ) {    url = 'http://gw.gamewikis.org/wiki/' + wgCanonicalNamespace + ':' + encodeURIComponent( wgTitle ); new PortletArea( 'p-cactions' ).addItem( 'gwwt-gwiki', 'GWiki', url, 'See this page on GuildWiki' ); } } hookEvent( 'load', gwwtGuildWikiSwitch );

function gwwtGuildWars2WikiSwitch {  if ( wgNamespaceNumber < 100 ) {    var itemNode = document.createElement( 'li' ); itemNode.appendChild( document.createElement( 'a' ) ); itemNode.lastChild.href = 'http://wiki.guildwars2.com/wiki/' + wgCanonicalNamespace + ':' + encodeURIComponent( wgTitle ); itemNode.lastChild.title = 'See this page on Guild Wars 2 Wiki'; itemNode.lastChild.appendChild( document.createTextNode( 'GW2Wiki' ) ); document.getElementById( 'p-cactions' ).getElementsByTagName( 'ul' )[0].appendChild( itemNode ); } } hookEvent( 'load', gwwtGuildWars2WikiSwitch );