ClaimCoin Auto Faucet Collector

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

目前為 2025-08-16 提交的版本,檢視 最新版本

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 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();
    }
})();