User:Cat Slayer Calli/monobook.js

function $(id){return document.getElementById(id);}

addOnloadHook(function{	var my_links=document.createElement('div');my_links.id='p-mylinks';my_links.className='portlet';	my_links.innerHTML=' my links '+		'Zaishen Quests'+		'Nicholas the Traveler'+		'Alternate Nic'+		'Dark Wolves Den</li>'+		'<a href="/wiki/User:Cat_Slayer_Calli/Sandbox">My Sandbox</a></li>'+		'<a href="/wiki/Guild_Wars_Wiki:Sandbox">Public Sandbox</a></li>'+		'<a href="http://www.gwpvx.com/">PvX Wiki</a></li>'+		'&#8203;</li>'+		'<a href="/wiki/Special:PrefixIndex/User:Cat_Slayer_Calli">My Subpages</a></li>'+		'<a href="http://www.mediawiki.org/wiki/Help:Extension:ParserFunctions">Parser Functions</a></li>'+ ' <a href="/wiki/User:Cat_Slayer_Calli/monobook.js">Edit This</a> </li></ul>'; var pnav=$('p-navigation');if(pnav.nextSibling){pnav.parentNode.insertBefore(my_links,pnav.nextSibling);}else{pnav.appendChild(my_links);}my_links=pnav=null; }); addOnloadHook(function{ if(!$('p-cactions') || !$('p-cactions').getElementsByTagName('ul')[0]){return 1;}var pcac=$('p-cactions').getElementsByTagName('ul')[0]; if(window.location.pathname.search(/(Guild:)/i)!=-1){return 2;}var loc=window.location.pathname+window.location.search; pcac.innerHTML+='<a title="View this page on Guild Wiki" href="http://www.guildwiki.org'+loc.replace(/wiki\//i,"").replace(/Guild_Wars_Wiki/i,"GuildWiki")+'">GWiki</a></li>'+ '<a title="View this page on the Guild Wars 2 Wiki" href="http://wiki.guildwars2.com'+loc.replace(/Guild_Wars_Wiki/i,"Guild_Wars_2_Wiki")+'">GW2W</a></li>'; pcac=loc=null; });

/*=========================================*\ \*=========================================*/ //addScript('User:Ale_jrb/Scripts/SkillCheck/skillcheck.js');
 * SkillCheck install file.                 *
 * Copyright (c) Alex Barley <ale_jrb> 2008. *
 * For help with this script, visit         *
 * User:Ale_jrb/Scripts/SkillCheck *