User:Aeywoo/global.js

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

// 2. MultiUpload configuration option window.MultiUploadoption = { defaultlicense: "Fairuse", max: 50 };

// 3. GlobalNavButtons configuration option mw.loader.using('mediawiki.util').then(function {	window.globalNavButtons = [{			text: "Wikis",			url: "",			isMain: true,			whoIsMain: false,			shortName: "w"		}, {			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: "Adoption Requests",			url: "https://community.fandom.com/wiki/Adoption:Requests",			isMain: false,			whoIsMain: "w",			shortName: "adoption"		}, {			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: "Steam Trading Cards Wiki", url: "https://steamtradingcards.fandom.com/wiki/Special:RecentChanges", isMain: false, whoIsMain: "w", shortName: "stcw" }, {			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: "Files", url: "/wiki/Special:SpecialPages", isMain: true, shortName: "f" }, {			text: "Recent Changes", url: "/wiki/Special:RecentChanges", isMain: false, whoIsMain: "f", shortName: "rc" }, {			text: "New Pages", url: "/wiki/Special:NewPages", isMain: false, whoIsMain: "f", shortName: "np" }, {			text: "New Files", url: "/wiki/Special:NewFiles", isMain: false, whoIsMain: "f", shortName: "nf" }, {			text: "Upload", url: "/wiki/Special:Upload", isMain: false, whoIsMain: "f", shortName: "Upload" }, {			text: "Others", url: "", isMain: true, shortName: "ot" }, {			text: "Zendesk Request", url: "https://fandom.zendesk.com/hc/en-us/requests/new?ticket_form_id=360000931354", isMain: false, whoIsMain: "ot", shortName: "zendesk" }, {			text: "List Users", url: "/wiki/Special:ListUsers/sysop", isMain: false, whoIsMain: "ot", shortName: "ur" },	];	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|rollback/.test(mw.config.get('wgUserGroups').join)) { window.globalNavButtons.push({			text: "staff",			url: "",			isMain: true,			shortName: "staff",		}); }	if (/sysop|administrator|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: "Licenses",			url: "/wiki/MediaWiki:Licenses",			isMain: false,			whoIsMain: "ot",			shortName: "licenses"		}, {			text: "Block",			url: "/wiki/Special:Block",			isMain: false,			whoIsMain: "staff",			shortName: "block"		}); }	importArticles({		type: 'script',		articles: [			"u:dev:MediaWiki:MultiUpload.js",			/* "u:dev:MediaWiki:OasisRevived.js",			"u:dev:MediaWiki:ThemeSelector.js",			"u:dev:MediaWiki:MassEdit/code.js",			"u:dev:MediaWiki:MassRename/code.js",			"u:dev:MediaWiki:QuickTitle/code.js", */			"u:dev:MediaWiki:SyntaxHighlight.js",       	"u:dev:MediaWiki:HistoryKey/code.js",			"u:dev:MediaWiki:GlobalNavButtons.js",            /* "u:dev:MediaWiki:FindAndReplace/code.js",			"u:dev:MediaWiki:AnchoredRollback/code.js", */			"u:dev:MediaWiki:MassCategorization/code.js"		]	}); });