User:AntiCompositeNumber/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.
//mw.loader.load('http://localhost:5500');
//Other scripts
mw.loader.load('https://commons.wikimedia.org/w/index.php?title=User:IagoQnsi/userinfo.js&action=raw&ctype=text/javascript'); //Linkback: [[User:IagoQnsi/userinfo.js]]
if ( mw.config.get( 'wgNamespaceNumber' ) === 6 ) {
	mw.loader.load( '/w/index.php?title=User:Magog_the_Ogre/cleanup.js&action=raw&ctype=text/javascript' ); // Backlink: [[User:Magog the Ogre/cleanup.js]]
}
mw.loader.load( '/w/index.php?title=User:Waggers/degrandparent.js&action=raw&ctype=text/javascript' ); // Backlink: [[User:Waggers/degrandparent.js]]
//mw.loader.load('//commons.wikimedia.org/w/index.php?title=User:AntiCompositeNumber/LicenseReview.js&action=raw&ctype=text/javascript');
// [[User:Perhelion/simpleSVGcheck.js]]
if (mw.config.get('wgNamespaceNumber') === 6 && /SVG/i.test(mw.config.get('wgTitle').slice(-3)))
	mw.loader.load( '/w/index.php?title=User:Perhelion/simpleSVGcheck.js&action=raw&ctype=text/javascript' ); // Backlink: [[User:Perhelion/simpleSVGcheck.js]]
mw.loader.load( '/w/index.php?title=User:Perhelion/justReplace.js&action=raw&ctype=text/javascript' ); // Backlink: [[User:Perhelion/justReplace.js]]
mw.loader.load( '/w/index.php?title=User:Rillke/bigChunkedUpload.js&action=raw&ctype=text/javascript' ); // Backlink: [[User:Rillke/bigChunkedUpload.js]]
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:WhitePhosphorus/js/all-in-one.js&action=raw&ctype=text/javascript');
mw.loader.load( "https://en.wikipedia.org/w/index.php?title=User:PerfektesChaos/js/lintHint/r.js&action=raw&maxage=86400&ctype=text/javascript" );
mw.loader.load( '/w/index.php?title=User:Legoktm/massrename.js&action=raw&ctype=text/javascript' ); // Backlink: [[User:Legoktm/massrename.js]]

if (mw.config.get('wgTranslatePageTranslation') == "translation") {
	$('#bodyContent').prepend( $("<div>", {text: mw.config.get("wgPageName").replaceAll("_", " ")}));
}

/*
mw.loader.using(["mediawiki.util","mediawiki.user"]).then(function (){
	mw.loader.load( '/w/index.php?title=User:AntiCompositeNumber/Gadget-Stockphoto.js&action=raw&ctype=text/javascript' ); // Backlink: [[User:AntiCompositeNumber/Gadget-Stockphoto.js]]
	mw.loader.load( '/w/index.php?title=MediaWiki:Gadget-Stockphoto.css&action=raw&ctype=text/css', 'text/css' ); // Backlink: [[MediaWiki:Gadget-Stockphoto.css]]
});
*/

//Configs
//<nowiki>

//vFCvFCCfg/////////////////////////////////////
/////// VISUAL FILE CHANGE CONFIGURATION ///////
///// DO NOT MODIFY BY HAND - FINGERS AWAY! ////
////////////////////////////////////////////////
window.vFCSettings = {"userNote":"Regards,","firstTest":0,"testEdits":0,"defaultAction":"del","watchlistUserTalk":"preferences","watchlistFiles":"preferences","watchlistReplace":"nochange","watchlistOTRS":"nochange","loadBatchSize":100,"maxSimultaneousReq":5,"summaryChacheLen":5,"loadThumbs":true,"loadWikitext":true};
//////////////////////////////////vFCvFCCfgEnd//
//</nowiki>

window.markAdminCfg = {
	groups: {
		'vrt-permissions': { enabled: true },
		'image-reviewer': {enabled: true }
	}
};
//<nowiki>

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

