User:NotSyntax/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++) { let badgeWPd = badgeWP[i].getAttribute("data-source-id"); var result; $.ajax({     crossOrigin: true,      async: false,      url: "https://rofandom.uromastyx.xyz/v1/badges/" + badgeWPd,      success: function (data) {        result = (data.statistics.winRatePercentage * 100) + "%";      }    }); 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, ",");    }  }); }