User:Aeywoo/global.js

mw.loader.using("mediawiki.util").then(function {	// 1. AjaxRC configuration options	window.ajaxRefresh = 30000;	// 2. MultiUpload configuration options	window.MultiUploadoption = {		defaultlicense: "Fairuse",		//defaultlicense: "From Wikimedia",		max: 80	};	// 3. CustomizeAce configuration options	window.aceCustomSettings = {		wrap: true,		theme: "tomorrow_night",		tabSize: 4,		showInvisibles: false	};	// 4. AutoCreateUserPages configuration options	window.AutoCreateUserPagesConfig = {		content: {			2: "",			3: "",			1202: false		},		summary: "Creating my user page."	};	// 5. AnnouncementsIgnore configuration options	window.announcementsIgnore = {		option: "opt-out-all",		exceptWikiIds: [			177, // Community Wiki			7931, // Dev Wiki			10513, // Templates Wiki			627068, // The Simpsons Hit And Run Wiki			751296, // Steam Trading Cards Wiki			922669, // Unturned Bunker Wiki			1217529, // The Ultimate Driving Wiki 1606034, // Car Mechanic Simulator 2018 Wiki 1752064, // Control Wiki 1995962, // Quantum Science Wiki 2294162, // Gamepedia Help Wiki 2294461, // Minecraft Wiki 2743058, // PowerWash Simulator Wiki 2752327, // Car Mechanic Simulator 2021 Wiki 2873388, // Don't Escape Wiki 2897673, // The Nuclear Blaze Wiki 2935621, // The Darkside Detective Wiki 3019914 // Doors Wiki (Roblox) ]	};	// 6. Placement configuration options mw.loader.using("mediawiki.util").then(function {		mw.hook("dev.placement").add(function(placement) { placement.script("MWPagesToolbarLink"); $(placement.element("tools"))[placement.type("prepend")](				$("").append( $("", {						text: "MediaWiki Pages",						href: mw.util.getUrl("Special:AllPages", { namespace: 8 }),					})				),				$("").append( $("", {						text: "All Templates",						href: mw.util.getUrl("Special:AllPages", { namespace: 10 })					})				),				$("").append( $("", {						text: "All Categories",						href: mw.util.getUrl("Special:AllPages", { namespace: 14 }),					})				)			);		});	});	// 7. GlobalNavButtons configuration options window.globalNavButtons = [{ text: "Wikis", url: "", icon: '   ', isMain: true, shortName: "w" }, {			text: "SOAP Wiki", url: "https://soap.fandom.com/wiki/", whoIsMain: "w" }, {			text: "Developer Hub", url: "https://dev.fandom.com/wiki/", whoIsMain: "w" }, {			text: "Portability Hub", url: "https://portability.fandom.com/wiki/", whoIsMain: "w" }, {			text: "Templates Wiki", url: "https://templates.fandom.com/wiki/", whoIsMain: "w" }, {			text: "JustLeafy's Wiki", url: "https://justleafy.fandom.com/wiki/", whoIsMain: "w" }, {			text: "Fandom Commons", url: "https://commons.fandom.com/wiki/", whoIsMain: "w" }, {			text: "Community Central", url: "https://community.fandom.com/wiki/", whoIsMain: "w" }, {			text: "Adoption Requests", url: "https://community.fandom.com/wiki/Adoption:Requests", whoIsMain: "w" }, {			text: "Interlanguage link requests", url: "https://community.fandom.com/wiki/Community_Central:Interlanguage_link_requests", whoIsMain: "w" }, {			text: "UCP Internal Test Starter Wiki", url: "https://ucp-internal-test-starter.fandom.com/wiki/", whoIsMain: "w" }, {			text: "Games", url: "", icon: '    ', isMain: true, shortName: "gw" }, {			text: "Doors Wiki", url: "https://doors-game.fandom.com/wiki/", whoIsMain: "gw" }, {			text: "Control Wiki", url: "https://control.fandom.com/wiki/", whoIsMain: "gw" }, {			text: "Terra Nil Wiki", url: "https://terra-nil.fandom.com/wiki/", whoIsMain: "gw" }, {			text: "Unturned Bunker Wiki", url: "https://unturned.fandom.com/wiki/", whoIsMain: "gw" }, {			text: "The Don't Escape Wiki", url: "https://dont-escape.fandom.com/wiki/", whoIsMain: "gw" }, {			text: "The Nuclear Blaze Wiki", url: "https://nuclear-blaze.fandom.com/wiki/", whoIsMain: "gw" }, {			text: "Steam Trading Cards Wiki", url: "https://steamtradingcards.fandom.com/wiki/", whoIsMain: "gw" }, {			text: "PowerWash Simulator Wiki", url: "https://powerwash-simulator.fandom.com/wiki/", whoIsMain: "gw" }, {			text: "The Darkside Detective Wiki", url: "https://darkside-detective.fandom.com/wiki/", whoIsMain: "gw" }, {			text: "Global", url: "", icon: '<svg width="24px" height="24px" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12.0000002,1.99896738 C17.523704,1.99896738 22.0015507,6.47681407 22.0015507,12.0005179 C22.0015507,17.5242217 17.523704,22.0020684 12.0000002,22.0020684 C6.47629639,22.0020684 1.99844971,17.5242217 1.99844971,12.0005179 C1.99844971,6.47681407 6.47629639,1.99896738 12.0000002,1.99896738 Z M14.9389045,16.5002571 L9.06109593,16.5002571 C9.71313678,18.9143799 10.8464883,20.5020684 12.0000002,20.5020684 C13.1535121,20.5020684 14.2868636,18.9143799 14.9389045,16.5002571 Z M7.50830976,16.5008106 L4.78582644,16.5006803 C5.744167,18.0337454 7.17761035,19.2393418 8.87999355,19.9113065 C8.35771536,19.0914835 7.92672586,18.0651949 7.60972411,16.8958162 L7.50830976,16.5008106 L7.50830976,16.5008106 Z M19.214174,16.5006803 L16.4916907,16.5008106 C16.167923,17.8345819 15.700316,19.000392 15.1189501,19.9113639 C16.7159251,19.2813431 18.0755983,18.1823607 19.0289676,16.7842422 L19.214174,16.5006803 L19.214174,16.5006803 Z M7.09342418,9.9998686 L3.73581796,9.9998686 L3.73581796,9.9998686 L3.73106043,10.0170734 C3.57897914,10.6534279 3.49844971,11.3175685 3.49844971,12.0005179 C3.49844971,13.0566718 3.69103899,14.0678442 4.04301473,15.000832 L7.21617552,15.0004667 C7.07387589,14.0513637 6.99844971,13.0431468 6.99844971,12.0005179 C6.99844971,11.3165055 7.03091285,10.6473039 7.09342418,9.9998686 Z M15.3969276,9.99993255 L8.60307281,9.99993255 C8.53505119,10.640197 8.49844971,11.3099099 8.49844971,12.0005179 C8.49844971,13.0600224 8.5845969,14.070347 8.73818201,15.000607 L15.2618184,15.000607 C15.4154035,14.070347 15.5015507,13.0600224 15.5015507,12.0005179 C15.5015507,11.3099099 15.4649492,10.640197 15.3969276,9.99993255 Z M20.2646076,9.999033 L16.9065762,9.99988793 C16.9690876,10.6473039 17.0015507,11.3165055 17.0015507,12.0005179 C17.0015507,13.0431468 16.9261245,14.0513637 16.7838249,15.0004667 L19.9569857,15.000832 C20.3089614,14.0678442 20.5015507,13.0566718 20.5015507,12.0005179 C20.5015507,11.3111121 20.4194915,10.6408723 20.2646076,9.999033 Z M8.88105029,4.0896719 L8.85814489,4.09838857 C6.81083065,4.91309834 5.15481653,6.500408 4.25014894,8.50027116 L7.29826946,8.50063757 C7.61162388,6.74784533 8.15846945,5.22192073 8.88105029,4.0896719 Z M12.0000002,3.49896738 L11.8843481,3.50426666 C10.6189068,3.62002448 9.39642826,5.62198962 8.82871306,8.50021862 L15.1712874,8.50021862 C14.6051632,5.63005613 13.3879407,3.63125276 12.1262908,3.50528435 L12.0000002,3.49896738 Z M15.1200069,4.08972931 L15.2268438,4.26382329 C15.8960528,5.37628985 16.4041675,6.83617446 16.701731,8.50063757 L19.7498515,8.50027116 C18.8852005,6.58886886 17.3342021,5.05432991 15.4112068,4.21100469 L15.1200069,4.08972931 Z">  ', // https://www.svgrepo.com/svg/309663/globe isMain: true, shortName: "gbl" }, {			text: "Preferences", url: mw.util.getUrl("Special:Preferences"), whoIsMain: "gbl" }, {			text: "Personal CSS", url: mw.util.getUrl("User:Aeywoo/common.css"), whoIsMain: "gbl" }, {			text: "Personal JS", url: mw.util.getUrl("User:Aeywoo/common.js"), whoIsMain: "gbl" }, {			text: "Global CSS", url: "https://c.fandom.com/wiki/User:Aeywoo/global.css", whoIsMain: "gbl" }, {			text: "Global JS", url: "https://c.fandom.com/wiki/User:Aeywoo/global.js", whoIsMain: "gbl" }, {			text: "Subpages", url: mw.util.getUrl("Special:PrefixIndex/User:Aeywoo/"), whoIsMain: "gbl" }, {			text: "Sandbox", url: mw.util.getUrl("Special:MyPage/Sandbox"), whoIsMain: "gbl" }, {			text: "CSS/JS", url: "", icon: '<svg class="wds-icon"><svg width="24px" height="24px" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M9 22h1v-2h-.989C8.703 19.994 6 19.827 6 16c0-1.993-.665-3.246-1.502-4C5.335 11.246 6 9.993 6 8c0-3.827 2.703-3.994 3-4h1V2H8.998C7.269 2.004 4 3.264 4 8c0 2.8-1.678 2.99-2.014 3L2 13c.082 0 2 .034 2 3 0 4.736 3.269 5.996 5 6zm13-11c-.082 0-2-.034-2-3 0-4.736-3.269-5.996-5-6h-1v2h.989c.308.006 3.011.173 3.011 4 0 1.993.665 3.246 1.502 4-.837.754-1.502 2.007-1.502 4 0 3.827-2.703 3.994-3 4h-1v2h1.002C16.731 21.996 20 20.736 20 16c0-2.8 1.678-2.99 2.014-3L22 11z"/> ', // Icon made by Freepik from https://www.flaticon.com/ isMain: true, shortName: "cj" }, {			text: "ImportJS", url: mw.util.getUrl("MediaWiki:ImportJS"), whoIsMain: "cj" }, {			text: "Wikia JS", url: mw.util.getUrl("MediaWiki:Wikia.js"), whoIsMain: "cj" }, {			text: "Wikia CSS", url: mw.util.getUrl("MediaWiki:Wikia.css"), whoIsMain: "cj" }, {			text: "Common JS", url: mw.util.getUrl("MediaWiki:Common.js"), whoIsMain: "cj" }, {			text: "Common CSS", url: mw.util.getUrl("MediaWiki:Common.css"), whoIsMain: "cj" }, {			text: "FandomDesktop JS", url: mw.util.getUrl("MediaWiki:Fandomdesktop.js"), whoIsMain: "cj" }, {			text: "FandomDesktop CSS", url: mw.util.getUrl("MediaWiki:Fandomdesktop.css"), whoIsMain: "cj" }, {			text: "Files", url: "", icon: '<svg class="wds-icon"><use xlink:href="#wds-icons-image"><svg id="wds-icons-image" viewBox="0 0 24 24"><use fill-rule="evenodd" xlink:href="#image-a"><path id="image-a" d="M3 21v-6.586l4-4 6.293 6.293a.999.999 0 0 0 1.414 0L18 13.414l3 3V21H3zM21 3v10.586l-2.293-2.293a.999.999 0 0 0-1.414 0L14 14.586 7.707 8.293a.999.999 0 0 0-1.414 0L3 11.586V3h18zm1-2H2a1 1 0 0 0-1 1v20a1 1 0 0 0 1 1h20a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1zm-8 8c1.103 0 2-.897 2-2s-.897-2-2-2-2 .897-2 2 .897 2 2 2">    ', // https://www.svgrepo.com/svg/46114/upload isMain: true, shortName: "f" }, {			text: "Recent Changes", url: mw.util.getUrl("Special:RecentChanges"), whoIsMain: "f" }, {			text: "New Pages", url: mw.util.getUrl("Special:NewPages"), whoIsMain: "f" }, {			text: "New Files", url: mw.util.getUrl("Special:NewFiles"), whoIsMain: "f" }, {			text: "Upload", url: mw.util.getUrl("Special:Upload"), whoIsMain: "f", shortName: "Upload" }, {			text: "Others", url: "", icon: '<svg class="wds-icon wds-is-stroke-icon"><use xlink:href="#wds-verticals-movies"><svg id="wds-verticals-movies" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="2" d="M20 20H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2zM2 9h20M11 9L6 4M18 9l-5-5">   ', isMain: true, shortName: "ot" }, {			text: "Change Content Model", url: mw.util.getUrl("Special:ChangeContentModel"), whoIsMain: "ot" }, {			text: "Zendesk Request", url: "https://support.fandom.com/hc/en-us/requests/new?ticket_form_id=360000931354", whoIsMain: "ot" }, {			text: "Wiki Navigation", url: mw.util.getUrl("MediaWiki:Wiki-navigation"), whoIsMain: "ot" }, {			text: "Special Pages", url: mw.util.getUrl("Special:SpecialPages"), whoIsMain: "ot" }, {			text: "List Users", url: mw.util.getUrl("Special:ListUsers/sysop"), whoIsMain: "ot" }, {			text: "Licenses", url: mw.util.getUrl("MediaWiki:Licenses"), whoIsMain: "ot" }, {			text: "Extras", url: "", isMain: true, shortName: "xtrs" }, {			text: "Colour Picker", url: "https://www.google.com.au/search?q=Colour+Picker", whoIsMain: "xtrs" }, {			text: "W3Schools", url: "https://www.w3schools.com/", whoIsMain: "xtrs" }, {			text: "Autoprefixer CSS", url: "https://autoprefixer.github.io/", whoIsMain: "xtrs" }, {			text: "Steam Card Exchange", url: "https://www.steamcardexchange.net/index.php", whoIsMain: "xtrs" }, {			text: "Steam Trading Cards", url: "https://steam.tools/cards/", whoIsMain: "xtrs" }, {			text: "Completionist Me", url: "https://completionist.me/", whoIsMain: "xtrs" }, {			text: "Frens", url: "", icon: '<svg data-id="wds-icons-user" height="24" width="24" viewBox="0 0 24 24" class="wds-icon" xmlns="http://www.w3.org/2000/svg"><use xlink:href="#wds-icons-user"> ', isMain: true, shortName: "frens" }, {			text: "Friendly Mountain12", url: mw.util.getUrl("User:Friendly Mountain12"), whoIsMain: "frens" }, {			text: "Saurmandal", url: mw.util.getUrl("User:Saurmandal"), whoIsMain: "frens" }, {			text: "JustLeafy", url: mw.util.getUrl("User:JustLeafy"), whoIsMain: "frens" }, {			text: "Sophiedp", url: mw.util.getUrl("User:Sophiedp"), whoIsMain: "frens", shortName: "victory" }, {			text: "Dorumin", url: mw.util.getUrl("User:Dorumin"), whoIsMain: "frens" }, {			text: "Philo04", url: mw.util.getUrl("User:Philo04"), whoIsMain: "frens" }, {			text: "Dorito", url: mw.util.getUrl("User:Joritochip"), whoIsMain: "frens" }, {			text: "Robyn", url: mw.util.getUrl("User:Robyn_Grayson"), whoIsMain: "frens" }	];	if (mw.config.get("wgNamespaceIds").gadget) { window.globalNavButtons.push({			text: "Gadgets",			url: mw.util.getUrl("Special:Gadgets"),			whoIsMain: "ot"		}); }	if (/sysop|administrator|content-moderator|threadmoderator|rollback/.test(mw.config.get("wgUserGroups").join)) { window.globalNavButtons.push({			text: "staff",			url: "",			icon: '<svg class="wds-icon"><svg id="wds-avatar-badges-admin" viewBox="0 0 18 18"><path d="M5.855 7.127h1.393c.254 0 .386-.089.464-.313l.875-2.517A.416.416 0 0 1 8.99 4a.408.408 0 0 1 .417.29c.293.845.585 1.69.879 2.534.073.21.207.302.444.302h2.795c.143 0 .27.029.366.134a.375.375 0 0 1-.062.58c-.33.233-.665.458-1 .686l-1.315.9c-.182.124-.236.284-.167.485l.874 2.515c.057.163.053.313-.078.444a.44.44 0 0 1-.573.044l-1.008-.69-1.302-.889a.432.432 0 0 0-.525.001c-.77.526-1.54 1.053-2.31 1.577-.28.19-.645.05-.686-.264a.435.435 0 0 1 .026-.191c.29-.846.582-1.69.874-2.534.076-.222.026-.37-.17-.505L4.196 7.864c-.17-.116-.233-.283-.177-.454.058-.178.21-.282.424-.282.47-.002.94-.001 1.411-.001z">  ',			isMain: true,			shortName: "staff"		}); }	if (/sysop|administrator|content-moderator|threadmoderator/.test(mw.config.get("wgUserGroups").join)) { window.globalNavButtons.push({			text: "Message Deletion",			url: "/Special:SocialActivity?deleted=true&containerTypes=WALL",			whoIsMain: "staff"		}, {			text: "Reported Posts",			url: "/f/reported",			whoIsMain: "staff"		}); }	if (/sysop|administrator/.test(mw.config.get("wgUserGroups").join)) { window.globalNavButtons.push({			text: "Admin Dashboard",			url: mw.util.getUrl("Special:AdminDashboard"),			whoIsMain: "staff"		}, {			text: "Announcements",			url: "/announcements",			whoIsMain: "staff"		}, {			text: "Theme Designer",			url: mw.util.getUrl("Special:ThemeDesigner"),			whoIsMain: "staff"		}, {			text: "Delete Reasons",			url: mw.util.getUrl("MediaWiki:Deletereason-dropdown"),			whoIsMain: "ot"		}, {			text: "User Rights",			url: mw.util.getUrl("Special:UserRights"),			whoIsMain: "staff"		}, {			text: "Block",			url: mw.util.getUrl("Special:Block"),			whoIsMain: "staff"		}); }	//window.GlobalNavButtonsConf = { //	keepLinks: ["start-a-wiki"] //};	//window.globalNavButtons.push({	//	text: "Start A Wiki",	//	url: "https://community-137.fandom.com/wiki/Special:CreateNewWiki",	//	icon: '<svg class="wds-icon wds-icon-small"><use xlink:href="#wds-icons-add-small"> ',	//	isMain: false	//}); //importScriptPage("User:Aeywoo/common.js", "dev"); importScriptPage("User:KockaAdmiralac/LinkModifications.js", "kocka"); //importScriptPage("User:Aeywoo/VanguardTools.js", "darkside-detective"); importArticles({		type: "script",		articles: [			/* Enabled */			"u:dev:MediaWiki:Q.js",			"u:dev:MediaWiki:Sofix.js",			"u:dev:MediaWiki:AjaxRC.js",			"u:dev:MediaWiki:Stella.js",			"u:dev:MediaWiki:DoruDev.js",			"u:dev:MediaWiki:DupeArgs.js",			"u:dev:MediaWiki:Placement.js",			"u:dev:MediaWiki:MultiUpload.js",			"u:dev:MediaWiki:PatrolPanel.js",			"u:dev:MediaWiki:PurgeButton.js",			"u:dev:MediaWiki:CustomizeAce.js",			"u:dev:MediaWiki:ThemeToggler.js",			"u:dev:MediaWiki:UCXSearchBar.js",			"u:dev:MediaWiki:CodeSelectAll.js",			"u:dev:MediaWiki:FastFileDelete.js",			"u:dev:MediaWiki:GamepediaTheme.js",			"u:dev:MediaWiki:AjaxBatchDelete.js",			"u:dev:MediaWiki:CacheCheck/code.js",			"u:dev:MediaWiki:HistoryKey/code.js",			"u:dev:MediaWiki:ShowWROnToolbar.js",			"u:dev:MediaWiki:GlobalNavButtons.js",			"u:dev:MediaWiki:ChangeModelButton.js",			"u:dev:MediaWiki:ImportJSPage/code.js", "u:dev:MediaWiki:AnnouncementsIgnore.js", "u:dev:MediaWiki:AutoCreateUserPages.js", "u:dev:MediaWiki:FixWantedFiles/code.js", "u:dev:MediaWiki:MinimalTestModeAlert.js", "u:dev:MediaWiki:ModulesLinkToModules.js", "u:dev:MediaWiki:DisableInfoboxBuilder.js", "u:dev:MediaWiki:ViewInContentLang/code.js", "u:dev:MediaWiki:MassCategorization/code.js", "u:dev:MediaWiki:InterwikisOnSpecialPages.js", /* Disabled *//* "u:dev:MediaWiki:DupeArgs.js", "u:dev:MediaWiki:CopyTitle.js", "u:dev:MediaWiki:HydraRevived.js", "u:dev:MediaWiki:OasisRevived.js", "u:dev:MediaWiki:MassEdit/code.js", "u:dev:MediaWiki:ThemeSelector.js", "u:dev:MediaWiki:MassRename/code.js", "u:dev:MediaWiki:SyntaxHighlight.js", "u:dev:MediaWiki:QuickTitle/code.js", "u:dev:MediaWiki:DisableCode/code.js", "u:dev:MediaWiki:UploadMultipleFiles.js", "u:dev:MediaWiki:AnchoredRollback/code.js",*/ ]	}); });