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.
//<nowiki>
mw.loader.using("mediawiki.user", function () {
  $('body').delegate('#hotcatCommitForm', 'submit', 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;
  });
});

//catALot///////////////////////////////////////
////////// Cat-A-Lot user preferences //////////
window.catALotPrefs = {"watchlist":"preferences","minor":true,"editpages":false,"docleanup":false,"subcatcount":50};
////////////////////////////////////catALotEnd//
//</nowiki>
mw.util.addPortletLink('p-tb', 'javascript:importScript("MediaWiki:VisualFileChange.js");', 'Perform batch task', 't-AjaxQuickDeleteOnDemand');
//<nowiki>

//vFCProfil/////////////////////////////////////
/////// VISUAL FILE CHANGE CONFIGURATION ///////
///// DO NOT MODIFY BY HAND - FINGERS AWAY! ////
////////////////////////////////////////////////
window.vFC_Profiles = {"other versions":{"editInputs":{"mdDeleteReason":"","mdEditSummary":"","mdReplacePermission":false,"mdDeleteHeading":"Files in [[:Category:Sortie Soupapes dégrippées 07-04-2013]] ","mdTalkNote":"Yours sincerely,","mdRRegEx1":false,"mdRVar1":true,"mdMatchText1":"other_versions=","mdReplaceText1":"other_versions=\n<gallery>\nFile:Sortie Soupapes dégrippées 07-04-2013 - Fiat X1-9 - arrière.jpg\nFile:Sortie Soupapes dégrippées 07-04-2013 - Fiat X1-9 - avant.jpg\nFile:Sortie Soupapes dégrippées 07-04-2013 - Fiat X1-9 - clignotant.jpg\nFile:Sortie Soupapes dégrippées 07-04-2013 - Fiat X1-9 - roue.jpg\nFile:Sortie Soupapes dégrippées 07-04-2013 - Fiat X1-9 - signature.jpg\nFile:Sortie Soupapes dégrippées 07-04-2013 - Fiat X1-9 - signe.jpg\n</gallery>","mdRRegEx2":false,"mdRVar2":false,"mdMatchText2":"","mdReplaceText2":"","selPreserve":"secure","alsoPreserve":""},"action":"c_replace","objectMembers":{"queryParams":{"target":"Category:Sortie Soupapes dégrippées 07-04-2013","cmdir":"asc","cmsort":"sortkey","cmstartsortkey":"","cmcontinue":"file|534f5254494520534f5550415045532044c3894752495050c38945532030372d30342d32303133202d2050455547454f5420323033202d204c494f4e204156414e542e4a5047|25786574"},"startInput":{"mode":"Category","modeCat":true,"modeUser":false,"modePage":false,"target":"Category:Sortie Soupapes dégrippées 07-04-2013","loadThumbs":true,"loadWikitext":true,"startDate":"","startFile":""}},"proceedAt":{"vals":["file|534f5254494520534f5550415045532044c3894752495050c38945532030372d30342d32303133202d2050455547454f5420323033202d204c494f4e204156414e542e4a5047|25786574"],"setVals":["cmcontinue"]},"time":"2013-04-27T20:23:05.343Z"}};
//////////////////////////////////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":498,"maxSimultaneousReq":5,"summaryChacheLen":5,"loadThumbs":true,"loadWikitext":true};
//////////////////////////////////vFCvFCCfgEnd//
//</nowiki>

//vFCProfil/////////////////////////////////////
/////// VISUAL FILE CHANGE CONFIGURATION ///////
///// DO NOT MODIFY BY HAND - FINGERS AWAY! ////
////////////////////////////////////////////////
window.vFC_Profiles = {"MIT Harvard Observatory":{"editInputs":{"mdDeleteReason":"","mdEditSummary":"Categorizing images: Economy of country","mdReplacePermission":false,"mdDeleteHeading":"Files uploaded by [[User:MIT Harvard Observatory|MIT Harvard Observatory]] ([[User talk:MIT Harvard Observatory|talk]] · [[Special:Contributions/MIT Harvard Observatory|contribs]])","mdTalkNote":"If you have a question concerning this process, answer below, or in case of a deletion request, on the deletion-discussion page. Do not ask on my discussion page. With best regards","mdRRegEx1":true,"mdRVar1":true,"mdMatchText1":"/(.)$/","mdReplaceText1":"$1\n----ksfjekrekrejr%PAGENAME%----ksfjekrekrejr","mdRRegEx2":true,"mdRVar2":true,"mdMatchText2":"/\\-\\-\\-\\-ksfjekrekrejr(.+) Export Treemap\\.png\\-\\-\\-\\-ksfjekrekrejr$/","mdReplaceText2":"[[Category:Economy of $1]]","mdRRegEx3":false,"mdRVar3":true,"mdMatchText3":"","mdReplaceText3":"","selPreserve":"secure","alsoPreserve":""},"action":"c_replace","objectMembers":{"mdTarget":"MIT Harvard Observatory","mdLedir":"older","mdCmdir":"asc","mdCmsort":"sortkey"},"continueAt":{"vals":["2012-04-05T21:27:08Z","2012-04-05T20:26:27Z"],"setVals":["mdLestart"]},"time":"2012-04-09T11:12:53.778Z"}}; 
//////////////////////////////////vFCProfilEnd//