// All in one
if (typeof(p4js_all_in_one) === 'undefined') p4js_all_in_one = {};
p4js_all_in_one.packages = {
    // This name will appear in the select box. You may want to use the abbreviation of LTA to indicate what it targets.
    "LTA": {
        tracingedits: {
            duration: 3600 * 24, // Only deal with the edits made no earlier than this time (in seconds) ago. 'inf' for everything.
            indefregistered: true, // If true, the above duration only apply to IP users. When you input a registered username, the duration will be set to indef.
        },
        rollback: {
            enabled: true, // If false, you will not rollback the villain in default settings. Note that you'll be unable to revdel the content without rollbacking.
            bot: false, // If true, your rollbacks will not appear in recent changes, if you have `markbotedits` right.
            showname: true, // If false, the villain's username won't appear in your rollback summary. Only use it when the username needs to be hidden.
        },
        block: {
            enabled: true, // If false, you will not block the villain in default settings.
            duration: "1 week", // You can set it to everything as you do in the block interface.
            indefregistered: true, // If true, the above duration only apply to IP users. When you input a registered username, the duration will be set to indef.
            reason: "Long-term abuse", // The reason you used to fill in the block interface.
            autoblock: true, // Automatically block the last IP address used by this user, and any subsequent IP addresses they try to edit from. Not applicable to IP users.
            hardblock: true, // Prevent logged-in users from editing from this IP address. Not applicable to registered users.
            create: true, // Block account creation.
            talk: true, // Block talk page editing.
            mail: false, // Block email interface access. Not applicable to IP users.
            hidename: false, // If true, hide username from the public logs. Only applicable if you have `hideuser` right, e.g. be an oversighter.
        },
        pagedelete: {
            enabled: true, // If false, you will not delete pages created by the villain in default settings.
            reason: "Content intended as [[COM:V|vandalism]] ([[COM:CSD#G3|G3]])", // The reason you used to fill in the delete interface.
        },
        revisiondelete: {
            enabled: true, // If true, you will delete all the revisions the villain edited.
            content: true, // Whether to hide the revision content or not.
            summary: true, // Whether to hide the summary or not.
            username: false, // Whether to hide the username or not.
            reason: "Purely disruptive material", // The reason you used to fill in the revision delete interface.
            oversight: false, // If true, suppress the edits instead of revision deletion. Only applicable if you have `suppressrevision` right, e.g. be an oversighter.
        },
    },
    "Spam": {
        tracingedits: {
            duration: 3600 * 24, // Only deal with the edits made no earlier than this time (in seconds) ago. 'inf' for everything.
            indefregistered: true, // If true, the above duration only apply to IP users. When you input a registered username, the duration will be set to indef.
        },
        rollback: {
            enabled: true, // If false, you will not rollback the villain in default settings. Note that you'll be unable to revdel the content without rollbacking.
            bot: false, // If true, your rollbacks will not appear in recent changes, if you have `markbotedits` right.
            showname: true, // If false, the villain's username won't appear in your rollback summary. Only use it when the username needs to be hidden.
        },
        block: {
            enabled: true, // If false, you will not block the villain in default settings.
            duration: "1 week", // You can set it to everything as you do in the block interface.
            indefregistered: true, // If true, the above duration only apply to IP users. When you input a registered username, the duration will be set to indef.
            reason: "[[COM:ADVERT|Spamming]]", // The reason you used to fill in the block interface.
            autoblock: true, // Automatically block the last IP address used by this user, and any subsequent IP addresses they try to edit from. Not applicable to IP users.
            hardblock: true, // Prevent logged-in users from editing from this IP address. Not applicable to registered users.
            create: true, // Block account creation.
            talk: false, // Block talk page editing.
            mail: false, // Block email interface access. Not applicable to IP users.
            hidename: false, // If true, hide username from the public logs. Only applicable if you have `hideuser` right, e.g. be an oversighter.
        },
        pagedelete: {
            enabled: true, // If false, you will not delete pages created by the villain in default settings.
            reason: "Content created as [[COM:ADVERT|advertisement]] ([[COM:CSD#G10|G10]])", // The reason you used to fill in the delete interface.
        },
        revisiondelete: {
            enabled: false, // If true, you will delete all the revisions the villain edited.
            content: true, // Whether to hide the revision content or not.
            summary: true, // Whether to hide the summary or not.
            username: false, // Whether to hide the username or not.
            reason: "Content created as [[COM:ADVERT|advertisement]] ([[COM:CSD#G10|G10]])", // The reason you used to fill in the revision delete interface.
            oversight: false, // If true, suppress the edits instead of revision deletion. Only applicable if you have `suppressrevision` right, e.g. be an oversighter.
        },
    },
};
p4js_all_in_one.default_package = "LTA"; // The default package will get selected upon page is rendered.
//<nowiki>

