User:TartarTorte/Deprod.js

$.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:" }; };