Jump to content

MediaWiki:Monobook.js: Difference between revisions

From Squirrel's Lair
Ttenbergen (talk | contribs)
testing monobook
 
Ttenbergen (talk | contribs)
nope
 
Line 1: Line 1:
/* Any JavaScript here will be loaded for users using the MonoBook skin */
/* Any JavaScript here will be loaded for users using the MonoBook skin */
// addPurge
addOnloadHook(function () {
    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 for this page', '0');
});
//

Latest revision as of 13:14, 2017 March 28

/* Any JavaScript here will be loaded for users using the MonoBook skin */