//vFCProfil/////////////////////////////////////
/////// VISUAL FILE CHANGE CONFIGURATION ///////
///// DO NOT MODIFY BY HAND - FINGERS AWAY! ////
////////////////////////////////////////////////
window.vFC_Profiles = {"inrw":{"editInputs":{"mdDeleteReason":"","mdEditSummary":"Add {{iNaturalistreview}}","mdReplacePermission":false,"mdDeleteHeading":"Files on [[User:AntiCompositeNumber/sandbox]] ","mdTalkNote":"Regards,","mdRRegEx1":true,"mdRVar1":true,"mdMatchText1":"/\\n\\n\\[\\[Category:/","mdReplaceText1":"\n{{iNaturalistreview}}\n\n[[Category:","mdRRegEx2":true,"mdRVar2":true,"mdMatchText2":"/\\n\\n\\{\\{Uncategorized/","mdReplaceText2":"\n{{iNaturalistreview}}\n\n{{Uncategorized","mdRRegEx3":false,"mdRVar3":true,"mdMatchText3":"","mdReplaceText3":"","selPreserve":"secure","alsoPreserve":""},"action":"c_replace","objectMembers":{"queryParams":{"target":"User:AntiCompositeNumber/inr","imdir":"ascending"},"startInput":{"mode":"Page","modeCat":false,"modeUser":false,"modePage":true,"modeSearch":false,"target":"User:AntiCompositeNumber/inr","loadThumbs":true,"loadWikitext":true,"startDate":"","startFile":""}},"proceedAt":{"vals":[],"setVals":["imcontinue"]},"time":"2021-06-28T02:29:19.688Z"}};
//////////////////////////////////vFCProfilEnd//
//</nowiki>
window.AjaxDeleteExtraButtons = [
	{
	    'label': 'Speedy Selfie/F10',
	    'tag': '{'+'{SD|F10}}',
	    'img_summary': 'Requesting speedy deletion: [[COM:CSD#F10|CSD F10]] (personal photos by non-contributors)',
	    'talk_tag': '{'+'{subst:speedynote|1=%FILE%|2=[[COM:CSD#F10|CSD F10]] (personal photos by non-contributors)}}',
	    'talk_summary': 'Notification of possible speedy deletion for %FILE% due to [[COM:CSD#F10|CSD F10]] (personal photos by non-contributors)',
	},
	{
	    'label': 'Speedy Advert/G10',
	    'tag': '{'+'{SD|G10}}',
	    'img_summary': 'Requesting speedy deletion: [[COM:CSD#G10|CSD G10]] (files and pages created as advertisements)',
	    'talk_tag': '{'+'{subst:speedynote|1=%FILE%|2=[[COM:CSD#G10|CSD G10]] (files and pages created as advertisements)}}',
	    'talk_summary': 'Notification of possible speedy deletion for %FILE% due to [[COM:CSD#G10|CSD G10]] (files and pages created as advertisements)',
	}, 
	{
	    'label': 'Copyvio Logo',
	    'tag': '{'+'{Logo above threshold of originality}}',
	    'img_summary': 'Requesting speedy deletion: [[COM:CSD#F1|CSD F1]] (Copyright violation: Logo above the threshold of originality)',
	    'talk_tag': '{'+'{subst:copyvionote|1=%FILE%}}',
	    'talk_summary': 'Notification of possible speedy deletion for %FILE% due to [[COM:CSD#F1|CSD F1]] (Copyright violation: Logo above the threshold of originality)',
	},
];