Jump to content

User:Savh/global.js

From Meta, a Wikimedia project coordination wiki

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
// [[File:Hoo man/active_sysops.js‎‎]]
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Hoo_man/active_sysops.js‎&action=raw&ctype=text/javascript');

// [[File:Hoo man/tagger.js‎‎]]
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Hoo_man/tagger.js‎&action=raw&ctype=text/javascript');
//<nowiki>
if(typeof window.taggerConfig === 'undefined') window.taggerConfig = {};
taggerConfig.tags = [];
taggerConfig.editSummary = [];
taggerConfig.tags[1] = '{{delete|Nonsense}}';
taggerConfig.editSummary[taggerConfig.tags[1]] = 'Delete';
taggerConfig.tags[2] = '{{delete|No meaningful content}}';
taggerConfig.editSummary[taggerConfig.tags[2]] = 'Delete';
taggerConfig.tags[3] = '{{delete|Spam}} __NOINDEX__';
taggerConfig.editSummary[taggerConfig.tags[3]] = 'Delete';
taggerConfig.tags[4] = '{{delete|Spambot}} __NOINDEX__';
taggerConfig.editSummary[taggerConfig.tags[4]] = 'Delete';
taggerConfig.tags[5] = '{{destruir|Pruebas de edición}}';
taggerConfig.editSummary[taggerConfig.tags[5]] = 'Destruir';
taggerConfig.tags[6] = '{{delete|Test page}}';
taggerConfig.editSummary[taggerConfig.tags[6]] = 'Delete';
taggerConfig.customTagDefault = '{{Delete|';

//</nowiki>
// [[File:Hoo man/smart_rollback.js‎]]
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Hoo_man/smart_rollback.js&action=raw&ctype=text/javascript');

// [[File:Krinkle_CVNSimpleOverlay_wiki.js]]
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Krinkle/Scripts/CVNSimpleOverlay_wiki.js&action=raw&ctype=text/javascript');


// Gives some useful links on user, user talk and user contribution pages
// by [[m:user:Hoo man]] <http://meta.wikimedia.org/wiki/User:Hoo_man/Scripts/Useful_links>
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Hoo_man/useful_links.js&action=raw&ctype=text/javascript');
usefulLinksTools = {
		// Global contribs
		globalContribs: {
			url: '//tools.wmflabs.org/guc/?user=$1',
			linkText: 'Global contribs'
		},
			globalContribs2: {
			url: '//xtools.wmflabs.org/globalcontribs/$1',
			linkText: 'guc2'
		},
		stalktoy: {
			url: '//tools.wmflabs.org/meta/stalktoy/$1',
			linkText: 'Stalktoy'
		},
	
		// (local) contribs
		contribs: {
			url: mw.config.get('wgServer') + mw.config.get('wgArticlePath').replace( '$1', 'Special:Contributions/' ) + '$1',
			linkText: 'Contributions'
		},
		block: {
			url: mw.config.get('wgServer') + mw.config.get('wgArticlePath').replace( '$1', 'Special:Block/' ) + '$1',
			linkText: 'Block'
		},
		Activesysops: {
			url: '//meta.toolforge.org/stewardry/'+mw.config.get('wgDBname')+'?sysop=1',
			linkText: 'stewardry'
		}
	};

usefulLinksIpTools = {
		// Whois
		whois: {
			url: 'https://whois.toolforge.org/gateway.py?lookup=true&ip=$1',
			linkText: 'Whois'
		},
		gblocklog: {
			url: '//meta.wikimedia.org/wiki/Special:Log?type=gblblock&page=User%3A$1',
			linkText: 'Global blocklog'
		},
		IPcheck: {
			url: 'https://whatismyipaddress.com/ip/$1',
			linkText: 'IP Check'
		},

	};

// [[Wikipedia:Tools/Navigation popups]]
if(mw.loader.getState('ext.gadget.Navigation_popups') === null) {
  mw.loader.load('https://en.wikipedia.org/w/load.php?modules=ext.gadget.Navigation_popups');
} else {
  mw.loader.load('ext.gadget.Navigation_popups');
}

// Global Twinkle
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Xiplus/TwinkleGlobal.js&action=raw&ctype=text/javascript');

