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, whoIsMain: false, shortName: "w" }, {			text: "Developer Hub", url: "https://dev.fandom.com/wiki/", whoIsMain: "w", shortName: "dev" }, {			text: "Community Central", url: "https://community.fandom.com/wiki/Community_Central", whoIsMain: "w", shortName: "community" }, {			text: "Adoption Requests", url: "https://community.fandom.com/wiki/Adoption:Requests", whoIsMain: "w", shortName: "adoption" }, {			text: "Terra Nil Wiki", url: "https://terra-nil.fandom.com/wiki/Special:RecentChanges", whoIsMain: "w", shortName: "tnw" }, {			text: "JustLeafy's Wiki", url: "https://justleafy.fandom.com/wiki/Special:RecentChanges", whoIsMain: "w", shortName: "shnrw" }, {			text: "SCP: Silenced Wiki", url: "https://scp-silenced.fandom.com/wiki/Special:RecentChanges", whoIsMain: "w", shortName: "scpsw" }, {			text: "Steam Trading Cards Wiki", url: "https://steamtradingcards.fandom.com/wiki/Special:RecentChanges", whoIsMain: "w", shortName: "stcw" }, {			text: "User", url: "", isMain: true, shortName: "p" }, {			text: "Preferences", url: "/wiki/Special:Preferences", whoIsMain: "p", shortname: "pr" }, {			text: "Personal CSS", url: "/wiki/User:Aeywoo/common.css", whoIsMain: "p", shortName: "mycss" }, {			text: "Personal JS", url: "/wiki/User:Aeywoo/common.js", whoIsMain: "p", shortName: "myjs" }, {			text: "Global CSS", url: "https://community.fandom.com/wiki/User:Aeywoo/global.css", whoIsMain: "p", shortName: "mygbcss" }, {			text: "Global JS", url: "https://community.fandom.com/wiki/User:Aeywoo/global.js", whoIsMain: "p", shortName: "mygbjs" }, {			text: "CSS/JS", url: "", icon: '', 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" },	];	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: [/*			"u:dev:MediaWiki:Q.js",			"u:dev:MediaWiki:DupeArgs.js", */       	"u:dev:MediaWiki:CopyTitle.js",			"u:dev:MediaWiki:MultiUpload.js",/*			"u:dev:MediaWiki:OasisRevived.js",			"u:dev:MediaWiki:HydraRevived.js",        	"u:dev:MediaWiki:UCXSearchBar.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:DisableCode/code.js",*/            "u:dev:MediaWiki:FindAndReplace/code.js",/*			"u:dev:MediaWiki:AnchoredRollback/code.js",*/			"u:dev:MediaWiki:MassCategorization/code.js"		]	}); });