User:Terasail/Edit Request Tool.js: Difference between revisions

Content deleted Content added
<maintenance> more info Fixes TypeError: pageNameERT.replaceAll is not a function. on older versions of iOS https://caniuse.com/?search=replaceAll
Update
Line 5:
var watchStatus;
var dataERT;
var api = new mw.Api();
var pageNameERT = mw.config.get('wgPageName');
var encodePageName = encodeURIComponent(pageNameERT);
Line 24 ⟶ 23:
apiParams.watchlistexpiry = watchlist;
}
apinew mw.Api().postWithEditToken(apiParams).done(function () {
if (emptyTalkParams != null) {
apinew mw.Api().postWithEditToken(emptyTalkParams).done(function (result) {
window.___location = reloadURL;
});
Line 68 ⟶ 67:
}
while (header == "");
apinew mw.Api().get({
action: "parse",
page: pageNameERT,
Line 91 ⟶ 90:
}
}
apinew mw.Api().get({
action: "parse",
page: pageNameERT,
Line 445 ⟶ 444:
if (editRequestBoxes.length != 0) {
let pageID = mw.config.values.wgArticleId;
apinew mw.Api().get({
action: "query",
prop: "info",