// All in one by [[User:WhitePhosphorus]].
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:WhitePhosphorus/js/all-in-one.js&action=raw&ctype=text/javascript');

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.
    "Example": {
        tracingedits: {
            duration: 3600, // 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 day", // 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: false, // 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: "Vandalism", // 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: "Blatant offensive materials", // 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.
        },
    },
    // add another package... (this is a copy of above with comments omitted)
    "Default": {
        tracingedits: {
            duration: 3600,
            indefregistered: true,
        },
        rollback: {
            bot: false,
            showname: true,
        },
        block: {
            enabled: true,
            duration: "1 day",
            indefregistered: true,
            reason: "Long-term abuse",
            autoblock: true,
            hardblock: false,
            create: true,
            talk: false,
            mail: false,
            hidename: false,
        },
        pagedelete: {
            enabled: true,
            reason: "Vandalism",
        },
        revisiondelete: {
            enabled: false,
            content: true,
            summary: true,
            username: false,
            reason: "Blatant offensive materials",
            oversight: false,
        },
    },
    "Spambot": {
        tracingedits: {
            duration: 3600,
            indefregistered: true,
        },
        rollback: {
            bot: false,
            showname: true,
        },
        block: {
            enabled: true,
            duration: "1 day",
            indefregistered: true,
            reason: "Spambot",
            autoblock: true,
            hardblock: false,
            create: true,
            talk: false,
            mail: false,
            hidename: false,
        },
        pagedelete: {
            enabled: true,
            reason: "Spambot",
        },
        revisiondelete: {
            enabled: false,
            content: true,
            summary: true,
            username: false,
            reason: "Blatant offensive materials",
            oversight: false,
        },
    },
    "ES:Vandalismo36hrs": {
        tracingedits: {
            duration: 3600,
            indefregistered: true,
        },
        rollback: {
        	enabled: false, // 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,
            showname: true,
        },
        block: {
            enabled: true,
            duration: "36 hours",
            indefregistered: true,
            reason: "[[WP:VN|Vandalismo de páginas]]",
            autoblock: true,
            hardblock: false,
            create: true,
            talk: false,
            mail: false,
            hidename: false,
        },
        pagedelete: {
            enabled: false,
            reason: "Vandalism",
        },
        revisiondelete: {
            enabled: false,
            content: true,
            summary: true,
            username: false,
            reason: "Blatant offensive materials",
            oversight: false,
        },
    },
    "ES:Revertir-Ocultar-y-bloquear": {
        tracingedits: {
            duration: 3600,
            indefregistered: true,
        },
        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,
            showname: true,
        },
        block: {
            enabled: true,
            duration: "36 hours",
            indefregistered: true,
            reason: "[[WP:NAP|Intimidación/Acoso a usuarios]]",
            autoblock: true,
            hardblock: true,
            create: true,
            talk: true,
            mail: true,
            hidename: false,
        },
        pagedelete: {
            enabled: true,
            reason: "Vandalismo",
        },
        revisiondelete: {
            enabled: true,
            content: true,
            summary: false,
            username: false,
            reason: "[[WP:NAP|Intimidación/Acoso a usuarios]]",
            oversight: false,
        },
    },
        
    // and so on.
};
p4js_all_in_one.default_package = "Default"; // The default package will get selected upon page is rendered.

if (typeof(p4js_all_in_one) === 'undefined') p4js_all_in_one = {};
p4js_all_in_one.reasons = {
    block: ["Long-term abuse", "Vandalism-only account", "Spam-only account", "Open proxy", "Vandalism"],
    pagedelete: ["Vandalism", "Spam"],
    revisiondelete: ["Blatant offensive materials", "Private information", "Violación de los derechos de autor","Información personal inapropiada","Difamación o libelo grave","Uso de lenguaje inapropiado","Intimidación/Acoso","Spam","Amenazas"],
}
// You can select these suffixes to append to your block and (revision) delete rationales.
p4js_all_in_one.suffixes = ["", " ([[:m:GS|global sysop]] action)"]; // [""," (global sysop action)" , " (stewards action)"];


mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:WhitePhosphorus/js/GS Rationale.js&action=raw&ctype=text/javascript');