User:Caithe/monobook.js

function addPurge {   var hist; var url; if (!(hist = document.getElementById('ca-history') )) return; if (!(url = hist.getElementsByTagName('a')[0] )) return; if (!(url = url.href )) return; addPortletLink('p-cactions', url.replace(/([?&]action=)history([&#]|$)/, '$1purge$2'),                  'purge', 'ca-purge', 'Purge server cache', '0'); } addOnloadHook(addPurge);

function addGWWSwitch {   var hist; var url; if (!(hist = document.getElementById('ca-history') )) return; if (!(url = hist.getElementsByTagName('a')[0] )) return; if (!(url = url.href )) return; addPortletLink('p-cactions', 'http://wiki.guildwars.com/wiki/' + wgCanonicalNamespace + ':' + wgTitle,                  'GWW', 'ca-gww', 'See this page on Guild Wars Wiki'); addPortletLink('p-cactions', 'http://guildwars.wikia.com/wiki/' + wgCanonicalNamespace + ':' + encodeURIComponent( wgTitle ),                  'wikia', 'ca-wikia', 'See this page on GuildWars@Wikia'); } addOnloadHook(addGWWSwitch);

insertScript('Forum:Coding/Javascript/hideUser.js');