MediaWiki:CentralRCM.js

/* Roblox Wikis Recent Changes log */ /* this was probably a bad idea */

(function($, mw) {   var config = mw.config.get([ "wgCanonicalNamespace", "wgTitle", "wgSitename", "wgUserGroups" ]);   /* Show Special:CentralRecentChanges only to autoconfirmed users */    if (config.wgUserGroups.includes("autoconfirmed") && config.wgCanonicalNamespace == "Special" && config.wgTitle == "CentralRecentChanges")   {        document.title = "Interwiki Recent Changes | " + config.wgSitename;        $("#PageHeader h1").text("Recent changes – Roblox wikis");        var $content = $("#mw-content-text").empty;        var $div = $(" ").appendTo($content).addClass("rc-content-multiple");        var $wikis = $("").appendTo($div);        /* Use wikis inducted into the Roblox wikis footer */        $.get(mw.util.wikiScript('load'), { mode: 'articles', articles: 'u:c:template:RobloxWikis', only: 'styles' }, function(data) { data += "[[w:c:roblox|"; // Roblox Wikia is included on footer slightly differently           var subdomain = /\[\[w:c:([^|]+?)\|/gi, m;            while (m = subdomain.exec(data))                $("")                    .appendTo($wikis)                    .text(m[1] + ".wikia.com"); // .text sanitization        });        /* Use fewfre's RecentChangesMultiple */        importArticles({ articles:["u:dev:RecentChangesMultiple/code.2.js"], type:"script" });    } })(jQuery, mediaWiki);