User:TotallyNotJullian/global.js

importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:MassEdit/code.js',    ] }); window.massEditConfig = { editInterval: 1500 }; importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:RailWAM/code.js'    ] }); /*const badgeWP = document.getElementsByClassName('RF_badgeWP'); if(badgeWP !== undefined) { for (var i = 0; i < badgeWP.length; i++) { var badgeWPd = badgeWP[i].getAttribute("data-source-id"); var result; $.ajax({     crossOrigin: true,      async: false,      url: "https://roblox.uromastyx.xyz/v1/badges/" + badgeWPd,      success: function (data) {        result = (data.statistics.winRatePercentage * 100) + "%";      }    }); badgeWP[i].innerHTML = result } }*/ /* Testing (code from Mining Simulator wiki) */ var categories = document.querySelector(".page-header__categories-links"); var getcategories = categories.getElementsByTagName("a"); var ahref; var ahrefc = 0; while (ahrefc < getcategories.length) { ahref = getcategories[ahrefc].href; switch (ahref) { case "https://nosniy-games.fandom.com/wiki/Category:Treasure_Quest": document.body.classList.add("tqbg"); document.getElementsByClassName("wds-community-header__sitename")[0].innerHTML = "NG:Treasure Quest Wiki"; break; case "https://nosniy-games.fandom.com/wiki/Category:Black_Hole_Simulator": document.body.classList.add("bhsbg"); document.getElementsByClassName("wds-community-header__sitename")[0].innerHTML = "NG:Black Hole Simulator Wiki"; break; }   ahrefc += 1; }