Bitcolapse Auto-Claim

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

Before you install, Greasy Fork would like you to know that this script contains antifeatures, which are things there for the script author's benefit, rather than yours.

This script earns commission for the author, for example by rewriting links or providing coupon codes to include a referral or affiliate code. شرح مؤلف هذا البرنامج النصي: Directs to a referral link when not logged in

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

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

(I already have a user script manager, let me install it!)

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.

ستحتاج إلى تثبيت إضافة مثل 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);
})();