RBXGold Rain Bot

Working as of 4/26/2024

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @license MIT
// @name         RBXGold Rain Bot
// @namespace    http://tampermonkey.net/
// @version      2.6
// @description  Working as of 4/26/2024
// @match        *://*.rbxgold.com/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
 
    // Create the popup element
    const popup = document.createElement('div');
    popup.id = 'rbxgold-popup';
    popup.style.position = 'fixed';
    popup.style.left = '0';
    popup.style.top = '0';
    popup.style.background = 'white';
    popup.style.border = '1px solid #ccc';
    popup.style.padding = '10px';
    popup.style.zIndex = '9999';
 
    // Add the content to the popup
    popup.innerHTML = `
        <div id="status">Inactive</div>
    `;
 
    // Append the popup to the document body
    document.body.appendChild(popup);
 
    // Function to update the popup status and click the button if found
    function updatePopup() {
        const statusElement = document.getElementById('status');
        if (window.location.hostname === 'rbxgold.com') {
            statusElement.textContent = 'Active https://discord.gg/u3uJ7sTBG5';
 
            // Find the target HTML element
            const targetElement = document.querySelector('div.BaseElement.Box.align-end button.BaseElement.Box.Button.goldButton.primary.size-xs.justify-center.align-center.border-radius.hover.background-color-s2 span.BaseElement.Span.size-xs');
 
            if (targetElement) {
                // Click the button if found
                targetElement.click();
            }
        } else {
            statusElement.textContent = 'Inactive';
        }
    }
 
    // Call the updatePopup function when the page loads
    window.addEventListener('load', updatePopup);
 
    // Check for the element and click it every 5 seconds (you can adjust the interval as needed)
    setInterval(updatePopup, 500);
})();