User:TartarTorte/Deprod.js

Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
$.when(
  mw.loader.using(["mediawiki.util", "mediawiki.app", "mediawiki.Title"]),
  $.ready,
).then(() => {
  const config = {
    mw: mw.config.get([
      "wgArticleId",
      "wgCurRevisionId",
      "wgPageName",
      "wgUserGroups",
      "wgUserName",
      "wgMonthNames",
      "wgNamespaceNumber",
      "wgTitle",
    ]),
  };
});

const API = new mw.API({
  ajax: {
    headers: {
      "Api-User-Agent": `Deprod/${config.script.version} (https://en.wikipedia.org/wiki/User:TartarTorte/Deprod )`,
    },
  },
});

const deprod = () => {
  config.wikitext = {
    editsummary: "Deprod of [[$1]]",
    logMsg: "Deprod of [[$1]]",
    notification_template: "{{subst:"
  };
};
Retrieved from "https://en.wikipedia.org/w/index.php?title=User:TartarTorte/Deprod.js&oldid=1137842474"