Greasy Fork

来自缓存

Roblox options extra

-

当前为 2022-03-13 提交的版本,查看 最新版本

// ==UserScript==
// @name         Roblox options extra
// @namespace    http://tampermonkey.net/
// @version      1.0
// @description  -
// @license GNU GPLv3
// @author       Genpro
// @match        https://*.roblox.com/*
// @grant        none
// ==/UserScript==
function e2(x) {
    return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
}

(function() {
    'use strict';
    //
 
    //
    // Note: This does not permanently change things, it only makes it look like that on your local browser!
    var o1 = false // set this to true if you want it to look like you own everything in the avatar shop
    var o2 = true // set this to true if you want to change your robux value
    var o3 = 477796425486575 // set this to how much robux you want, dont add commas and dont add K+ or M+ or B+ or T+, value must be less than 999 trilion
    var o8 = true // set this to true if you want to change your age to over 13 if its set to <13
    var inf = true //make inf robux
    var infshow = false //set to false to make it show 999999999999SP and true to make it ∞
    var gog = 0 //set this to your real robux number and go to transition to see real robux
    var goe = false //set false to not see real robux in transition
    //
    //
    //

    if (o1 == true && (window.location.href.includes('bundles/') || window.location.href.includes('catalog/'))) {
        var tx = document.getElementsByClassName("text-label");
        var owne = document.createElement("div");
        owne.setAttribute("class", "divider");
        owne.innerHTML = "&nbsp;";
        var owne1 = document.createElement("div");
        owne1.setAttribute("class", "label-checkmark");
        var owne2 = document.createElement("span");
        owne2.setAttribute("class", "icon-checkmark-white-bold");
        owne1.appendChild(owne2);
        var owne3 = document.createElement("span");
        owne3.innerHTML = "Item Owned";
        var tx2 = document.getElementsByClassName("price-container-text");
        var owne4 = document.createElement("div");
        owne4.setAttribute("class", "item-first-line");
        owne4.innerHTML = "This item is available in your inventory.";
        var tx3 = document.getElementsByClassName("btn-fixed-width-lg btn-growth-lg PurchaseButton");
        var owne5 = document.createElement("a");
        owne5.setAttribute("id", "edit-avatar-button");
        owne5.setAttribute("class", "btn-control-md");
        owne5.setAttribute("href", "https://web.roblox.com/my/avatar");
        owne5.setAttribute("data-button-action", "avatar");
        var owne6 = document.createElement("span");
        owne6.setAttribute("class", "icon-nav-charactercustomizer");
        owne5.appendChild(owne6);
        tx3[0].parentElement.appendChild(owne5);
        tx3[0].remove();
        tx[0].parentElement.appendChild(owne);
        tx[0].parentElement.appendChild(owne1);
        tx[0].parentElement.appendChild(owne3);
        tx2[0].prepend(owne4);
    }
    if (o2 == true) {
        var o4 = "nil";
        var o5 = o3.toString();
        switch (o5.length) {
              case 0:
                console.log("Error, robux set to nothing");
                break;
            case 1:
            case 2:
            case 3:
                o4 = o5;
                break;
            case 4:
                o4 = o5.substring(0,1) + "K+";
                break;
            case 5:
                o4 = o5.substring(0,2) + "K+";
                break;
            case 6:
                o4 = o5.substring(0,3) + "K+";
                break;
            case 7:
                o4 = o5.substring(0,1) + "M+";
                break;
            case 8:
                o4 = o5.substring(0,2) + "M+";
                break;
                 case 9:
                o4 = o5.substring(0,3) + "M+";
                break;
                 case 10:
                o4 = o5.substring(0,1) + "B+";
                  break;
                 case 11:
                o4 = o5.substring(0,2) + "B+"
                  break;
                 case 12:
                o4 = o5.substring(0,3) + "B+"
                break;
                 case 13:
                o4 = o5.substring(0,1) + "T+";
                  break;
                 case 14:
                o4 = o5.substring(0,2) + "T+"
                  break;
                 case 15:
                o4 = o5.substring(0,3) + "T+"
                break;


                   default:
        }
                console.log("Error, robux set to more than 999 trillion");

      var o7 = e2(o5) + " Robux";
 if (inf == true + infshow == true){
 if (infshow == true){
 }
     o3 = "∞ Robux"
o4 = "∞"
     o5 = "∞"
     o7 = "∞ Robux"
            }
        if (inf == true){
            if (infshow == false){
            }
   o3 = "9e+103"
o4 = "999999SP+"
     o5 = "999999999999999999999E+999"
     o7 = "9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999 Robux"
           }
        var e1 = setInterval(function() {
            var robuxt = document.getElementById("nav-robux-amount");
            if (robuxt !== null && robuxt.innerHTML !== o4) {
                robuxt.innerHTML = o4;
            }
        },);


       var e3 = setInterval(function() {
            var robuxt1 = document.getElementById("nav-robux-balance");
            if (robuxt1 !== null && robuxt1 !== o7) {
                robuxt1.innerHTML = o7;
            }
       },);


if (goe == true){
if (window.location.href.indexOf("/transactions") !== -1) {
}
            var h5 = setInterval(function() {
                if (document.body.getElementsByClassName("border-bottom")) {
                    var h3 = "<td class=amount icon-robux-container font-bold><span>-</span><span class=icon-robux-16x16></span><span btr-cash=true>2714</span>"
                    var h2 = "<td class=amount icon-robux-container font-bold><span></span><span class=icon-robux-16x16></span><span btr-cash=true>2714</span>"

                    var h1 = document.body.getElementsByClassName("border-bottom")[0];
                           h1.children[0].innerHTML = "Real Robux: " + gog


           }
               }, );
}


        if (window.location.href.indexOf("/transactions") !== -1) {
            var h3 = setInterval(function() {
                if (document.body.getElementsByClassName("balance-label icon-robux-container")) {
                    var h1 = document.body.getElementsByClassName("balance-label icon-robux-container")[0];
                    h1.children[0].innerHTML = "My Balance: <span class=\"icon-robux-16x16\"></span>" + e2(o5);
             }
            }, );
        }
    }
    if (o8 == true) {
        var ag = document.body.getElementsByClassName("xsmall age-bracket-label-age text-secondary");


        ag[0].innerHTML = "13+";

    }
})();