User:EN-Jungwon/common.js

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search
Note: After saving, you have to bypass your browser's cache to see the changes. Internet Explorer: press Ctrl-F5, Mozilla: hold down Shift while clicking Reload (or press Ctrl-Shift-R), Opera/Konqueror: press F5, Safari: hold down Shift + Alt while clicking Reload, Chrome: hold down Shift while clicking Reload.
importScript('User:Majora/LicenseReview.js');
importScript('User:Kanonkas/twinkle.js');
importScript('User:Jeff G./massrename.js');
mw.loader.load( 'ext.gadget.VisualFileChange' );
//<nowiki>

//catALot///////////////////////////////////////
////////// Cat-a-lot user preferences //////////
window.catALotPrefs = {"disambig_category":"Disambiguation","redir_category":"Category redirects","watchlist":"nochange","minor":false,"editpages":false,"docleanup":false,"subcatcount":5,"uncat":true,"button":true};
////////////////////////////////////catALotEnd//
//</nowiki>
//<nowiki>

//vFCProfil/////////////////////////////////////
/////// VISUAL FILE CHANGE CONFIGURATION ///////
///// DO NOT MODIFY BY HAND - FINGERS AWAY! ////
////////////////////////////////////////////////
window.vFC_Profiles = {"EN-Jungwon":{"editInputs":{"mdDeleteReason":"","mdEditSummary":"","mdReplacePermission":false,"mdDeleteHeading":"Files in [[:Category:Official Reception in Maldives to commemorate the 52nd Union Day of the UAE]] ","mdTalkNote":"Yours sincerely,","mdRRegEx1":false,"mdRVar1":true,"mdMatchText1":"| Date           = https://presidency.mv/PhotoGallery/View/7361","mdReplaceText1":"| Date           = 21 November 2023","mdRRegEx2":false,"mdRVar2":true,"mdMatchText2":"","mdReplaceText2":"","selPreserve":"secure","alsoPreserve":""},"action":"c_replace","objectMembers":{"queryParams":{"target":"Category:Official Reception in Maldives to commemorate the 52nd Union Day of the UAE","cmdir":"asc","cmsort":"sortkey","cmstartsortkey":"","cmcontinue":"file|4f4646494349414c20524543455054494f4e20494e204d414c444956455320544f20434f4d4d454d4f52415445205448452035324e4420554e494f4e20444159204f46205448452055414520283634292e4a5047|141441613"},"startInput":{"mode":"Category","modeCat":true,"modeUser":false,"modePage":false,"modeSearch":false,"target":"Category:Official Reception in Maldives to commemorate the 52nd Union Day of the UAE","loadThumbs":true,"loadWikitext":true,"startDate":"","startFile":""}},"proceedAt":{"vals":["file|4f4646494349414c20524543455054494f4e20494e204d414c444956455320544f20434f4d4d454d4f52415445205448452035324e4420554e494f4e20444159204f46205448452055414520283337292e4a5047|141441442","file|4f4646494349414c20524543455054494f4e20494e204d414c444956455320544f20434f4d4d454d4f52415445205448452035324e4420554e494f4e20444159204f46205448452055414520283634292e4a5047|141441613"],"setVals":["cmcontinue"]},"time":"2023-11-28T07:58:46.749Z"}};
//////////////////////////////////vFCProfilEnd//
//</nowiki>
//<nowiki>

//vFCvFCCfg/////////////////////////////////////
/////// VISUAL FILE CHANGE CONFIGURATION ///////
///// DO NOT MODIFY BY HAND - FINGERS AWAY! ////
////////////////////////////////////////////////
window.vFCSettings = {"userNote":"Yours sincerely,","firstTest":0,"testEdits":0,"defaultAction":"c_replace","watchlistUserTalk":"preferences","watchlistFiles":"preferences","watchlistReplace":"nochange","watchlistOTRS":"nochange","loadBatchSize":100,"maxSimultaneousReq":5,"summaryChacheLen":5,"loadThumbs":true,"loadWikitext":true};
//////////////////////////////////vFCvFCCfgEnd//
//</nowiki>
mw.loader.using("mediawiki.user", function () {
  $('body').on( 'submit', '#hotcatCommitForm', function () {
    // The variable "this" refers to the form. Its fields can be accessed directly, e.g.
    // this.wpTextbox1 gives you the textarea containing the page text of the edit.
    var submitType = this.wpDiff;
    if (submitType && (!this.oldid || this.oldid.value == '0')) {
      // Switch form submission from diff to save. Don't do this if "oldid" is set to anything but '0':
      // that indicates an edit conflict with yourself, and in that case you really, really do want
      // to see the diff!
      this.wpEditToken.value = mw.user.tokens.get("csrfToken");
      submitType.name = submitType.value = 'wpSave';
    }
    return true;
  });
});