Recent changes Random page
Computers
Gaming
History 
Movies
Politics
Television
see all...
More...

User:JonTheMon/monobook.js

From LEGO Batman Wiki

Jump to: navigation, search
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);