User:Btilm/aw.js

// //User:Btilm/Unreviewed Article Tag Remover

function rep { var encode=encodeURIComponent(mw.config.get('wgPageName')) document.location=mw.config.get('wgServer') + mw.config.get('wgScript') + "?title=" + encode + "&action=edit&aw=yes"; } addOnloadHook(function { mw.util.addPortletLink("p-cactions", "javascript:rep", "-uat", "ca-rep", "Remove new unreviewed article tag.", "");

if (location.href.indexOf("&action=edit&aw=yes") == -1) return; var txt = document.editform.wpTextbox1; txt.value = txt.value.replace(/\n(\n)?/gim, ""); document.editform.wpSummary.value = 'Removed new unreviewed article tag using Unreviewed Article Tag Remover.'; document.editform.wpMinoredit.checked = false; document.editform.submit; }); //