FastCoins Faucet - Claim Button Automator with Random Delay and Cloudflare Check + Auto Refresh

Automate claiming the faucet reward with random delays after detecting CAPTCHA and other checks, and refresh page every 1 minute.

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
// ==UserScript==
// @name         FastCoins Faucet - Claim Button Automator with Random Delay and Cloudflare Check + Auto Refresh
// @namespace    http://tampermonkey.net/
// @version      1.3
// @description  Automate claiming the faucet reward with random delays after detecting CAPTCHA and other checks, and refresh page every 1 minute.
// @author       👽
// @match        https://fastcoins.click/faucet.php
// @grant        none
// @license      MIT
// ==/UserScript==

(function() {
    'use strict';

    // Function to check if CAPTCHA token exists
    function isCaptchaVisible() {
        const captchaInput = document.querySelector('input[name="cf-turnstile-response"]');
        return captchaInput !== null && captchaInput.value !== "";
    }

    // Function to check if the countdown timer says "READY!"
    function isCountdownReady() {
        const countdown = document.querySelector('#countdown');
        return countdown !== null && countdown.textContent.trim() === "READY!";
    }

    // Function to simulate a real user click with a delay between 3 and 8 seconds
    function clickClaimButtonWithDelay() {
        if (isCountdownReady() && isCaptchaVisible()) {
            // Generate a random delay between 3 and 8 seconds
            const randomDelay = Math.floor(Math.random() * (8000 - 3000 + 1)) + 3000; // 3000ms to 8000ms

            // Wait for the random delay
            setTimeout(() => {
                const claimButton = document.querySelector('#claimButton');

                if (claimButton) {
                    const mouseEvent = new MouseEvent('click', {
                        bubbles: true,
                        cancelable: true,
                        view: window
                    });

                    claimButton.dispatchEvent(mouseEvent);
                }
            }, randomDelay);
        }
    }

    // Start the claim button check 15 seconds after page load
    setTimeout(() => {
        clickClaimButtonWithDelay();
    }, 15000);

    // Refresh the page every 1 minute (60000 milliseconds)
    setInterval(() => {
        location.reload();
    }, 60000);

})();