User:Aeywoo/global.js

// 1. AjaxRC configuration option window.ajaxRefresh = 30000;

// 2. MultiUpload configuration option window.MultiUploadoption = { max: 40 };

mw.loader.using('mediawiki.util').then(function {	window.globalNavButtons = [{			text: "Wikis",			url: "",			isMain: true,			whoIsMain: false,			shortName: "w"		},		{			text: "Explore Wikis",			url: "https://www.fandom.com/explore",			isMain: false,			whoIsMain: "w",			shortName: "explorewikis"		},		{			text: "Developer Hub",			url: "https://dev.fandom.com/wiki/",			isMain: false,			whoIsMain: "w",			shortName: "dev"		},		{			text: "Community Central",			url: "https://community.fandom.com/wiki/Community_Central",			isMain: false,			whoIsMain: "w",			shortName: "community"		},		{			text: "Terra Nil Wiki",			url: "https://terra-nil.fandom.com/wiki/Special:RecentChanges",			isMain: false,			whoIsMain: "w",			shortName: "tnw"		},		{			text: "SCP: Silenced Wiki",			url: "https://scp-silenced.fandom.com/wiki/Special:RecentChanges",			isMain: false,			whoIsMain: "w",			shortName: "scpsw"		},		{ text: "Simpsons Hit & Run Wiki", url: "https://simpsons-hit-and-run.fandom.com/wiki/Special:RecentChanges", isMain: false, whoIsMain: "w", shortName: "shnrw" },		{			text: "Personal", url: "", isMain: true, whoIsMain: false, shortName: "p" },		{			text: "Preferences", url: "/wiki/Special:Preferences", isMain: false, whoIsMain: "p", shortname: "pr" },		{			text: "Personal CSS", url: "/wiki/User:Aeywoo/common.css", isMain: false, whoIsMain: "p", shortName: "mycss" },		{			text: "Personal JS", url: "/wiki/User:Aeywoo/common.js", isMain: false, whoIsMain: "p", shortName: "myjs" },		{			text: "Global CSS", url: "https://community.fandom.com/wiki/User:Aeywoo/global.css", isMain: false, whoIsMain: "p", shortName: "mygbcss" },		{			text: "Global JS", url: "https://community.fandom.com/wiki/User:Aeywoo/global.js", isMain: false, whoIsMain: "p", shortName: "mygbjs" },		{			text: "CSS/JS", url: "", isMain: true, shortName: "cj" },		{			text: "Wikia CSS", url: "/MediaWiki:Wikia.css", isMain: false, whoIsMain: "cj", shortName: "wikiacss" },		{			text: "Wikia JS", url: "/MediaWiki:Wikia.js", isMain: false, whoIsMain: "cj", shortName: "wikiajs" },		{			text: "Common CSS", url: "/MediaWiki:Common.css", isMain: false, whoIsMain: "cj", shortName: "cmncss", },		{			text: "Common JS", url: "/MediaWiki:Common.js", isMain: false, whoIsMain: "cj", shortName: "cmnjs" },		{			text: "FandomDesktop CSS", url: "/MediaWiki:Fandomdesktop.css", isMain: false, whoIsMain: "cj", shortName: "fdcss" },		{			text: "FandomDesktop JS", url: "/MediaWiki:Fandomdesktop.js", isMain: false, whoIsMain: "cj", shortName: "fdjs" },		{			text: "Others", url: "/wiki/Special:SpecialPages", isMain: true, shortName: "ot" },		{			text: "Recent Changes", url: "/wiki/Special:RecentChanges", isMain: false, whoIsMain: "ot", shortName: "rc" },		{			text: "List Users", url: "/wiki/Special:ListUsers/sysop", isMain: false, whoIsMain: "ot", shortName: "ur" },		{			text: "New Files", url: "/wiki/Special:NewFiles", isMain: false, whoIsMain: "ot", shortName: "nf" },		{			text: "New Pages", url: "/wiki/Special:NewPages", isMain: false, whoIsMain: "ot", shortName: "np" },		{			text: "Policy", url: "/wiki/Project:Policy", isMain: false, whoIsMain: "ot", shortName: "policy" }	];	if (mw.config.get('wgNamespaceIds').gadget) { window.globalNavButtons.push({			text: "Gadgets",			url: "/wiki/Special:Gadgets",			isMain: false,			whoIsMain: "ot",			shortName: "gadgets"		}); }	if (/sysop|administrator|content-moderator|threadmoderator/.test(mw.config.get('wgUserGroups').join)) { window.globalNavButtons.push({			text: "staff",			url: "",			isMain: true,			shortName: "staff",		}); }	if (/sysop|administrator|content-moderator|threadmoderator/.test(mw.config.get('wgUserGroups').join)) { window.globalNavButtons.push({			text: "Message Deletion",			url: "/wiki/Special:SocialActivity?deleted=true&containerTypes=WALL",			isMain: false,			whoIsMain: "staff",			shortName: "md"		}, {			text: "Reported Posts",			url: "/f/reported",			isMain: false,			whoIsMain: "staff",			shortName: "rp"		}); }	if (/sysop|administrator/.test(mw.config.get('wgUserGroups').join)) { window.globalNavButtons.push({			text: "Admin Dashboard",			url: "/wiki/Special:AdminDashboard",			isMain: false,			whoIsMain: "staff",			shortName: "admdash"		}, {			text: "Theme Designer",			url: "/wiki/Special:ThemeDesigner",			isMain: false,			whoIsMain: "staff",			shortName: "thmdesgnr"		}, {			text: "Announcements",			url: "/announcements",			isMain: false,			whoIsMain: "staff",			shortName: "announce"		}, {			text: "User Rights",			url: "/wiki/Special:UserRights",			isMain: false,			whoIsMain: "staff",			shortName: "wnav"		}, {			text: "Block",			url: "/wiki/Special:Block",			isMain: false,			whoIsMain: "staff",			shortName: "block"		}); }	importArticles({		type: 'script',		articles: [			"u:dev:MediaWiki:Wikificator.js",			"u:dev:MediaWiki:MultiUpload.js",			"u:dev:MediaWiki:MassEdit/code.js",			"u:dev:MediaWiki:QuickTitle/code.js",			"u:dev:MediaWiki:SyntaxHighlight.js",       	"u:dev:MediaWiki:HistoryKey/code.js",			"u:aeywoo:MediaWiki:GlobalNavButtons.js",			// "u:dev:MediaWiki:GlobalNavButtons.js", //            "u:dev:MediaWiki:FindAndReplace/code.js",			"u:dev:MediaWiki:AnchoredRollback/code.js",			"u:dev:MediaWiki:MassCategorization/code.js",		]	}); });