User:RoseOfKali/monaco.js

function addPurge {   var hist; var url; if (!(hist = document.getElementById('ca-history') )) return; if (!(url = hist.href )) return; addPortletLink('page_bar',      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.href )) return; addPortletLink('page_bar',      'http://wiki.guildwars.com/wiki/'+wgCanonicalNamespace+':'+encodeURIComponent(wgTitle),      'GWW', 'ca-gww', 'See this page on Guild Wars Wiki', 'g'); } addOnloadHook(addGWWSwitch);

function restoreWatchlistLink { var userData    = document.getElementById('userData'); var wlObj       = document.createElement('span'); var wlLink      = document.createElement('a'); wlLink.href     = '/wiki/Special:Watchlist'; wlLink.title    = 'Your watchlist'; wlLink.innerHTML = "My watchlist"; wlObj.id        = 'header_mywatchlist'; wlObj.appendChild(wlLink); userData.insertBefore(wlObj, document.getElementById('header_mytalk').nextSibling); } addOnloadHook(restoreWatchlistLink);

document.getElementById('control_share_feature').style.display = 'none';