User:Minorax/easypurge.js

if (mw.config.get('wgAction')==='purge'){$('form[action*="action=purge"]').submit;} mw.util.addPortletLink ('p-cactions','?action=purge','Purge'); pagename=mw.config.get('wgPageName').replace(/_/g, " "); var d=$(""); $("#p-views ul").append(d); d.append(   $(" ")    .append( $("") .attr("href","https://en.wikipedia.org/wiki/"+pagename+"?action=purge") .attr("title","Purge ") .append(           $(" ")            .attr("src","//upload.wikimedia.org/wikipedia/commons/1/10/Reload_icon_-_Green.svg")            .attr("style","margin-bottom:5px; width:18px;height:auto;margin-top:-5px")        ) ) );