User:BeXoR/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 changeFavicon( url ) { var head  = document.getElementsByTagName( 'head' )[0]; var link = document.createElement( 'link' ); link.rel = 'shortcut icon'; link.type = "image/x-icon"; link.href = url; var links = head.getElementsByTagName( 'link' ); for ( var i = 0; i < links.length; i++ ) {   if ( links[i].rel == 'shortcut icon' ) {      head.removeChild( links[i] ); break; } }  head.appendChild( link ); }

gwwtLoadAfter = function { changeFavicon( 'http://wiki.guildwars.com/images/8/83/User_BeXoR_wiki_logo_mini.gif' ); // Custom links var portNav = new PortletArea( 'p-navigation' ); portNav.addText( 'quick links' ); portNav.addItem( null, 'Nicholas Sandford', '/wiki/Nicholas_Sandford' ); portNav.addItem( null, 'Nicholas the Traveler', '/wiki/Nicholas_the_Traveler' ); portNav.addItem( null, 'ZQuest', '/wiki/Zaishen_Challenge_Quest' ); portNav.addItem( null, '/thetime', '/wiki/User:BeXoR/thetime' ); }