User:0Michael105/global.js

/* Any scripts saved here will save sitewide. */ /* IMPORTANT: Too much imported JavaScript may result in increased load time. Import with caution.

// 0 = not compatible with UCP // 1 = compatible with UCP

/*1*/ /* AutoCreateUserPages configuration */ window.AutoCreateUserPagesConfig = { content: { 2: ,       3: ,        1202: ''    },    summary: 'Automatically created page' };

/*1*/ /* Fix Popular Pages thumbnails on UCP (TotallyNotJullian) */ if (mw.config.get("wgUCPMigrationDone")) { var Pages = $(".premium-recirculation-rail")[0].getElementsByClassName("thumbnails")[0].children; for (var i = 0; i < Pages.length; i++) { var Inner = Pages[i].children[0]; if (Inner.getAttribute("data-tracking") === "rail") { var Image = Inner.getElementsByTagName("img")[0]; var Name = Inner.getElementsByTagName("p")[0]; (function {               var Name1 = Name;                var Image1 = Image;                var Url = new URL("https://%s/api.php".replace("%s", mw.Uri.host));                Url.search = (new URLSearchParams({                    action: "parse",                    page: Name1.innerHTML.replace(" ", "_"),                    format: "json"                })).toString;                $.ajax({ async: true, type: "GET", url: Url.href, format: "json" }).done(function(data) { var HTML = document.createElement("html"); HTML.innerHTML = data.parse.text["*"]; var Images = HTML.getElementsByTagName("img"); var Change = false; for (var a = 0; a < Images.length; a++) { if (!Images[a].src.startsWith("data")) { Image1.src = Images[a].src; Change = true; break; }                   }                    if (!Change) { Image1.src = "https://t6.rbxcdn.com/70608418c648be7ac4e323e3294bb059"; }               });            });        }    } }

/*1*/ /* GlobalNavButtons configuration */ window.globalNavButtons = [ {   text: 'Wikis', url: '', isMain: true, whoIsMain: false, shortName: 'w' }, {   text: 'Roblox Wikia', url: 'https://roblox.fandom.com', isMain: false, whoIsMain: 'w', shortName: 'RW' }, {    text: 'Case Clicker Wiki', url: 'https://case-clicker-roblox.fandom.com', isMain: false, whoIsMain: 'w', shortName: 'CCRW' }, {    text: 'Royale High', url: 'https://royale-high.fandom.com', isMain: false, whoIsMain: 'w', shortName: 'RHW' }, {    text: 'World Expedition Wiki', url: 'https://world-expedition.fandom.com', isMain: false, whoIsMain: 'w', shortName: 'WEW' }, {    text: 'Community Central', url: 'https://community.fandom.com', isMain: false, whoIsMain: 'w', shortName: 'CC' } ];

/*1*/ /* NoImageLightbox configuration */ window.NoImageLightbox = { novideo: true }; /*1*/ /* No user page redlinks (joritochip) */ mw.hook("wikipage.content").add(function($content) {   var links = $('#mw-content-text a.new');    links.each(function(index, element){ if (!$(element).attr('href')) { var title = $(element).attr('title'); if (title.startsWith('User:') && title.endsWith('(page does not exist)')) { title = title.slice(0, -22); var decodedURL = mw.util.getUrl(title); $(element).removeAttr('data-uncrawlable-url'); $(element).attr('href', decodedURL); }       }    }); });

/*1*/ /* QuickCreateUserPage configuration */ window.qtUserPageTemplate = '';

/* Import JavaScript: UCP */ importArticles({   type: 'script',    articles: [ /*1*/   'u:dev:MediaWiki:AjaxBatchDelete.js', /*1*/   'u:dev:MediaWiki:AjaxDelete/code.js', /*1*/   'u:dev:MediaWiki:AjaxUndo/code.js', /*1*/   'u:dev:MediaWiki:AnchoredRollback/code.js', /*1*/   'u:dev:MediaWiki:AutoCreateUserPages.js', /*1*/   'u:dev:MediaWiki:ContribsLink/code.js', /*1*/   'u:dev:MediaWiki:DisableAccessKeys.js', /*1*/   'u:dev:MediaWiki:DisableInfoboxBuilder.js', /*1*/   'u:dev:MediaWiki:GlobalNavButtons.js', /*1*/   'u:dev:MediaWiki:LastEdited/code.js', /*1*/   'u:dev:MediaWiki:MassBlock/code.js', /*1*/   'u:dev:MediaWiki:MassEdit/code.js', /*1*/   'u:dev:MediaWiki:MassProtect/code.js', /*1*/   'u:dev:MediaWiki:MarkBlocked.js', /*1*/   'u:dev:MediaWiki:MarkForDeletion/code.js', /*1*/   'u:dev:MediaWiki:NoImageLightbox/code.js', /*1*/   'u:dev:MediaWiki:Nuke/code.js', /*1*/   'u:dev:MediaWiki:QuickCreateUserPage/code.js', /*1*/  'u:dev:MediaWiki:RedirectManagement/code.js', /*1*/  'u:dev:MediaWiki:Rollback/code.js', /*1*/  'u:dev:MediaWiki:Status/code.js', /*1*/  'u:dev:MediaWiki:SOAPReport.js', /*1*/  'u:dev:MediaWiki:WHAM/code.2.js', /*1*/  'u:dev:MediaWiki:WikiActivity.js' ] });

/*0*/ /* AjaxCommentDelete configuration */ window.AjaxCommentDeleteConfig = { fastDelete: "Cleanup" };

/*0*/ /* AnnouncementsIgnore configuration Ignore all announcements unless wiki listed in exceptWikiIds */ window.announcementsIgnore = { option: 'opt-out-all', exceptWikiIds: [ 177,    /* Community Central (community) */ 4396,   /* Roblox Wikia (roblox) */ 7931,   /* Fandom Developers Wiki (dev) */ // 1412889, /* Stop It Slender 2 Wiki (stop-it-slender-2) */ 1668557, /* Royale High Wiki (royale-high) */ 1851384, /* Case Clicker Roblox Wiki (case-clicker-roblox) */ 2162303 /* World Expedition Wiki (world-expedition) */ ] };

/* Import JavaScript: Legacy */ importArticles({   type: 'script',    articles: [ /*0*/   'u:dev:MediaWiki:AnalyticsShortcut.js', /*0*/   'u:dev:MediaWiki:AnnouncementsIgnore.js', /*0*/   'u:dev:MediaWiki:CategoryRenameAuto-update/code.js', /*0*/   'u:dev:MediaWiki:CommentPreview/code.js', /*0*/   'u:dev:MediaWiki:EditConflictAlert/code.js', /*0*/   'u:dev:MediaWiki:FileLogs.js', /*0*/   'u:dev:MediaWiki:GlobalEditcount/code.js', /*0*/   'u:dev:MediaWiki:JWB/load.js', /*0*/   'u:dev:MediaWiki:MassCategorization/code.js', /*0*/   'u:dev:MediaWiki:RevealAnonIP/usercode.js', /*0*/   'u:dev:MediaWiki:TopicBlockLog/code.js', /*0*/   'u:dev:MediaWiki:ViewRemoved/code.js', /*0*/   'u:dev:MediaWiki:WallGreetingButton/code.js' /*0*/    ] });