Bitcolapse Auto-Claim

Automatically fills email, waits for hCaptcha, and clicks submit after 10 seconds.

在您安裝前,Greasy Fork希望您了解本腳本包含“負面功能”,可能幫助腳本的作者獲利,而不能給你帶來任何收益。

作者從這份腳本獲得佣金, 例如透過重寫連結或提供優惠券代碼以加入推薦或附屬代碼 腳本的作者解釋: Directs to a referral link when not logged in

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

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

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

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

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

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

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         Bitcolapse Auto-Claim
// @namespace    http://tampermonkey.net/
// @version      1.0
// @description  Automatically fills email, waits for hCaptcha, and clicks submit after 10 seconds. 
// @author       Wphelp
// @match        https://bitcolapse.fun/*
// @antifeature  referral-link Directs to a referral link when not logged in
// @license      Copyright Wphelp
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    // Redirect to referral link if not already using it
    if (!window.location.search.includes('[email protected]')) {
        window.location.href = 'https://bitcolapse.fun/[email protected]';
        return; // Stop execution after redirect
    }

    // Main automation function
    function automateProcess() {
        // Fill email field
        const emailField = document.querySelector('input[name="email"]');
        if (emailField) {
            emailField.value = 'Add your email here';
            emailField.dispatchEvent(new Event('input', { bubbles: true }));
        }

        let captchaSolved = false;
        const checkCaptcha = setInterval(() => {
            // Check if hCaptcha is solved
            const iframe = document.querySelector('iframe[data-hcaptcha-response]');
            if (iframe && iframe.dataset.hcaptchaResponse) {
                captchaSolved = true;
                clearInterval(checkCaptcha);
                console.log('hCaptcha solved detected');

                // Wait 30 seconds after captcha solve then click button
                setTimeout(() => {
                    const submitBtn = document.querySelector('button[type="submit"]');
                    if (submitBtn) {
                        submitBtn.click();
                        console.log('Submit button clicked');
                    }
                }, 10000);
            }
        }, 1000);
    }

    // Run after page loads
    window.addEventListener('load', automateProcess);
})();