MediaWiki:Gadget-linkPurge.js

var linkPurge = mw.config.get( 'wgScript' ) + '?title=' + encodeURIComponent( mw.config.get( 'wgPageName' ) ) + '&action=purge'; var linkPurgeElement = ' Purge '; $('#left-navigation ul').append(linkPurgeElement);