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 userI = document.getElementsByClassName('userId'); if(userI !== undefined) { $.ajax({   crossOrigin: true,    url: "https://roblox.uromastyx.xyz/v1/search/users?keyword=" + userI.innerHTML,    success: function (data)  {      userI.innerHTML = data.UserSearchResults[0].UserId;    }  }); } const badgeWP = document.getElementsByClassName('badgeWinPercent'); if(badgeWP !== undefined) { for (var i = 0; i < badgeWP.length; i++) { badgeWP[i].style.display = "block"; var result; $.ajax({   crossOrigin: true,    url: "https://roblox.uromastyx.xyz/v1/badges/" + badgeWP[i].innerHTML,    success: function (data)  {      result = data.statistics.winRatePercentage + "%";      badgeWP[i].innerHTML = result;    }  }); } } const universe = document.getElementsByClassName('universeVisits'); if(universe !== undefined) { $.ajax({   crossOrigin: true,    url: "https://roblox.uromastyx.xyz/v1/games?universeIds=" + universe.innerHTML,    success: function (data)  {      universe.innerHTML = data.data[0].visits.toString.replace(/\B(?=(\d{3})+(?!\d))/g, ",");    }  }); }