User:Aeywoo/global.js

mw.loader.using('mediawiki.util').then(function {	// 1. AjaxRC configuration option	window.ajaxRefresh = 30000;	// 2. MultiUpload configuration option	window.MultiUploadoption = {		defaultlicense: "Fairuse",	   max: 80	};

// 3. GlobalNavButtons configuration option window.globalNavButtons = [{ text: "Wikis", url: "", icon: '   ', isMain: true, shortName: "w" }, {			text: "Developer Hub", url: "https://dev.fandom.com/wiki/", whoIsMain: "w", shortName: "dev" }, {			text: "Templates Wiki", url: "https://templates.fandom.com/wiki/", whoIsMain: "w", shortName: "templates" }, {			text: "Community Central", url: "https://community.fandom.com/wiki/", whoIsMain: "w", shortName: "community" }, {			text: "Adoption Requests", url: "https://community.fandom.com/wiki/Adoption:Requests", whoIsMain: "w", shortName: "adoption" }, {			text: "Wikis 2", url: "", icon: '   ', isMain: true, shortName: "w2" }, {			text: "CMS2018", url: "https://cms2018.fandom.com/wiki/", whoIsMain: "w2", shortName: "cms2018" }, {			text: "Terra Nil Wiki", url: "https://terra-nil.fandom.com/wiki/", whoIsMain: "w2", shortName: "tnw" }, {			text: "JustLeafy's Wiki", url: "https://justleafy.fandom.com/wiki/", whoIsMain: "w2", shortName: "shnrw" }, {			text: "SCP: Silenced Wiki", url: "https://scp-silenced.fandom.com/wiki/", whoIsMain: "w2", shortName: "scpsw" }, {			text: "Steam Trading Cards Wiki", url: "https://steamtradingcards.fandom.com/wiki/", whoIsMain: "w2", shortName: "stcw" }, {			text: "Car Mechanic Simulator 2018 Wiki", url: "https://car-mechanic-simulator-2018.fandom.com/wiki/", isMain: false, whoIsMain: "w2", shortName: "carmechsim2018" }, {			text: "Global", url: "", isMain: true, shortName: "gbl" }, {			text: "Preferences", url: "/wiki/Special:Preferences", whoIsMain: "gbl", shortname: "pr" }, {			text: "Personal CSS", url: "/wiki/User:Aeywoo/common.css", whoIsMain: "gbl", shortName: "mycss" }, {			text: "Personal JS", url: "/wiki/User:Aeywoo/common.js", whoIsMain: "gbl", shortName: "myjs" }, {			text: "Global CSS", url: "https://community.fandom.com/wiki/User:Aeywoo/global.css", whoIsMain: "gbl", shortName: "mygbcss" }, {			text: "Global JS", url: "https://community.fandom.com/wiki/User:Aeywoo/global.js", whoIsMain: "gbl", shortName: "mygbjs" }, {			text: "CSS/JS", url: "", isMain: true, shortName: "cj" }, {			text: "Wikia CSS", url: "/MediaWiki:Wikia.css", whoIsMain: "cj", shortName: "wikiacss" }, {			text: "Wikia JS", url: "/MediaWiki:Wikia.js", whoIsMain: "cj", shortName: "wikiajs" }, {			text: "ImportJS", url: "/wiki/MediaWiki:ImportJS", whoIsMain: "cj", shortName: "imprtjs" }, {			text: "Common CSS", url: "/MediaWiki:Common.css", whoIsMain: "cj", shortName: "cmncss" }, {			text: "Common JS", url: "/MediaWiki:Common.js", whoIsMain: "cj", shortName: "cmnjs" }, {			text: "FandomDesktop CSS", url: "/MediaWiki:Fandomdesktop.css", whoIsMain: "cj", shortName: "fdcss" }, {			text: "FandomDesktop JS", url: "/MediaWiki:Fandomdesktop.js", whoIsMain: "cj", shortName: "fdjs" }, {			text: "Files", url: "", isMain: true, shortName: "f" }, {			text: "Recent Changes", url: "/wiki/Special:RecentChanges", whoIsMain: "f", shortName: "rc" }, {			text: "New Pages", url: "/wiki/Special:NewPages", whoIsMain: "f", shortName: "np" }, {			text: "New Files", url: "/wiki/Special:NewFiles", whoIsMain: "f", shortName: "nf" }, {			text: "Upload", url: "/wiki/Special:Upload", 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", whoIsMain: "ot", shortName: "zendesk" }, {			text: "Special Pages", url: "/wiki/Special:SpecialPages", whoIsMain: "ot", shortName: "special" }, {			text: "List Users", url: "/wiki/Special:ListUsers/sysop", whoIsMain: "ot", shortName: "ursysop" }, {			text: "List Bots", url: "/wiki/Special:ListUsers/bot", whoIsMain: "ot", shortName: "urbot" }, {			text: "Licenses", url: "/wiki/MediaWiki:Licenses", whoIsMain: "ot", shortName: "licenses" }, {			text: "Extras", url: "", isMain: true, shortName: "xtrs" }, {			text: "Colour Picker", url: "https://www.google.com.au/search?q=Colour+Picker", whoIsMain: "xtrs", shortName: "clrpckr" }, {			text: "W3Schools", url: "https://www.w3schools.com/", whoIsMain: "xtrs", shortName: "w3" }, {			text: "Autoprefixer CSS", url: "https://autoprefixer.github.io/", whoIsMain: "xtrs", shortName: "autoprfxr" }, {			text: "Steam Card Exchange", url: "https://www.steamcardexchange.net/index.php", whoIsMain: "xtrs", shortName: "sce" }, {			text: "Steam Trading Cards", url: "https://steam.tools/cards/", whoIsMain: "xtrs", shortName: "stc" },	];	if (mw.config.get('wgNamespaceIds').gadget) { window.globalNavButtons.push({			text: "Gadgets",			url: "/wiki/Special:Gadgets",			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",			whoIsMain: "staff",			shortName: "md"		}, {			text: "Reported Posts",			url: "/f/reported",			whoIsMain: "staff",			shortName: "rp"		}); }	if (/sysop|administrator/.test(mw.config.get('wgUserGroups').join)) { window.globalNavButtons.push({			text: "Admin Dashboard",			url: "/wiki/Special:AdminDashboard",			whoIsMain: "staff",			shortName: "admdash"		}, {			text: "Announcements",			url: "/announcements",			whoIsMain: "staff",			shortName: "announce"		}, {			text: "Theme Designer",			url: "/wiki/Special:ThemeDesigner",			whoIsMain: "staff",			shortName: "thmdesgnr"		}, {			text: "Delete Reasons",			url: "/wiki/MediaWiki:Deletereason-dropdown",			whoIsMain: "ot",			shortName: "dltrsn"		}, {			text: "User Rights",			url: "/wiki/Special:UserRights",			whoIsMain: "staff",			shortName: "wnav"		}, {			text: "Block",			url: "/wiki/Special:Block",			whoIsMain: "staff",			shortName: "block"		}); }	importArticles({		type: 'script',		articles: [			/* Enabled */       	"u:dev:MediaWiki:CopyTitle.js",			"u:dev:MediaWiki:MultiUpload.js",        	"u:dev:MediaWiki:UCXSearchBar.js",	        "u:dev:MediaWiki:FD-CSS-VTable.js",			"u:dev:MediaWiki:MassEdit/code.js",			"u:dev:MediaWiki:SyntaxHighlight.js",        	"u:dev:MediaWiki:HistoryKey/code.js",			"u:dev:MediaWiki:GlobalNavButtons.js",	        "u:dev:MediaWiki:ViewInContentLang/code.js",			"u:dev:MediaWiki:MassCategorization/code.js",			/* Disabled *//*			"u:dev:MediaWiki:Q.js",			"u:dev:MediaWiki:DupeArgs.js", 			"u:dev:MediaWiki:HydraRevived.js",			"u:dev:MediaWiki:OasisRevived.js",			"u:dev:MediaWiki:ThemeSelector.js",			"u:dev:MediaWiki:MassRename/code.js",			"u:dev:MediaWiki:QuickTitle/code.js",			"u:dev:MediaWiki:DisableCode/code.js",        	"u:dev:MediaWiki:FindAndReplace/code.js",			"u:dev:MediaWiki:AnchoredRollback/code.js",*/ ]	}); });