User:Certes/AutoEd.js

importScript('Wikipedia:AutoEd/core.js'); //Imports the "framework" script needed to make this function importScript('User:Certes/replace.js');

function autoEdFunctions { //Activates individual modules when "auto ed" tab is clicked var txt = document.editform.wpTextbox1; txt.value = replace(txt.value); const summary = getSummary; if (summary) { autoEdTag = summary; } }

function getSummary { const param = location.search && location.search.substr(1).replace(/\+/gi," ").split("&"); for (var i in param) { // parse URL variables e.g. &re1from=Foo var s = param[i].split("="); if (unescape(s[0]) == "resummary") { return unescape(s[1]); }   }    return ""; }