User:Caburum/global.js

// Hello and welcome to my global JS page window.caburum = { // Useful functions for other code below log: function(text) { console.log('%c[CABURUM]', 'color: #00D6D6', text); } };

window.AutoCreateUserPagesConfig = { content: { 2: '',		3: false, 1202: false },	summary:'Automated new user page' };

// https://dev.fandom.com/wiki/MessageBlock window.MessageBlock = { title : 'Blocked', message : 'You have received a $2 block for the reason: \'$1\'. Unless otherwise stated, you may appeal your block on my message wall at Community Central.', autocheck : true };

// https://dev.fandom.com/wiki/FastDelete window.fdButtons = [ {		summary: 'Housekeeping', label: 'HK' },	{		summary: 'Vandalism', label: 'V'	}, {		summary: 'Spam', label: 'S'	}, {		summary: 'Duplicate', label: 'Dp' } ];

// https://dev.fandom.com/wiki/FastCreate window.FCButtons = [ /*{		label: 'Create userpage', target: 'User:Caburum', summary: 'Creating userpage', content: '', alwaysDisplay: true, placement: '.wds-global-navigation__user-menu .wds-list' },*/	{		label: 'Create bot userpage', target: 'User:CaburumBot', summary: 'Creating my bot\'s userpage', content: '', alwaysDisplay: true, placement: '.wds-global-navigation__user-menu .wds-list' } ];

// https://dev.fandom.com/wiki/AjaxRename window.AjaxRename = { check: { leaveredirect: false, watch: false, movetalk: true },	renameReasons: { 'Normal': { 'Misnamed': 'Misnamed', 'Better name': 'Better name', 'Capitalization': 'Fixing capitalization' },		'Other': { 'Page does not belong in mainspace': 'Page does not belong in mainspace', }	} };

