Greasy Fork

99.com unlimited faucet

Automatically clicks the "Claim Now" button when reCAPTCHA is solved and the button is enabled.

目前为 2024-08-26 提交的版本。查看 最新版本

// ==UserScript==
// @name           99.com unlimited faucet
// @namespace      auto click unlimited faucet
// @version        0.1
// @description    Automatically clicks the "Claim Now" button when reCAPTCHA is solved and the button is enabled.
// @author         OjoNgono
// @match          https://99faucet.com/notimer
// @grant          none
// @license        Copyright OjoNgono
// ==/UserScript==

(function() {
    'use strict';

    // Function to check reCAPTCHA and click the button
    const checkRecaptchaAndClick = () => {
        const claimInterval = setInterval(() => {
            // Check for reCAPTCHA response
            const recaptcha = document.querySelector('[name="g-recaptcha-response"]');

            // Check for the Claim button
            const claimButton = document.querySelector('.claim-button');

            if (claimButton && recaptcha && recaptcha.value.length > 0 && !claimButton.disabled) {
                // Click the button if reCAPTCHA is completed and button is enabled
                claimButton.click();
                console.log('Claim button clicked!');
                clearInterval(claimInterval); // Stop checking after clicking
            } else {
                console.log('Waiting for reCAPTCHA completion or button activation...');
            }
        }, 1000); // Check every second
    };

    // Run the function
    checkRecaptchaAndClick();
})();