🏠 Home 

✨Total Gamepass Price

Shows Total Robux Amount On Gamepasses


Install this script?
  1. // ==UserScript==
  2. // @name ✨Total Gamepass Price
  3. // @icon https://cdn.discordapp.com/attachments/898314728219242597/900157044009611284/image.png
  4. // @namespace lol
  5. // @namespace https://www.roblox.com/
  6. // @version 1.0.1
  7. // @description Shows Total Robux Amount On Gamepasses
  8. // @author levisurely
  9. // @license Apache-2.0
  10. // @match https://www.roblox.com/games*
  11. // @match https://web.roblox.com/games*
  12. // @match https://roblox.com/games*
  13. // @grant none
  14. // ==/UserScript==
  15. //lev#9999 On Discord
  16. //discord.gg/tmYQr99wTa
  17. setInterval(function(){
  18. function addCommas(x) {
  19. return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
  20. }
  21. let total = 0
  22. for (const pass of document.querySelectorAll("span.text-robux")) {
  23. total = total + (parseInt(pass.textContent.replace(/,/g, '')) || 0)
  24. }
  25. const theme = document.getElementById('rbx-body')
  26. .className.includes('light')
  27. const passesTab = document.getElementById('rbx-game-passes')
  28. .getElementsByTagName('h3')
  29. passesTab[0].innerText = `Passes (${addCommas(total)} Robux)`
  30. }, 100);