User:Rose Of Kali/monobook.js

addOnloadHook( function { addPortletLink( 'p-personal', '/wiki/Feedback:User/' + wgUserName, 'My feedback', null, 'Your feedback space', null, document.getElementById( 'pt-preferences' ) ); } );

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://www.guildwiki.org/' + wgCanonicalNamespace + ':' + wgTitle,                  'GWiki', 'ca-gwiki', 'See this page on GuildWiki'); addPortletLink('p-cactions', 'http://guildwars.wikia.com/wiki/' + wgCanonicalNamespace + ':' + encodeURIComponent( wgTitle ),                  'wikia', 'ca-wikia', 'See this page on GuildWars@Wikia'); } addOnloadHook(addGWWSwitch);