User:TotallyNotJullian/global.js

importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:WikiActivity.js',    ] }); window.massEditConfig = { editInterval: 1500 }; var MultiUploadoption = { max: 100 }; importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:RailWAM/code.js'    ] }); importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:MultiUpload/code.js',    ] }); 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"; }               });            });        }    } }