//mw.loader.load('//www.wikidata.org/w/index.php?title=User:Tpt/interproject.js&action=raw&ctype=text/javascript');


    var $l = $(mw.util.addPortletLink('p-tb', '#', "Add QI + sponsored", 't-custom-aqd-sponsored'));
    $l.click(function(e) {
            e.preventDefault();
           
            $.extend(window.AjaxQuickDelete, {
                    customQICat: function() {
                            this.initialize();

                            this.pageName = mw.config.get('wgPageName');
                            this.tag = '\n' + '[[Ca' + 'tegory:Quality images by Pleclown]]\n' + '[[Ca' + 'tegory:Quality images supported by Wikimedia CH]]';
                            this.img_summary = 'Adding ' + '[[Ca' + 'tegory:Quality images by Pleclown]], [[Ca' + 'tegory:Quality images supported by Wikimedia CH]]';

                            // first schedule some API queries to fetch the info we need...

                            // get token
                            this.addTask('findCreator');

                            this.addTask('appendTemplate');
                            this.addTask('reloadPage');
                            this.nextTask();
                    },
                    appendTemplate: function() {
                            var page = {
                                    title: this.pageName,
                                    text: this.tag,
                                    editType: 'appendtext',
                                    minor: false
                            };

                            if (window.AjaxDeleteWatchFile) page.watchlist = 'watch';

                            this.showProgress(this.i18n.addingAnyTemplate);
                            this.savePage(page, this.img_summary, 'nextTask');
                    }
            });
           
            window.AjaxQuickDelete.customQICat();
    });
    var $m = $(mw.util.addPortletLink('p-tb', '#', "Add QI", 't-custom-aqd-sponsored'));
    $m.click(function(e) {
            e.preventDefault();
           
            $.extend(window.AjaxQuickDelete, {
                    customQICat: function() {
                            this.initialize();

                            this.pageName = mw.config.get('wgPageName');
                            this.tag = '\n' + '[[Ca' + 'tegory:Quality images by Pleclown]]';
                            this.img_summary = 'Adding ' + '[[Ca' + 'tegory:Quality images by Pleclown]]';

                            // first schedule some API queries to fetch the info we need...

                            // get token
                            this.addTask('findCreator');

                            this.addTask('appendTemplate');
                            this.addTask('reloadPage');
                            this.nextTask();
                    },
                    appendTemplate: function() {
                            var page = {
                                    title: this.pageName,
                                    text: this.tag,
                                    editType: 'appendtext',
                                    minor: false
                            };

                            if (window.AjaxDeleteWatchFile) page.watchlist = 'watch';

                            this.showProgress(this.i18n.addingAnyTemplate);
                            this.savePage(page, this.img_summary, 'nextTask');
                    }
            });
           
            window.AjaxQuickDelete.customQICat();
    });
importScript('User:Rillke/LicenseReview.js');
importScript( 'User:MarkTraceur/editDescriptions.js' );
//<nowiki>
window.AjaxDeleteExtraButtons= [
	{ //notice talk_tag and talk_summary must be '' (void string) if uploader must not be notified
		'label' : 'Speedy',
		'tag' : '{{Speedydelete|1=%PARAMETER%}}',
		'img_summary' : 'Tagging as speedy delete because: %PARAMETER%',
		'talk_tag' : '{{subst:Speedynote|1=%FILE%|2=%PARAMETER%}}',
		'talk_summary' : 'Speedy notification',
		'prompt_text' : 'Speedy: why ? MUST PREVENT UPLOADER'
	}];
//</nowiki>