User:Plastikspork/purge.js

// Adds a purge button // // Installation: // Add the following line to your monobook.js // importScript('User:Plastikspork/purge.js');

addOnloadHook(function { if (wgIsArticle && wgAction == "view") {  mw.util.addPortletLink('p-cactions', mw.config.get('wgServer') + mw.config.get('wgScript') + '?title=' + encodeURIComponent(mw.config.get('wgPageName')) + '&action=purge', 'Purge', 'ca-purge', 'Purge this page', 'P', document.getElementById('ca-history')); } }); //