Jump to content

User:DatGuy/twinkle-config.js

From Wikipedia, the free encyclopedia
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
mw.loader.using( ['ext.gadget.Twinkle'], function () {
	Twinkle.block.blockPresetsInfo['blocked proxy'].expiry = '1 month';
	Twinkle.block.blockPresetsInfo['blocked p2p proxy'] = {
		expiry: '2 weeks',
		forAnonOnly: true,
		nocreate: true,
		nonstandard: true,
		hardblock: true,
		reason: '{{blocked p2p proxy}}',
		sig: null
	};
	Twinkle.block.blockPresetsInfo['lta-user'] = {
		autoblock: true,
		nocreate: true,
		disabletalk: true,
		noemail: true,
		expiry: 'infinity',
	    forRegisteredOnly: true,
	    reason: '[[Wikipedia:Long-term abuse|Long-term abuse]]',
	    templateName: 'uw-blockindef',
	    suppressArticleInSummary: true,
	};
	
	Twinkle.block.blockGroups.push(
		{label: "Custom", list: [
			{label: "Blocked P2P Proxy", value: 'blocked p2p proxy'},
			{label: "Long-term abuse", value: 'lta-user'},
		]}
	);
});