window.andrewds1021 = { // https://dev.fandom.com/wiki/ViewNotificationsUsers view_notifications_users: { all_types: true, content: 'name' },	// https://dev.fandom.com/wiki/IgnoreNotifications ignore_notifications: { ignore_errors: true, filters: [ {				types: 'discussion-upvote' },			{				wiki_ids: [ 2078067,					2411433,					2417668,					2386902				],				types: 'announcement-target' }		]	} };

// https://dev.fandom.com/wiki/GlobalNavButtons window.globalNavButtons = [ /* Patrolling */ {		text: 'RC', url: mw.util.getUrl('Special:RecentChanges'), isMain: true, whoIsMain: false, shortName: 'RC' },	{		text: 'New files', url: mw.util.getUrl('Special:NewFiles'), isMain: false, whoIsMain: 'RC', shortName: 'NF' },	{		text: 'New pages', url: mw.util.getUrl('Special:NewPages'), isMain: false, whoIsMain: 'RC', shortName: 'NP' },	{		text: 'New messages', url: mw.util.getUrl('Special:SocialActivity') + '?containerTypes=WALL', isMain: false, whoIsMain: 'RC', shortName: 'NM' },	{		text: 'New comments', url: mw.util.getUrl('Special:SocialActivity') + '?containerTypes=ARTICLE_COMMENT', isMain: false, whoIsMain: 'RC', shortName: 'NC' },	{		text: 'Forum', url: mw.config.get('wgScriptPath') + '/f', isMain: false, whoIsMain: false, shortName: 'F'	}, /* MediaWiki */ {		text: 'MediaWiki', url: mw.util.getUrl('Special:AllPages/MediaWiki:'), isMain: true, whoIsMain: false, shortName: 'MW' },	{		text: 'Common CSS', url: mw.util.getUrl('MediaWiki:Common.css'), isMain: false, whoIsMain: 'MW', shortName: 'css' },	{		text: 'Wikia CSS', url: mw.util.getUrl('MediaWiki:Wikia.css'), isMain: false, whoIsMain: 'MW', shortName: 'wikiacss' },	{		text: 'Common JavaScript', url: mw.util.getUrl('MediaWiki:Common.js'), isMain: false, whoIsMain: 'MW', shortName: 'js' },	{		text: 'Wikia JavaScript', url: mw.util.getUrl('MediaWiki:Wikia.js'), isMain: false, whoIsMain: 'MW', shortName: 'wikiajs' },	{		text: 'ImportJS', url: mw.util.getUrl('MediaWiki:ImportJS'), isMain: false, whoIsMain: 'MW', shortName: 'importjs' },	{		text: 'Wiki navigation', url: mw.util.getUrl('MediaWiki:Wiki-navigation'), isMain: false, whoIsMain: 'MW', shortName: 'wikinav' },	/* Personal */ {		text: 'ME', url: 'https://community.fandom.com/wiki/Special:MyPage', isMain: true, whoIsMain: false, shortName: 'ME' },	{		text: 'Local JavaScript', url: mw.util.getUrl('Special:MyPage/common.js'), isMain: false, whoIsMain: 'ME', shortName: 'localjs' },	{		text: 'Local CSS', url: mw.util.getUrl('Special:MyPage/common.css'), isMain: false, whoIsMain: 'ME', shortName: 'localcss' },	{		text: 'Global JavaScript', url: 'https://community.fandom.com/wiki/Special:MyPage/global.js', isMain: false, whoIsMain: 'ME', shortName: 'globaljs' },	{		text: 'Global CSS', url: 'https://community.fandom.com/wiki/Special:MyPage/global.css', isMain: false, whoIsMain: 'ME', shortName: 'globalcss' },	/* Wikis */ {		text: 'WIKIS', url: 'https://caburum.fandom.com/wiki/User:Caburum/RecentChanges', isMain: true, whoIsMain: false, shortName: 'W'	}, {		text: 'Among Us Wiki', url: 'https://among-us.fandom.com/wiki/', isMain: false, whoIsMain: 'W', shortName: 'among-us' },	{		text: 'Community Central', url: 'https://community.fandom.com/wiki/', isMain: false, whoIsMain: 'W', shortName: 'community' },	{		text: 'Dev Wiki', url: 'https://dev.fandom.com/wiki/', isMain: false, whoIsMain: 'W', shortName: 'devwiki' },	{		text: 'Discord Wiki', url: 'https://discord.fandom.com/wiki/', isMain: false, whoIsMain: 'W', shortName: 'discord' },	{		text: 'Test Wiki', url: 'https://caburum.fandom.com/wiki/', isMain: false, whoIsMain: 'W', shortName: 'testwiki' },	{		text: 'Customize Your Wiki', url: 'https://custom.fandom.com/wiki/', isMain: false, whoIsMain: 'W', shortName: 'customwiki' }, ];

if (/sysop|threadmoderator/.test(mw.config.get('wgUserGroups').join)) { window.globalNavButtons.push({		text: 'Message deletion',		url: mw.util.getUrl('Special:SocialActivity') + '?deleted=true&containerTypes=WALL',		isMain: false,		whoIsMain: 'RC',		shortName: 'MD'	},	{		text: 'Reported posts',		url: mw.config.get('wgScriptPath') + '/f/reported',		isMain: false,		whoIsMain: 'F',		shortName: 'RP'	}); }

if (mw.config.get('wgNamespaceIds').gadget) { window.globalNavButtons.push({		text: 'Gadgets',		url: mw.util.getUrl('Special:Gadgets'),		isMain: false,		whoIsMain: 'MW',		shortName: 'G'	}); }

// i18n overrides window.dev = window.dev || {}; window.dev.i18n = window.dev.i18n || {}; window.dev.i18n.overrides = window.dev.i18n.overrides || {};

window.dev.i18n.overrides['Rollback'] = window.dev.i18n.overrides['Rollback'] || {}; window.dev.i18n.overrides['Rollback']['summary'] = 'Reverted edits by $1 (talk) to last version by $2';

// Imports importArticles({	type: 'script',	articles: [		// Maintenance		'u:dev:MediaWiki:AjaxBatchDelete.js',		'u:dev:MediaWiki:AjaxRename/ucp.js',		'u:dev:MediaWiki:AjaxTemplate/code.js',		'u:dev:MediaWiki:FastDelete/code.js',		'u:dev:MediaWiki:Rollback/code.js',		'u:dev:MediaWiki:AnchoredRollback/code.js',		'u:dev:MediaWiki:ListFiles/code.js',		'u:dev:MediaWiki:MassNullEdit/code.js',		//Admin		//'u:dev:MediaWiki:AjaxBlock/code.js', // Conflicts with MessageBlock		'u:dev:MediaWiki:MessageBlock/code.js',		'u:dev:MediaWiki:SOAPReport.js',		'u:dev:MediaWiki:WHAM/code.2.js',

// Tools 'u:dev:MediaWiki:QuickDiff/code.js', //'u:dev:MediaWiki:MultiUpload.js', 'u:dev:MediaWiki:UploadMultipleFiles.js', 'u:dev:MediaWiki:LastEdited/code.js', 'u:dev:MediaWiki:FastCreate.js', 'u:dev:MediaWiki:QuickPurge.js', 'u:dev:MediaWiki:CopyTitle.js',

// Personal 'u:dev:MediaWiki:DisplayTimer/code.js', 'u:dev:MediaWiki:AutoCreateUserPages.js', 'u:dev:MediaWiki:GlobalNavButtons.js',

// Social 'u:dev:MediaWiki:ViewNotificationsUsers.js', 'u:dev:MediaWiki:IgnoreNotifications.js', 'u:dev:MediaWiki:UserAndIPTools.js', 'u:dev:MediaWiki:UserAccountAge/code2.js',

// Editing //'u:dev:MediaWiki:DecodeURI/code.js', 'u:dev:MediaWiki:ImageMapEdit.js' ] });

importScriptPage('User:Caburum/MassEdit.js', 'community');

window.caburum.log('Loaded global.js from Community Central');