bnbcity.org : Auto Claim Cloud Mining

https://bnbcity.org/?ref=3531392e35343334

当前为 2023-03-21 提交的版本,查看 最新版本

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         bnbcity.org : Auto Claim Cloud Mining
// @namespace    bnbcity.auto.claim
// @version      1.1
// @description  https://bnbcity.org/?ref=3531392e35343334
// @author       stealtosvra
// @match        https://bnbcity.org/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=bnbcity.org
// @grant        none
// @license      MIT
// ==/UserScript==

(function() {
    'use strict';

    function hCaptcha() {
        return grecaptcha && grecaptcha.getResponse().length !== 0;
    }

    setInterval(function() {
        try {
            if (hCaptcha()) {
                location.reload();
            }
        } catch (error) {
            console.log(' ');
        }
    }, 6000);

    function checkBalance() {
        const miningBalance = document.getElementById('mining_balance');

        console.log(`Checking balance. Current value: ${miningBalance.innerText}`);

        if (miningBalance.innerText === '0.00000600') {
            document.querySelector('.theme-btn').click();
            console.log('Balance has reached 0.00000600. Clicked the button.');
            clearInterval(balanceInterval);
            checkLowBalance();
        }
    }

    function checkLowBalance() {
        const miningBalance = document.getElementById('mining_balance');

        console.log(`Checking balance for low value. Current value: ${miningBalance.innerText}`);

        if (parseFloat(miningBalance.innerText) < 0.00000600) {
            console.log('Balance is less than 0.00000600.');
            checkBalance();
            setInterval(checkLowBalance, 5000);
        }
    }

    const miningBalance = document.getElementById('mining_balance');
    if (parseFloat(miningBalance.innerText) < 0.00000600) {
        checkBalance();
    }

    const balanceInterval = setInterval(checkBalance, 10000);

    setInterval(function() {
        location.reload();
    }, 5 * 60 * 1000);
})();