MediaWiki:Gadget-linkPurge.js

// By Equazcion: http://terraria.gamepedia.com/User:Equazcion

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