User:Skakid9090/monobook.js

function addPortletLink(portlet, href, text, id, tooltip, accesskey, nextnode) { var node = document.getElementById(portlet); if ( !node ) return null; node = node.getElementsByTagName( "ul" )[0]; if ( !node ) return null;

var link = document.createElement( "a" ); link.appendChild( document.createTextNode( text ) ); link.href = href;

var item = document.createElement( "li" ); item.appendChild( link ); if ( id ) item.id = id;

if ( accesskey ) { link.setAttribute( "accesskey", accesskey ); tooltip += " ["+accesskey+"]"; }	if ( tooltip ) { link.setAttribute( "title", tooltip ); }	if ( accesskey && tooltip ) { updateTooltipAccessKeys( new Array( link ) ); }

if ( nextnode && nextnode.parentNode == node ) node.insertBefore( item, nextnode ); else node.appendChild( item ); // IE compatibility (?)

return item; }

function addTab(url, name, id) { return addPortletLink('p-cactions', url, name, id); }

// WikiSwap function lolol { {   addTab("http://gw.gamewikis.org/wiki/User:Skakid9090", "GW"); }   {    addTab("http://wiki.guildwars.com/wiki/Skakid9090", "GWW"); }   {    addTab("http://www.pvxwiki.com/wiki/Skakid9090", "PvX"); } }

addOnloadHook(lolol);