User:Terasail/common.js

//Purge page button var userPurge = mw.util.addPortletLink('p-cactions', '#', 'Purge', 'ca-purge', 'Purge this page'); $(userPurge).click(function(event) {	window.open('https://mediawiki.org/wiki/' + mw.config.get("wgPageName") + '?action=purge'); });