MediaWiki:Gadget-linkPurge.js

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