ClaimCoin Auto Faucet Collector

Automatically navigates to the faucet and collects rewards after reCAPTCHA v3 is solved.

当前为 2025-08-16 提交的版本,查看 最新版本

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         ClaimCoin Auto Faucet Collector
// @namespace    http://tampermonkey.net/
// @version      1.0
// @description  Automatically navigates to the faucet and collects rewards after reCAPTCHA v3 is solved.
// @author       Rubystance
// @license      MIT
// @match        https://claimcoin.in/dashboard*
// @match        https://claimcoin.in/faucet*
// @grant        none
// @run-at       document-idle
// ==/UserScript==

(function() {
    'use strict';

    const goToFaucetFromDashboard = () => {
        const faucetLink = document.querySelector('a[href="/faucet"].waves-effect, a[href="https://claimcoin.in/faucet"].waves-effect');
        if (faucetLink) {
            console.log("[ClaimCoin Auto] Found 'Manual Faucet' link. Navigating...");
            faucetLink.click();
        } else {
            console.log("[ClaimCoin Auto] 'Manual Faucet' link not found. Retrying in 2 seconds...");
            setTimeout(goToFaucetFromDashboard, 2000);
        }
    };

    const waitForCaptchaAndClick = () => {
        const captchaResponse = document.querySelector('textarea#g-recaptcha-response');
        if (captchaResponse && captchaResponse.value.trim().length > 0) {
            const button = document.querySelector('button.claim-button');
            if (button && !button.disabled && button.offsetParent !== null) {
                console.log("[ClaimCoin Auto] reCAPTCHA solved. Clicking 'Collect your reward'...");
                button.click();

                const form = button.closest("form");
                if (form) {
                    setTimeout(() => {
                        if (document.querySelector('button.claim-button')) {
                            console.log("[ClaimCoin Auto] Forcing form submit...");
                            form.submit();
                        }
                    }, 2000);
                }
            }
        } else {
            console.log("[ClaimCoin Auto] Waiting for reCAPTCHA v3 token...");
            setTimeout(waitForCaptchaAndClick, 2000);
        }
    };

    const currentPath = window.location.pathname;

    if (currentPath === "/dashboard") {
        console.log("[ClaimCoin Auto] On dashboard. Looking for faucet link...");
        goToFaucetFromDashboard();
    } else if (currentPath === "/faucet") {
        console.log("[ClaimCoin Auto] On faucet page. Waiting for reCAPTCHA v3...");
        waitForCaptchaAndClick();
    }
})();