Auto Claim

Auto claim loop

// ==UserScript==
// @name         Auto Claim
// @namespace    Terminator.Scripts
// @version      0.3
// @description  Auto claim loop
// @author       TERMINATOR
// @license      MIT
// @match        https://btcrocket.net/home/wallet/*/faucet
// @match        https://ethrocket.net/home/wallet/*/faucet
// @match        https://cryptoarea.net/home/wallet/*/faucet
// @match        https://faucetdash.com/home/wallet/*/faucet
// @match        https://cryptoxmr.net/home/wallet/*/faucet
// @icon         https://www.google.com/s2/favicons?sz=64&domain=cryptoarea.net
// @grant        none
// ==/UserScript==

// For proper functioning, install the extension hektCaptcha or any other solver

(function() {
    'use strict';
    function waitForCaptchaAndUnlock() {
        var rollButton = document.getElementById('faucet_roll');
        if (rollButton) {
            rollButton.click()
        } else {
            console.error('Roll button not found.');
            setTimeout(waitForCaptchaAndUnlock, 1000);
        }
    }
    window.addEventListener('load', function() {
        if (window.location.href.includes("verify")) {
            let buttonVerify = document.querySelector('.swal2-confirm.btn.btn-primary')
            if (!buttonVerify) return;
            buttonVerify.click();
        } else {
            setTimeout(() => {
                waitForCaptchaAndUnlock();
            },15000);
        }
    });
})();