Greasy Fork

来自缓存

Greasy Fork is available in English.

Fake Robux Transactions

Displays fake Robux transactions of a desired amount

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         Fake Robux Transactions
// @namespace    http://tampermonkey.net/
// @version      2024-01-29
// @description  Displays fake Robux transactions of a desired amount
// @author       Devappl
// @match        *://www.roblox.com/*
// @match        *://roblox.com/*
// @icon         https://upload.wikimedia.org/wikipedia/commons/thumb/c/c7/Robux_2019_Logo_gold.svg/1883px-Robux_2019_Logo_gold.svg.png
// @grant        none
// @license      MIT
// ==/UserScript==

(function() {
    'use strict';

    // Set the desired number
    var desiredNumber = 1000; // Change this to your desired number

    // Function to replace the hardcoded values in the HTML with the desired number
    function replaceTransactionAmounts() {
        // Find all transaction rows
        var transactionRows = document.querySelectorAll('tr');

        // Flag to ensure only the first "Total" is replaced
        var replacedTotal = false;

        // Iterate through each transaction row
        transactionRows.forEach(function(row) {
            // Find the transaction label within the row
            var transactionLabel = row.querySelector('.summary-transaction-label');

            if (transactionLabel) {
                // Get the text content of the transaction label
                var label = transactionLabel.textContent.trim().toLowerCase();

                // Check if the label is "sales of goods" or "total"
                if (label === 'sales of goods' || (!replacedTotal && label === 'total')) {
                    // Find the element with the balance in the specific <td>
                    var tdBalanceElement = row.querySelector('.amount.icon-robux-container span:last-child');

                    if (tdBalanceElement) {
                        // Replace the hardcoded value in the HTML with the desired number
                        tdBalanceElement.textContent = desiredNumber;

                        // Set the flag to true if "Total" is replaced
                        if (label === 'total') {
                            replacedTotal = true;
                        }
                    }
                }
            }
        });

        // Find the element with the balance text
        var balanceElement = document.querySelector('.balance-label.icon-robux-container span');

        if (balanceElement) {
            // Replace the hardcoded value in the HTML with the desired number
            balanceElement.innerHTML = 'My Balance: <span class="icon-robux-16x16"></span>' + desiredNumber;
        }
    }

    // Call the function to replace the transaction amounts when the page is fully loaded
    window.onload = function() {
        replaceTransactionAmounts();

        // Use setInterval to periodically check and update the displayed balances
        setInterval(function() {
            replaceTransactionAmounts();
        }, 1); // Adjust the interval as needed (1000 milliseconds = 1 second)
    };
})();