User:Aeywoo/global.js

/** * Name:       MultiUploadJS * Author:     Fujimaru-kun (Local edit by Aeywoo) * Based on:   MultiUpload (by Gguigui1 and KhangND), Gadget-multiupload.js (by Pcj) * Description: Allows upload of multiple files at the same time */ mw.loader.using(["mediawiki.api", "mediawiki.util"]).then(function {    "use strict";    var config = mw.config.get([ "wgCanonicalSpecialPageName", "wgUserLanguage", "wgUserGroups", "wgVersion" ]);   if ( window.MultiUploadJSLoaded || config.wgCanonicalSpecialPageName !== "Upload" || $("#wpForReUpload").val || //Disabling for Reupload !/autoconfirmed/.test(config.wgUserGroups.join) ) {       return;    }    window.MultiUploadJSLoaded = true;    var api = new mw.Api,        i18n,        preloads = 1,        token = mw.user.tokens.get("csrfToken"),        files = [],        stdmsgs = ["filedesc", "license-header", "fileexists-no-change", "fileexists-duplicate-version", "verification-error", "fileexists-shared-forbidden", "permissiondenied", "watchthisupload", "ignorewarnings", "filewasdeleted"].join("|"),        limit = (window.MultiUploadoption && window.MultiUploadoption.max) ? window.MultiUploadoption.max : -1,        defaultlicense = (window.MultiUploadoption && window.MultiUploadoption.defaultlicense) ? window.MultiUploadoption.defaultlicense : "",        curFile = 0;    function preload {        if (--preloads === 0) {            window.dev.i18n.loadMessages('MultiUpload').then(init);        }    }    function init(i18nData) {        i18n = i18nData;        setLimit; getMessages; $("#wpUploadFile").parent.parent.addClass("regularFileSelect"); $("tr.regularFileSelect").after('&nbsp  '); $("#mw-htmlform-source > tbody > tr.mw-htmlform-field-UploadSourceField.regularFileSelect").remove; $("#mw-upload-form > fieldset:nth-child(3)").remove; $("#mw-upload-form > span > input.mw-htmlform-submit").remove; $("#mw-upload-form > fieldset:nth-child(2)").hide; $("span.mw-htmlform-submit-buttons").append(''); $("span.mw-htmlform-submit-buttons").append(''); $("#multiupload").change(addFields); $("#multiFileSubmit").click(uploadFiles); $("#multiFileReset").click(reset); }   /*     * Set Maximum number of file the user can import at one time (can be overriden by a config var but its value is capped at 100) * Clearly my opinion is better than yours, if you can't upload over 140 files as a bureaucrat, are you really a bureaucrat? */   function setLimit { if (limit < 0 ||           limit > 100 ||            typeof limit !== "number") { if (/staff|helper|util|bot-global|wiki-representative|wiki-specialist/.test(config.wgUserGroups.join)) { limit = 300; // 200 } else if (/bureaucrat|bot/.test(config.wgUserGroups.join)) { limit = 160; // 70 } else if (/sysop/.test(config.wgUserGroups.join)) { limit = 70; // 50 } else if (/rollback|content-moderator/.test(config.wgUserGroups.join)) { limit = 40; // 30 } else { limit = 30; // 20 }       }    }    /*     * Add Fields to change the filename, description and license of each file to DOM */   function addFields { reset; files = $("#multiupload")[0].files; if (files.length <= limit) { var watchuploads = mw.user.options.get('watchuploads') == "1" ? 'checked=\"checked\"' : ''; for (var index = 0; index < files.length; index++) { var element = files[index]; var filedesc = $("#mw-upload-form > fieldset:nth-child(2)").clone; filedesc.attr("id", "file-" + index); filedesc.children("legend").text(i18n.msg('imagename').escape + (index + 1)); filedesc.find("#mw-htmlform-description > tbody > tr.mw-htmlform-field-HTMLTextField > td.mw-label > label").attr("for", "wpDestFile" + index); filedesc.find("#mw-htmlform-description > tbody > tr.mw-htmlform-field-HTMLTextAreaField > td.mw-label > label").attr("for", "wpUploadDescription" + index); filedesc.find("#wpDestFile").attr("name", "wpDestFile" + index).attr("id", "wpDestFile" + index).val(element.name); filedesc.find("#wpUploadDescription").attr("name", "wpUploadDescription" + index).attr("id", "wpUploadDescription" + index); filedesc.find("#wpLicense").attr("name", "wpLicense" + index).attr("id", "wpLicense" + index).val(defaultlicense); filedesc.append(" "); filedesc.append(" " + i18n.msg('watchthisupload').escape + " "); filedesc.append(" " + i18n.msg('ignorewarnings').escape + " "); $("#mw-upload-form > span").before(filedesc.show); }       } else { alert(i18n.msg("limit").plain); $("#multiupload").val(""); reset; }   }    /*     * Reset form to its initial state */   function reset { files = []; $("#mw-upload-form > fieldset:nth-child(2) ~ fieldset").remove; }   /*     * Get standard messages for supported errors */   function getMessages { api.get({           action: "query",            meta: "allmessages",            amlang: config.wgUserLanguage,            ammessages: stdmsgs        }).then(function (data) {            var msg = data.query.allmessages;            msg.forEach(function (message) { i18n["_messages"][config.wgUserLanguage][message.name] = message["*"]; });       });    }    /*      * Initiate uploading process */   function uploadFiles { if (files.length === 0) { alert(i18n.msg("nofile").plain); return false; } else if (files.length > limit) { alert(i18n.msg("limit").plain); return false; }       $("#firstHeading").text(i18n.msg('uploading').escape); $("#mw-content-text").hide; $(" " + i18n.msg('successful').escape + "  " + i18n.msg('failed').escape + "  ").prependTo("#content"); apiUpload; }   /*     * Make API Requests to upload files */   function apiUpload { if (curFile > files.length) { $(" " + i18n.msg("done").escape + " ").appendTo("#content"); return; }       if (files[curFile] === undefined) { curFile++; apiUpload; return; }       var filename = $("#wpDestFile" + curFile).val || files[curFile].name; var license = $("#wpLicense" + curFile + " option:selected").prop("title") !== " – " ? "== " + i18n.msg('license-header').plain + " ==\n" + $("#wpLicense" + curFile + " option:selected").prop("title") : ""; var description = $("#wpUploadDescription" + curFile).val ? "== " + i18n.msg('filedesc').plain + " ==\n" + $("#wpUploadDescription" + curFile).val : ""; var watch = $("#wpWatchthis" + curFile).is(":checked") ? 'watch' : 'nochange'; var warning = $("#wpIgnoreWarning" + curFile).is(":checked"); var params = { token: token, filename: filename, text: description + "\n" + license, watchlist: watch, ignorewarnings: "1", format: "json" };       if (!warning) { delete params.ignorewarnings; }       api.upload(files[curFile], params).done(function (d) {            console.log(d);            $("#multiUploadDone").append('<li><a href="' + d.upload.imageinfo.descriptionurl + '" target="_blank">' + d.upload.filename + '</a></li>');            curFile++;            apiUpload;        }).fail(function (d) {            if (!warning || stdmsgs.includes(d)) {                $("#multiUploadFailed ul").append("<li>" + filename + ": " + i18n.msg(d,"File:"+filename).parse + "</li>");                $("#multiUploadFailed").show;            } else {                $("#multiUploadDone").append("<li>" + filename + ": " + i18n.msg(d).escape + "</li>");            }            curFile++;            apiUpload;        }); }   mw.hook("dev.i18n").add(preload); importArticles({       type: "script",        articles: [            "u:dev:MediaWiki:I18n-js/code.js"        ]    }); });

// SourceEditorFooter.js, by Aeywoo with help from: Sophiedp, Arashiryuu0 and Caburum mw.loader.using(["mediawiki.api","mediawiki.jqueryMsg"]).then(function {   return new mw.Api.loadMessagesIfMissing(["wds-fandom-homepage-aria-label","global-footer-fandom-overview-header","global-footer-follow-us-header","global-footer-follow-us-aria-label-facebook","global-footer-follow-us-aria-label-twitter","global-footer-follow-us-aria-label-youtube","global-footer-follow-us-aria-label-instagram","global-footer-follow-us-aria-label-linkedin","global-footer-company-overview-header","global-footer-company-overview-link-what-is-fandom","global-footer-company-overview-link-about","global-footer-company-overview-link-careers","global-footer-company-overview-link-press","global-footer-company-overview-link-contact","global-footer-site-overview-link-terms-of-use","global-footer-site-overview-link-privacy-policy","global-footer-site-overview-link-global-sitemap","global-footer-site-overview-link-local-sitemap","global-footer-community-header","global-footer-community-link-community-central","global-footer-community-link-support","global-footer-community-link-help","global-footer-advertise-header","global-footer-advertise-link-media-kit","global-footer-community-apps-header","global-footer-community-apps-description","global-footer-fandom-appstore-link-aria-label","global-footer-fandom-googleplay-link-aria-label","global-footer-mobile-site-link"]); }).then(function { // Checks if you're in edit or submit mode of the 2010 Source Editor if (($(document.body).hasClass("action-edit") || $(document.body).hasClass("action-submit")) !== true ) { return; }   // Prevent double loading if ($(document.body).hasClass("source-editor-footer")) { return; }   var editorFooterClass = $(document.body).addClass("source-editor-footer"); // Creating the vars var footerClass = $(" ") .addClass("global-footer"); var footerContentDiv = $(" ") .addClass("global-footer__content"); var footerBottomDiv = $(" ") .addClass("global-footer__bottom"); /// Footer Bottom Bar Text var footerDivText = "Fandom Sucks"; var output = mw.config.get("wikiVertical"); if ($.isEmptyObject(output)) { // The output is null, so display a message to the user footerDivText = mw.config.get("wgSiteName").replace(/\sWiki$/, "") + " is a FANDOM Fanon Community."; mw.log.error("The wikiVertical variable is not defined for this MediaWiki installation, please report this to Fandom Staff immediately, defaulting wikiVertical value to 'Fanon'"); } else if (typeof output == "string") { output = output.replace("other", "lifestyle"); var capitalizedOutput = output.charAt(0).toUpperCase + output.slice(1); footerDivText = mw.config.get("wgSiteName").replace(/\sWiki$/, "") + " is a FANDOM " + (capitalizedOutput) + " Community."; } else { return; }   var footerBottomCommunityDiv = $(" ") .text(footerDivText); /// Division Group 1 (Logo // Explore) var globalFooterLogo = $(" ") .addClass("global-footer__header"); var globalFooterLogoA = $("<a>") .attr("href", "https://www.fandom.com/") .attr("data-tracking-label", "logo") .attr("title", "Fandom") .attr("aria-label", mw.message("wds-fandom-homepage-aria-label")); var globalFooterLogoSvg = $('<svg class="global-footer__header-logo"><use xlink:href="#wds-brand-fandom-logo-light"> '); //// Explore Section var globalFooterExploreSection = $(" ") .addClass("global-footer__section global-footer__section-fandom-overview"); var globalFooterExploreHeader = $(" ") .addClass("global-footer__section-header") .text(mw.message("global-footer-fandom-overview-header")); var globalFooterExploreList = $("") .addClass("global-footer__links"); var globalFooterExploreLink1 = $("<a>") .attr("href", "https://www.fandom.com/") .addClass("global-footer__link") .attr("data-tracking-label", "explore.fandom") .attr("aria-label", "Fandom") .text("Fandom"); var globalFooterExploreLink2 = $("<a>") .attr("href", "https://www.cortexrpg.com/") .addClass("global-footer__link") .attr("data-tracking-label", "explore.cortexrpg") .attr("aria-label", "CortexRPG") .text("Cortex RPG"); var globalFooterExploreLink3 = $("<a>") .attr("href", "https://www.muthead.com/") .addClass("global-footer__link") .attr("data-tracking-label", "explore.muthead") .attr("aria-label", "Muthead") .text("Muthead"); var globalFooterExploreLink4 = $("<a>") .attr("href", "https://www.futhead.com/") .addClass("global-footer__link") .attr("data-tracking-label", "explore.futhead") .attr("aria-label", "Futhead") .text("Futhead"); var globalFooterExploreLink5 = $("<a>") .attr("href", "https://www.fanatical.com/") .addClass("global-footer__link") .attr("data-tracking-label", "explore.fanatical") .attr("aria-label", "Fanatical") .text("Fanatical"); //// Follow Us Section var globalFooterFollowUsSection = $(" ") .addClass("global-footer__section global-footer__section-social-links"); var globalFooterFollowUsHeader = $(" ") .addClass("global-footer__section-header") .text(mw.message("global-footer-follow-us-header")); var globalFooterFollowUsList = $("") .addClass("global-footer__links"); var globalFooterFollowUsFacebook = $("<a>") .attr("href", "https://www.facebook.com/getfandom") .addClass("global-footer__link") .attr("data-tracking-label", "follow-us.facebook") .attr("aria-label", mw.message("global-footer-follow-us-aria-label-facebook")); var globalFooterFollowUsTwitter = $("<a>") .attr("href", "https://twitter.com/getfandom") .addClass("global-footer__link") .attr("data-tracking-label", "follow-us.twitter") .attr("aria-label", mw.message("global-footer-follow-us-aria-label-twitter")); var globalFooterFollowUsYouTube = $("<a>") .attr("href", "https://www.youtube.com/fandomentertainment") .addClass("global-footer__link") .attr("data-tracking-label", "follow-us.youtube") .attr("aria-label", mw.message("global-footer-follow-us-aria-label-youtube")); var globalFooterFollowUsInstagram = $("<a>") .attr("href", "https://www.instagram.com/getfandom/") .addClass("global-footer__link") .attr("data-tracking-label", "follow-us.instagram") .attr("aria-label", mw.message("global-footer-follow-us-aria-label-instagram")); var globalFooterFollowUsLinkedIn = $("<a>") .attr("href", "https://www.linkedin.com/company/157252") .addClass("global-footer__link") .attr("data-tracking-label", "follow-us.linkedin") .attr("aria-label", mw.message("global-footer-follow-us-aria-label-linkedin")); var globalFooterIconFacebook = $('<svg class="global-footer__link-icon wds-icon wds-icon-small"><use xlink:href="#wds-icons-facebook"> '); var globalFooterIconTwitter = $('<svg class="global-footer__link-icon wds-icon wds-icon-small"><use xlink:href="#wds-icons-twitter"> '); var globalFooterIconYouTube = $('<svg class="global-footer__link-icon wds-icon wds-icon-small"><use xlink:href="#wds-icons-youtube"> '); var globalFooterIconInstagram = $('<svg class="global-footer__link-icon wds-icon wds-icon-small"><use xlink:href="#wds-icons-instagram"> '); var globalFooterIconLinkedIn = $('<svg class="global-footer__link-icon wds-icon wds-icon-small"><use xlink:href="#wds-icons-linkedin"> '); /// Division Group 2 (Overview) var globalFooterOverviewSection = $(" ") .addClass("global-footer__section global-footer__section-site-overview"); var globalFooterOverviewHeader = $(" ") .addClass("global-footer__section-header") .text(mw.message("global-footer-company-overview-header")); var globalFooterOverviewList = $("") .addClass("global-footer__links"); var globalFooterSiteOverviewLink1 = $("<a>") .attr("href", "https://www.fandom.com/") .addClass("global-footer__link") .attr("data-tracking-label", "company-overview.what-is-fandom") .attr("aria-label", mw.message("global-footer-company-overview-link-what-is-fandom")) .text(mw.message("global-footer-company-overview-link-what-is-fandom")); var globalFooterSiteOverviewLink2 = $("<a>") .attr("href", "https://www.fandom.com/") .addClass("global-footer__link") .attr("data-tracking-label", "company-overview.about") .attr("aria-label", mw.message("global-footer-company-overview-link-about")) .text(mw.message("global-footer-company-overview-link-about")); var globalFooterSiteOverviewLink3 = $("<a>") .attr("href", "https://www.fandom.com/") .addClass("global-footer__link") .attr("data-tracking-label", "company-overview.careers") .attr("aria-label", mw.message("global-footer-company-overview-link-careers")) .text(mw.message("global-footer-company-overview-link-careers")); var globalFooterSiteOverviewLink4 = $("<a>") .attr("href", "https://www.fandom.com/") .addClass("global-footer__link") .attr("data-tracking-label", "company-overview.press") .attr("aria-label", mw.message("global-footer-company-overview-link-press")) .text(mw.message("global-footer-company-overview-link-press")); var globalFooterSiteOverviewLink5 = $("<a>") .attr("href", "https://www.fandom.com/") .addClass("global-footer__link") .attr("data-tracking-label", "company-overview.contact") .attr("aria-label", "global-footer-company-overview-link-contact") .text(mw.message("global-footer-company-overview-link-contact")); var globalFooterSiteOverviewLink6 = $("<a>") .attr("href", "https://www.fandom.com/") .addClass("global-footer__link") .attr("data-tracking-label", "site-overview.terms-of-use") .attr("aria-label", mw.message("global-footer-site-overview-link-terms-of-use")) .text(mw.message("global-footer-site-overview-link-terms-of-use")); var globalFooterSiteOverviewLink7 = $("<a>") .attr("href", "https://www.fandom.com/") .addClass("global-footer__link") .attr("data-tracking-label", "site-overview.privacy-policy") .attr("aria-label", mw.message("global-footer-site-overview-link-privacy-policy")) .text(mw.message("global-footer-site-overview-link-privacy-policy")); var globalFooterSiteOverviewLink8 = $("<a>") .attr("href", "https://community.fandom.com/wiki/Sitemap") .addClass("global-footer__link") .attr("data-tracking-label", "site-overview.global-sitemap") .attr("aria-label", mw.message("global-footer-site-overview-link-global-sitemap")) .text(mw.message("global-footer-site-overview-link-global-sitemap")); var globalFooterSiteOverviewLink9 = $("<a>") .attr("href", mw.util.getUrl("Local_Sitemap")) .addClass("global-footer__link") .attr("data-tracking-label", "site-overview.local-sitemap") .attr("aria-label", mw.message("global-footer-site-overview-link-local-sitemap")) .text(mw.message("global-footer-site-overview-link-local-sitemap")); /// Division Group 3 (Community // Advertise) //// Community Section var globalFooterCommunitySection = $(" ") .addClass("global-footer__section global-footer__section-community"); var globalFooterCommunityHeader = $(" ") .addClass("global-footer__section-header") .text(mw.message("global-footer-community-header")); var globalFooterCommunityList = $("") .addClass("global-footer__links"); var globalFooterCommunityLink1 = $("<a>") .attr("href", "https://community.fandom.com/wiki/Community_Central") .addClass("global-footer__link") .attr("data-tracking-label", "community.community-central") .attr("aria-label", mw.message("global-footer-community-link-community-central")) .text(mw.message("global-footer-community-link-community-central")); var globalFooterCommunityLink2 = $("<a>") .attr("href", "https://fandom.zendesk.com") .addClass("global-footer__link") .attr("data-tracking-label", "community.support") .attr("aria-label", mw.message("global-footer-community-link-support")) .text(mw.message("global-footer-community-link-support")); var globalFooterCommunityLink3 = $("<a>") .attr("href", "https://community.fandom.com/wiki/Help:Contents") .addClass("global-footer__link") .attr("data-tracking-label", "community.help") .attr("aria-label", mw.message("global-footer-community-link-help")) .text(mw.message("global-footer-community-link-help")); //// Advertise Section var globalFooterAdvertiseSection = $(" ") .addClass("global-footer__section global-footer__section-advertise"); var globalFooterAdvertiseHeader = $(" ") .addClass("global-footer__section-header") .text(mw.message("global-footer-advertise-header")); var globalFooterAdvertiseList = $("") .addClass("global-footer__links"); var globalFooterAdvertiseLink1 = $("<a>") .attr("href", "https://about.fandom.com/mediakit") .addClass("global-footer__link") .attr("data-tracking-label", "advertise.media-kit") .attr("aria-label", mw.message("global-footer-advertise-link-media-kit")) .text(mw.message("global-footer-advertise-link-media-kit")); var globalFooterAdvertiseLink2 = $("<a>") .attr("href", "https://www.fandomatic.com") .addClass("global-footer__link") .attr("data-tracking-label", "advertise.fandomatic") .attr("aria-label", "Fandomatic") .text("Fandomatic"); // Since Fandom doesn't want other languages to have this link, might as well continue the parity, fucking Americans. if (mw.config.get("wgUserLanguage") == "en") { var globalFooterAdvertiseLink3 = $("<a>") .attr("href", "https://about.fandom.com/mediakit#contact") .addClass("global-footer__link") .attr("data-tracking-label", "advertise.contact") .attr("aria-label", mw.message("global-footer-company-overview-link-contact")) .text(mw.message("global-footer-company-overview-link-contact")); }   /// Division Group 4 (Fandom Apps) var globalFooterFandomAppsSection = $(" ") .addClass("global-footer__section global-footer__section-fandom-apps"); var globalFooterFandomAppsHeader = $(" ") .addClass("global-footer__section-header") .text(mw.message("global-footer-community-apps-header")); var globalFooterFandomAppsP = $(" ") .text(mw.message("global-footer-community-apps-description")); var globalFooterStoreAppsSection = $(" ") .addClass("global-footer__section global-footer__section-fandom-stores"); var globalFooterStoreAppsList = $("") .addClass("global-footer__links"); var globalFooterStoreAppsLink1 = $("<a>") .attr("href", "https://apps.apple.com/us/app/fandom-videos-news-reviews/id1230063803") .addClass("global-footer__link") .attr("data-tracking-label", "community-apps.app-store") .attr("aria-label", mw.message("global-footer-fandom-appstore-link-aria-label")); var globalFooterStoreAppsLink2 = $("<a>") .attr("href", "https://play.google.com/store/apps/details?id=com.fandom.app&referrer=utm_source%3Dwikia%26utm_medium%3Dglobalfooter") .addClass("global-footer__link") .attr("data-tracking-label", "community-apps.google-play") .attr("aria-label", mw.message("global-footer-fandom-googleplay-link-aria-label")); var globalFooterFandomLogoSvg = $('<svg class="global-footer__icon"><use xlink:href="#wds-brand-fandom-logo-store"> '); var globalFooterAppleStoreSvg = $('<svg class="global-footer__link-icon wds-icon wds-icon-small"><use xlink:href="#wds-brand-other-appstore"> '); var globalFooterGooglePlaySvg = $('<svg class="global-footer__link-icon wds-icon wds-icon-small"><use xlink:href="#wds-brand-other-googleplay"> '); // Time to build it! $(".main-container").append(footerClass); $(footerClass).append(footerContentDiv,footerBottomDiv); $(footerContentDiv).append($(" "),$(" "),$(" "),$(" ")); /// Division Group 1 (Logo // Explore) $("footer.global-footer .global-footer__content > div:nth-child(1)").append(globalFooterLogo,globalFooterExploreSection,globalFooterFollowUsSection); $(globalFooterLogo).append(globalFooterLogoA); $(globalFooterLogoA).append(globalFooterLogoSvg); //// Explore Section $(globalFooterExploreSection).append(globalFooterExploreHeader,globalFooterExploreList); $(globalFooterExploreList).append($("<li>"),$("<li>"),$("<li>"),$("<li>"),$("<li>")); $(".global-footer__section.global-footer__section-fandom-overview ul > li:nth-child(1)").append(globalFooterExploreLink1); $(".global-footer__section.global-footer__section-fandom-overview ul > li:nth-child(2)").append(globalFooterExploreLink2); $(".global-footer__section.global-footer__section-fandom-overview ul > li:nth-child(3)").append(globalFooterExploreLink3); $(".global-footer__section.global-footer__section-fandom-overview ul > li:nth-child(4)").append(globalFooterExploreLink4); $(".global-footer__section.global-footer__section-fandom-overview ul > li:nth-child(5)").append(globalFooterExploreLink5); //// Follow Us Section $(globalFooterFollowUsSection).append(globalFooterFollowUsHeader,globalFooterFollowUsList); $(globalFooterFollowUsList).append($("<li>"),$("<li>"),$("<li>"),$("<li>"),$("<li>")); $(".global-footer__section.global-footer__section-social-links ul > li:nth-child(1)").append(globalFooterFollowUsFacebook); $(globalFooterFollowUsFacebook).append(globalFooterIconFacebook); $(".global-footer__section.global-footer__section-social-links ul > li:nth-child(2)").append(globalFooterFollowUsTwitter); $(globalFooterFollowUsTwitter).append(globalFooterIconTwitter); $(".global-footer__section.global-footer__section-social-links ul > li:nth-child(3)").append(globalFooterFollowUsYouTube); $(globalFooterFollowUsYouTube).append(globalFooterIconYouTube); $(".global-footer__section.global-footer__section-social-links ul > li:nth-child(4)").append(globalFooterFollowUsInstagram); $(globalFooterFollowUsInstagram).append(globalFooterIconInstagram); $(".global-footer__section.global-footer__section-social-links ul > li:nth-child(5)").append(globalFooterFollowUsLinkedIn); $(globalFooterFollowUsLinkedIn).append(globalFooterIconLinkedIn); /// Division Group 2 (Overview) $("footer.global-footer .global-footer__content > div:nth-child(2)").append(globalFooterOverviewSection); $(globalFooterOverviewSection).append(globalFooterOverviewHeader,globalFooterOverviewList); $(globalFooterOverviewList).append($("<li>"),$("<li>"),$("<li>"),$("<li>"),$("<li>"),$("<li>"),$("<li>"),$("<li>"),$("<li>")); $(".global-footer__section.global-footer__section-site-overview ul > li:nth-child(1)").append(globalFooterSiteOverviewLink1); $(".global-footer__section.global-footer__section-site-overview ul > li:nth-child(2)").append(globalFooterSiteOverviewLink2); $(".global-footer__section.global-footer__section-site-overview ul > li:nth-child(3)").append(globalFooterSiteOverviewLink3); $(".global-footer__section.global-footer__section-site-overview ul > li:nth-child(4)").append(globalFooterSiteOverviewLink4); $(".global-footer__section.global-footer__section-site-overview ul > li:nth-child(5)").append(globalFooterSiteOverviewLink5); $(".global-footer__section.global-footer__section-site-overview ul > li:nth-child(6)").append(globalFooterSiteOverviewLink6); $(".global-footer__section.global-footer__section-site-overview ul > li:nth-child(7)").append(globalFooterSiteOverviewLink7); $(".global-footer__section.global-footer__section-site-overview ul > li:nth-child(8)").append(globalFooterSiteOverviewLink8); $(".global-footer__section.global-footer__section-site-overview ul > li:nth-child(9)").append(globalFooterSiteOverviewLink9); /// Division Group 3 (Community // Advertise) $("footer.global-footer .global-footer__content > div:nth-child(3)").append(globalFooterCommunitySection,globalFooterAdvertiseSection); //// Community Section $(globalFooterCommunitySection).append(globalFooterCommunityHeader,globalFooterCommunityList); $(globalFooterCommunityList).append($("<li>"),$("<li>"),$("<li>")); $(".global-footer__section.global-footer__section-community ul > li:nth-child(1)").append(globalFooterCommunityLink1); $(".global-footer__section.global-footer__section-community ul > li:nth-child(2)").append(globalFooterCommunityLink2); $(".global-footer__section.global-footer__section-community ul > li:nth-child(3)").append(globalFooterCommunityLink3); //// Advertise Section $(globalFooterAdvertiseSection).append(globalFooterAdvertiseHeader,globalFooterAdvertiseList); $(globalFooterAdvertiseList).append($("<li>"),$("<li>"),$("<li>")); $(".global-footer__section.global-footer__section-advertise ul > li:nth-child(1)").append(globalFooterAdvertiseLink1); $(".global-footer__section.global-footer__section-advertise ul > li:nth-child(2)").append(globalFooterAdvertiseLink2); if (mw.config.get("wgUserLanguage") == "en") { $(".global-footer__section.global-footer__section-advertise ul > li:nth-child(3)").append(globalFooterAdvertiseLink3); }   /// Division Group 4 (Fandom Apps) $("footer.global-footer .global-footer__content > div:nth-child(4)").append(globalFooterFandomAppsSection,globalFooterStoreAppsSection); $(globalFooterFandomAppsSection).append(globalFooterFandomAppsHeader,globalFooterFandomAppsP); $(globalFooterStoreAppsSection).append(globalFooterFandomLogoSvg,globalFooterStoreAppsList); $(globalFooterStoreAppsList).append($("<li>"),$("<li>")); $(".global-footer__section.global-footer__section-fandom-stores ul > li:nth-child(1)").append(globalFooterStoreAppsLink1); $(globalFooterStoreAppsLink1).append(globalFooterAppleStoreSvg); $(".global-footer__section.global-footer__section-fandom-stores ul > li:nth-child(2)").append(globalFooterStoreAppsLink2); $(globalFooterStoreAppsLink2).append(globalFooterGooglePlaySvg); $(footerBottomDiv).append(footerBottomCommunityDiv); });

// GamepediaTheme.js, by Sophiedp, Arashiryuu0 and Aeywoo mw.loader.using(["mediawiki.api"]).then(function {   // Every Wiki is a Gamepedia Wiki!    //var gamepediaClass = $(document.body).addClass("is-gamepedia");    // Checks if the wiki is a Gamepedia Wiki    if ($(document.body).hasClass("is-gamepedia") !== true) {        return;    }    // Prevents double loading    if ($(document.body).hasClass("gamepedia-footer")) {        return;    }    var footerClass = $(document.body).addClass("gamepedia-footer");    // -- Internationalization Function -- //    function init(i18n) {        // Since the footer doesn't exist in edit or submit mode, return        //if ($(document.body).hasClass("action-edit") || $(document.body).hasClass("action-submit")) {            /// "Fandom.com" to "Gamepedia.com"            //$(".is-gamepedia .global-navigation__logo")                //.attr("href", "https://www.gamepedia.com/")                //.attr("title", (footer_link_gamepedia)) //.attr("aria-label", (footer_link_gamepedia)); //return; //}       var footer_link_curse           = i18n.msg("footer-link-curse").plain; var footer_link_gamepedia      = i18n.msg("footer-link-gamepedia").plain; var footer_link_wikiconnect    = i18n.msg("footer-link-wikiconnect").plain; var footer_gpwikis_header      = i18n.msg("footer-gpwikis-header").plain; //var footer_gpwikis_feedthebeast = i18n.msg("footer-gpwikis-ftb").plain; var footer_gpwikis_feedthebeast = "Feed the Beast Wiki"; //var footer_gpwikis_hearthstone = i18n.msg("footer-gpwikis-hearthstone").plain; var footer_gpwikis_hearthstone = "Hearthstone Wiki"; //var footer_gpwikis_nomanssky   = i18n.msg("footer-gpwikis-nms").plain; var footer_gpwikis_nomanssky   = "No Man's Sky Wiki"; var footer_gpwikis_minecraft   = i18n.msg("footer-gpwikis-minecraft").plain; //var footer_gpwikis_wowpedia    = i18n.msg("footer-gpwikis-wow").plain; var footer_gpwikis_wowpedia    = "Wowpedia"; var footer_gpwikis_terraria    = i18n.msg("footer-gpwikis-terraria").plain; //var footer_gpwikis_smite       = i18n.msg("footer-gpwikis-smite").plain; var footer_gpwikis_smite       = "Smite Wiki"; var footer_gpwikis_zelda       = i18n.msg("footer-gpwikis-zelda").plain; //var footer_gpwikis_dota        = i18n.msg("footer-gpwikis-dota").plain; var footer_gpwikis_dota        = "Dota 2 Wiki"; var footer_curse_apps_header   = i18n.msg("footer-curse-apps-header").plain; var footer_curse_apps_desc     = i18n.msg("footer-curse-apps-desc").plain; var footer_bottom_bar = i18n.msg("footer-bottom-bar", mw.config.get("wgSiteName")).plain; var special_search_title       = i18n.msg("special-search-title").plain; // -- Global Navigation Icons/Logos -- // /// "Fandom.com" to "Gamepedia.com" $(".is-gamepedia .global-navigation__logo") .attr("href", "https://www.gamepedia.com/") .attr("title", (footer_link_gamepedia)) .attr("aria-label", (footer_link_gamepedia)); /// "Fandom.com" to "Curse.com" $(".is-gamepedia h2.global-footer__header a") .attr("href", "https://web.archive.org/web/20190617171825/https://www.curse.com/") //.attr("href", "https://www.curse.com/") .attr("title", (footer_link_curse)) .attr("aria-label", (footer_link_curse)); // -- Explore Properties Section -- // $('.is-gamepedia .global-footer__link[data-tracking-label="explore.fandom"]') .attr("href", "https://www.gamepedia.com/") .attr("data-tracking-label", "explore.gamepedia") .attr("aria-label", (footer_link_gamepedia)) .text(footer_link_gamepedia); // -- Gamepedia Wikis Division -- // var gpWikisDiv = $(" "); var gpWikisSection = $(" ") .addClass("global-footer__section global-footer__section-gamepedia-wikis"); var gpWikisHeader = $(" ") .addClass("global-footer__section-header") .text(footer_gpwikis_header); var gpWikisList = $("") .addClass("global-footer__links"); $(".is-gamepedia .global-footer__content > div:nth-child(3)").after(gpWikisDiv); /// Wikis var gpWikiFeedTheBeast = $("<a>") .attr("href", "https://ftb.gamepedia.com/wiki/FTB_Wiki") .addClass("global-footer__link") .attr("data-tracking-label", "gamepedia-wikis.ftb") .attr("aria-label", (footer_gpwikis_feedthebeast)) .text(footer_gpwikis_feedthebeast); var gpWikiNoMansSky = $("<a>") .attr("href", "https://nomanssky.gamepedia.com/wiki/No_Man%27s_Sky_Wiki") .addClass("global-footer__link") .attr("data-tracking-label", "gamepedia-wikis.nms") .attr("aria-label", (footer_gpwikis_nomanssky)) .text(footer_gpwikis_nomanssky); var gpWikiHearthstone = $("<a>") .attr("href", "https://hearthstone.gamepedia.com/wiki/Hearthstone_Wiki") .addClass("global-footer__link") .attr("data-tracking-label", "gamepedia-wikis.hearthstone") .attr("aria-label", (footer_gpwikis_hearthstone)) .text(footer_gpwikis_hearthstone); var gpWikiMinecraft = $("<a>") .attr("href", "https://minecraft.gamepedia.com/wiki/Minecraft_Wiki") .addClass("global-footer__link") .attr("data-tracking-label", "gamepedia-wikis.minecraft") .attr("aria-label", (footer_gpwikis_minecraft)) .text(footer_gpwikis_minecraft); var gpWikiTerraria = $("<a>") .attr("href", "https://terraria.gamepedia.com/wiki/Terraria_Wiki") .addClass("global-footer__link") .attr("data-tracking-label", "gamepedia-wikis.terraria") .attr("aria-label", (footer_gpwikis_terraria)) .text(footer_gpwikis_terraria); var gpWikiDota = $("<a>") .attr("href", "https://dota2.gamepedia.com/wiki/Dota_2_Wiki") .addClass("global-footer__link") .attr("data-tracking-label", "gamepedia-wikis.dota") .attr("aria-label", (footer_gpwikis_dota)) .text(footer_gpwikis_dota); var gpWikiSmite = $("<a>") .attr("href", "https://smite.gamepedia.com/wiki/Smite_Wiki") .addClass("global-footer__link") .attr("data-tracking-label", "gamepedia-wikis.smite") .attr("aria-label", (footer_gpwikis_smite)) .text(footer_gpwikis_smite); var gpWikiWowpedia = $("<a>") .attr("href", "https://wow.gamepedia.com/wiki/Wowpedia") .addClass("global-footer__link") .attr("data-tracking-label", "gamepedia-wikis.wowpedia") .attr("aria-label", (footer_gpwikis_wowpedia)) .text(footer_gpwikis_wowpedia); var gpWikiZelda = $("<a>") .attr("href", "https://zelda.gamepedia.com/wiki/Main_Page") .addClass("global-footer__link") .attr("data-tracking-label", "gamepedia-wikis.zelda") .attr("aria-label", (footer_gpwikis_zelda)) .text(footer_gpwikis_zelda); /// Bob the Builder, Can we fix it? $(gpWikisDiv).append(gpWikisSection); $(gpWikisSection).append(gpWikisHeader,gpWikisList); $(gpWikisList).append($("<li>"),$("<li>"),$("<li>"),$("<li>"),$("<li>"),$("<li>"),$("<li>"),$("<li>"),$("<li>")); $(".is-gamepedia section.global-footer__section.global-footer__section-gamepedia-wikis > ul > li:nth-child(1)").append(gpWikiZelda); $(".is-gamepedia section.global-footer__section.global-footer__section-gamepedia-wikis > ul > li:nth-child(2)").append(gpWikiWowpedia); $(".is-gamepedia section.global-footer__section.global-footer__section-gamepedia-wikis > ul > li:nth-child(3)").append(gpWikiSmite); $(".is-gamepedia section.global-footer__section.global-footer__section-gamepedia-wikis > ul > li:nth-child(4)").append(gpWikiDota); $(".is-gamepedia section.global-footer__section.global-footer__section-gamepedia-wikis > ul > li:nth-child(5)").append(gpWikiTerraria); $(".is-gamepedia section.global-footer__section.global-footer__section-gamepedia-wikis > ul > li:nth-child(6)").append(gpWikiMinecraft); $(".is-gamepedia section.global-footer__section.global-footer__section-gamepedia-wikis > ul > li:nth-child(7)").append(gpWikiHearthstone); $(".is-gamepedia section.global-footer__section.global-footer__section-gamepedia-wikis > ul > li:nth-child(8)").append(gpWikiNoMansSky); $(".is-gamepedia section.global-footer__section.global-footer__section-gamepedia-wikis > ul > li:nth-child(9)").append(gpWikiFeedTheBeast); // -- Gamepedia Wikis Section -- // //$(".is-gamepedia section.global-footer__section.global-footer__section-advertise").remove; //var gpWikisSection = $(" ") //   .addClass("global-footer__section") //   .addClass("global-footer__section-gamepedia-wikis"); //var gpWikisHeader = $(" ") //   .addClass("global-footer__section-header") //   .text(footer_gpwikis_header); //var gpWikisList = $("") //   .addClass("global-footer__links"); //var gpWikisListItem1 = $("<a>") //   .attr("href","https://minecraft.fandom.com/wiki/Minecraft_Wiki") //   .addClass("global-footer__link") //   .attr("data-tracking-label","gampedia-wikis.minecraft") //   .attr("aria-label", (footer_gpwikis_minecraft)) //   .text(footer_gpwikis_minecraft); //var gpWikisListItem2 = $("<a>") //   .attr("href","https://terraria.fandom.com/wiki/Terraria Wiki") //   .addClass("global-footer__link") //   .attr("data-tracking-label","gampedia-wikis.terraria") //   .attr("aria-label", (footer_gpwikis_terraria)) //   .text(footer_gpwikis_terraria); //var gpWikisListItem3 = $("<a>") //   .attr("href","https://zelda.fandom.com/wiki/Main_Page") //   .addClass("global-footer__link") //   .attr("data-tracking-label","gampedia-wikis.zelda") //   .attr("aria-label", (footer_gpwikis_zelda)) //   .text(footer_gpwikis_zelda); //var footerThirdDiv = document.querySelector(".is-gamepedia footer.global-footer .global-footer__content div:nth-child(3)"); //$(footerThirdDiv).append(gpWikisSection); //$(gpWikisSection).append(gpWikisHeader,gpWikisList); //$(gpWikisList).append($("<li>"),$("<li>"),$("<li>")); //$(".is-gamepedia section.global-footer__section.global-footer__section-gamepedia-wikis > ul > li:nth-child(1)").append(gpWikisListItem1); //$(".is-gamepedia section.global-footer__section.global-footer__section-gamepedia-wikis > ul > li:nth-child(2)").append(gpWikisListItem2); //$(".is-gamepedia section.global-footer__section.global-footer__section-gamepedia-wikis > ul > li:nth-child(3)").append(gpWikisListItem3); // -- Fandom Apps (Curse Apps) Section -- // var gpFooter = document.querySelector(".is-gamepedia .global-footer__section-fandom-apps h3"); if (gpFooter) { gpFooter.textContent = (footer_curse_apps_header); gpFooter.nextSibling.nodeValue = (footer_curse_apps_desc); }       // -- Global Footer Bottom Bar -- // $(".is-gamepedia .global-footer__bottom > div:first-child").text(footer_bottom_bar); // -- Community Section -- // $('.is-gamepedia .global-footer__link[data-tracking-label="community.community-central"]') .attr("href", "https://web.archive.org/web/20210803141801/https://www.gamepedia.com/wikiconnect") .attr("data-tracking-label", "community.wikiconnect") .attr("aria-label", (footer_link_wikiconnect)) .text(footer_link_wikiconnect); $('.is-gamepedia .global-footer__link[data-tracking-label="community.help"]') .attr("href", "https://help.fandom.com/wiki/Gamepedia_Help_Wiki"); var title_special_search = document.querySelector(".rootpage-Special_Search.is-gamepedia .page-header__title-wrapper h1.page-header__title"); if (title_special_search) { // -- Special:Search -- // $(".rootpage-Special_Search.is-gamepedia .page-header__title-wrapper h1.page-header__title").text(special_search_title); }       var title_special_search_community = document.querySelector(".rootpage-Special_SearchCommunity.is-gamepedia .page-header__title-wrapper h1.page-header__title"); if (title_special_search_community) { // -- Special:SearchCommunity -- // $(".rootpage-Special_SearchCommunity.is-gamepedia .page-header__title-wrapper h1.page-header__title").text(special_search_title); }   }    // -- Overview Section -- // /// "Fandom.com/about" to "Gamepedia.com/about" $('.is-gamepedia .global-footer__link[data-tracking-label="company-overview.about"]') .attr("href", "https://www.gamepedia.com/about"); /// "Fandom.com/about#contact" to "Help.fandom.com/wiki/How_to_contact_Gamepedia" $('.is-gamepedia .global-footer__link[data-tracking-label="company-overview.contact"]') .attr("href", "https://help.fandom.com/wiki/How_to_contact_Gamepedia"); /// Remove "What is Fandom?" $('.is-gamepedia .global-footer__link[data-tracking-label="company-overview.what-is-fandom"]') .remove; // -- Fandom Apps Section -- // /// Duplication of the "Fandom Apps" section var curseforge_app_section = $(" ") .addClass("global-footer__section") .addClass("global-footer__section-curseforge-stores"); var curseforge_app_svg = $('<svg class="global-footer__icon"><use xlink:href="#wds-brand-fandom-logo-store"> '); var curseforge_app_store = $("") .addClass("global-footer__links"); var curseforge_app_store_apple = $('<li><a href="https://download.curseforge.com/" class="global-footer__link" data-tracking-label="community-apps.windows-app" aria-label="CurseForge\'s Windows App"><img class="global-footer__link-icon" src="https://static.wikia.nocookie.net/central/images/4/48/Aeywoo_-_Get_It_On_Badge_Windows.png" alt="Get It On Windows"> </a></li>'); var curseforge_app_store_google = $('<li><a href="https://download.curseforge.com/" class="global-footer__link" data-tracking-label="community-apps.macos-app" aria-label="CurseForge\'s MacOS App"><img class="global-footer__link-icon" src="https://static.wikia.nocookie.net/central/images/b/b3/Aeywoo_-_Get_It_On_Badge_MacOS.png" alt="Get It On MacOS"> </a></li>'); // Extra defining for unnamed divisions var global_footer_content = document.querySelector(".is-gamepedia .global-footer .global-footer__content"); if (global_footer_content) { $(global_footer_content).children.last.append(curseforge_app_section); $(curseforge_app_section).append(curseforge_app_svg, curseforge_app_store); $(curseforge_app_store).append(curseforge_app_store_apple, curseforge_app_store_google); }   // -- Internationalization -- // mw.hook("dev.i18n").add(function(i18n) {       i18n.loadMessages("GamepediaTheme").done(init);    }); importArticles({       type: "script",        article: "u:dev:MediaWiki:I18n-js/code.js"    }); });

mw.loader.using("mediawiki.util").then(function {	// Modern2010Editor Talk Page Fix	if (window.location.search.search("section=new") !== -1) {		$("#wpSummaryLabel").detach.prependTo(".editOptions");	}	// 1. AjaxRC configuration options	window.ajaxRefresh = 30000;	// 2. ShowWROnToolbar configuration options	window.ShowWROnToolbarDisableCache = true;	// 3. MultiUpload configuration options	window.MultiUploadoption = {		max: 160,		defaultlicense: "Fairuse",		//defaultlicense: "From Wikimedia",	};	// 4. CustomizeAce configuration options	window.aceCustomSettings = {		wrap: true,		theme: "tomorrow_night",		tabSize: 4,		showInvisibles: false	};	// 5. AutoCreateUserPages configuration options	window.AutoCreateUserPagesConfig = {		content: {			2: "",			3: "",			1202: false		},		summary: "Creating my user page."	};	// 6. AnnouncementsIgnore configuration options	window.announcementsIgnore = { option: "opt-out-all", exceptWikiIds: [ 177, // Community Wiki 7931, // Dev Wiki 10513, // Templates Wiki 751296, // Steam Trading Cards Wiki 922669, // Unturned Bunker Wiki 1752064, // Control Wiki 1995962, // Quantum Science Wiki (Roblox) 2293798, // Feed the Beast Wiki 2294162, // Gamepedia Help Wiki 2294461, // Minecraft Wiki 2295198, // Terra Nil Wiki 2743058, // PowerWash Simulator Wiki 2873388, // Don't Escape Wiki 2897673, // The Nuclear Blaze Wiki 2935621, // The Darkside Detective Wiki 3019914 // DOORS Wiki (Roblox) ]	};	// 7. CustomTools configuration options window.CustomTools = [ {			link: "Special:AllPages?namespace=8", placement: "my-tools", position: 0, text: "MediaWiki Pages" },		{			link: "Special:AllPages?namespace=10", placement: "my-tools", position: 1, text: "All Templates" },		{			link: "Special:AllPages?namespace=14", placement: "my-tools", position: 2, text: "All Categories" },		{			link: "https://www.w3schools.com/colors/colors_picker.asp", placement: "page-tools-right", position: 3, text: "Colour Picker" }	];	// 8. GlobalNavButtons configuration options window.globalNavButtons = [{ text: "Wikis", url: "", icon: '<svg class="wds-icon"><use xlink:href="#wds-verticals-wikis"> ', 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: '<svg class="wds-icon"><use xlink:href="#wds-verticals-games"> ', isMain: true, shortName: "gw" }, {			text: "FTB Wiki", url: "https://ftb.fandom.com/wiki/", whoIsMain: "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: "The Witness Wiki", url: "https://thewitness.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 class="wds-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: "Global CSS", url: "https://community.fandom.com/wiki/User:Aeywoo/global.css", whoIsMain: "gbl" }, {			text: "Global JS", url: "https://community.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: "Common JS", url: mw.util.getUrl("MediaWiki:Common.js"), whoIsMain: "cj" }, {			text: "Common CSS", url: mw.util.getUrl("MediaWiki:Common.css"), whoIsMain: "cj" }, {			text: "Personal JS", url: mw.util.getUrl("User:Aeywoo/common.js"), whoIsMain: "cj" }, {			text: "Personal CSS", url: mw.util.getUrl("User:Aeywoo/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"><use xlink:href="#wds-verticals-movies"> ', 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.w3schools.com/colors/colors_picker.asp", whoIsMain: "xtrs" }, {			text: "W3Schools", url: "https://www.w3schools.com/", whoIsMain: "xtrs" }, {			text: "Autoprefixer CSS", url: "https://autoprefixer.github.io/", whoIsMain: "xtrs" }, {			text: "String Functions", url: "https://www.mediawiki.org/wiki/Extension:StringFunctions", whoIsMain: "xtrs" }, {			text: "Conditional expressions", url: "https://en.wikipedia.org/wiki/Help:Conditional_expressions", 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: "BryghtShadow", url: mw.util.getUrl("User:BryghtShadow"), 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"		}); }	if (mw.config.get("wgWikiID") == "steamtradingcards") { window.globalNavButtons.push({			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"		}); }	if (mw.config.get("wgWikiID") == "ftb_gamepedia") { window.globalNavButtons.push({			text: "FTB",			url: "",			icon: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" class="wds-icon"><path d="M3.499 3.043c-.641.108-1.104.355-1.603.853-.4.4-.6.717-.771 1.217l-.105.307-.011 5.02c-.01 4.426-.004 5.057.051 5.33.076.375.221.728.433 1.05.184.279 3.161 3.29 3.527 3.567.287.218.582.371.96.498l.28.095 5.58.011c6.13.013 5.891.021 6.483-.227.503-.211.701-.382 2.38-2.061 1.679-1.679 1.85-1.877 2.061-2.38.247-.589.24-.412.227-5.903l-.011-5-.105-.307c-.171-.5-.371-.817-.771-1.217-.41-.41-.741-.616-1.243-.775l-.321-.101-8.42-.006c-4.631-.003-8.511.01-8.621.029m16.917 2.054c.199.099.388.288.487.487.075.152.077.289.077 5.016 0 4.658-.003 4.866-.074 5-.103.193-3.043 3.14-3.266 3.273l-.18.107H12c-5.232 0-5.466-.003-5.6-.074-.192-.101-3.184-3.087-3.293-3.286l-.087-.16-.011-4.76c-.008-3.276.001-4.814.031-4.933a1.02 1.02 0 0 1 .686-.721c.085-.025 3.13-.037 8.334-.033 8.023.007 8.203.009 8.356.084M7.48 7.657c-.425.119-.596.248-1.449 1.096-.55.546-.857.881-.91.995a.809.809 0 0 0-.002.682c.095.211.408.527.621.629.203.097.516.099.7.004.077-.04.459-.389.85-.776l.709-.703.731.723c.672.666.748.729.96.795.219.069.24.069.448.004.425-.134.829-.623.829-1.004 0-.346-.114-.505-.959-1.342-.833-.824-1.057-.992-1.466-1.098-.282-.073-.808-.075-1.062-.005m8 0c-.425.119-.596.248-1.449 1.096-.55.546-.857.881-.91.995a.809.809 0 0 0-.002.682c.095.211.408.527.621.629.203.097.516.099.7.004.077-.04.459-.389.85-.776l.709-.703.731.723c.672.666.748.729.96.795.219.069.24.069.448.004.425-.134.829-.623.829-1.004 0-.346-.114-.505-.959-1.342-.833-.824-1.057-.992-1.466-1.098-.282-.073-.808-.075-1.062-.005m-6.866 6.4a.814.814 0 0 0-.505.396c-.074.139-.089.231-.089.547 0 .331.013.403.1.558.11.197.294.34.515.401.197.055 6.533.055 6.73 0a.842.842 0 0 0 .515-.401c.087-.156.1-.226.099-.558-.001-.433-.081-.645-.301-.801-.28-.2-.267-.199-3.694-.196-2.512.002-3.24.014-3.37.054"> ', isMain: true, shortName: "ftb" }, {			text: "Sheet List", url: mw.util.getUrl("Special:SheetList"), whoIsMain: "ftb" }, {			text: "Tile List", url: mw.util.getUrl("Special:TileList"), whoIsMain: "ftb" }, {			text: "Tile Translator", url: mw.util.getUrl("Special:TileTranslator"), whoIsMain: "ftb" }, {			text: "View Tile", url: mw.util.getUrl("Special:ViewTile"), whoIsMain: "ftb" }, {			text: "What Uses This Tile?", url: mw.util.getUrl("Special:WhatUsesThisTile"), whoIsMain: "ftb" });	}	if (/bot/.test(mw.config.get("wgUserGroups").join)) {		if (mw.config.get("wgWikiID") == "ftb_gamepedia") {			window.globalNavButtons.push({ text: "CreateTileSheet", url: mw.util.getUrl("Special:CreateTileSheet"), whoIsMain: "ftb" }, {				text: "Sheet Manager", url: mw.util.getUrl("Special:SheetManager"), whoIsMain: "ftb" }, {				text: "Tile Manager", url: mw.util.getUrl("Special:TileManager"), whoIsMain: "ftb" });		}	}	//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:KockaAdmiralac/LinkModifications.js", "kocka");	//importScriptPage("User:Aeywoo/VanguardTools.js", "darkside-detective");	importArticles({ type: "script", articles: [ /* Enabled */ "u:dev:MediaWiki:Sofix.js", "u:dev:MediaWiki:AjaxRC.js", "u:dev:MediaWiki:Stella.js", "u:dev:MediaWiki:CustomTools.js", "u:dev:MediaWiki:PreviewRail.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:MassRename/code.js", "u:dev:MediaWiki:ReadProgressBar.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:SearchSuggest/code.js", "u:dev:MediaWiki:AnnouncementsIgnore.js", "u:dev:MediaWiki:AutoCreateUserPages.js", "u:dev:MediaWiki:MisspelledPage/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: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:SyntaxHighlight.js", "u:dev:MediaWiki:QuickTitle/code.js", "u:dev:MediaWiki:UploadMultipleFiles.js", "u:dev:MediaWiki:AnchoredRollback/code.js"*/ ]	}); });