BTC Auto

Faucet automatic collection 24 hours a day

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

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

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği indirebilmeniz için ayrıca Tampermonkey gibi bir eklenti kurmanız gerekmektedir.

Bu komut dosyasını yüklemek için bir kullanıcı komut dosyası yöneticisi uzantısı yüklemeniz gerekecek.

(Zaten bir kullanıcı komut dosyası yöneticim var, kurmama izin verin!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Zateb bir user-style yöneticim var, yükleyeyim!)

// ==UserScript==
// @name         BTC Auto
// @namespace    http://tampermonkey.net/
// @version      1.4
// @description  Faucet automatic collection 24 hours a day
// @author       ALEN
// @icon         https://i.imgur.com/tnqS60o.jpeg
// @match        https://freebtcco.in/*
// @grant        none
// ==/UserScript==

(function () {
    'use strict';

    const VERIFY_INPUT_SELECTOR = 'input[name="cf-turnstile-response"]';
    const CLAIM_BUTTON_TEXT = 'Claim';
    const CHECK_INTERVAL = 2000;
    let hasClaimed = false;

    function isVerificationComplete() {
        const verifyInput = document.querySelector(VERIFY_INPUT_SELECTOR);
        return verifyInput && verifyInput.value.trim() !== '';
    }

    function clickClaimButton() {
        if (hasClaimed) return;
        const buttons = document.querySelectorAll('button');
        for (const button of buttons) {
            if (button.textContent.trim().toUpperCase() === CLAIM_BUTTON_TEXT.toUpperCase()) {
                console.log('驗證通過!正在點擊 Claim 按鈕...');
                button.click();
                hasClaimed = true;
                return;
            }
        }
        console.log('Claim 按鈕未找到,將稍後重試...');
    }

    function checkVerificationAndClick() {
        if (isVerificationComplete()) {
            console.log('驗證完成,觸發點擊動作!');
            clickClaimButton();
        } else {
            console.log('驗證尚未完成,等待中...');
        }
    }

    setInterval(checkVerificationAndClick, CHECK_INTERVAL);

    // 每 30 分鐘自動重新整理頁面
    setTimeout(() => {
        console.log('30 分鐘到,自動重新整理頁面...');
        location.reload();
    }, 30 * 60 * 1000); // 30 分鐘
})();