Gamerlee Auto Claim DGB, LTC, DOGE and others.

Automatically logs in and claims DGB, LTC and others.

// ==UserScript==
// @name         Gamerlee Auto Claim DGB, LTC, DOGE and others.
// @namespace    http://tampermonkey.net/
// @version      1.1
// @description  Automatically logs in and claims DGB, LTC and others.
// @author       Rubystance
// @license      MIT
// @match        https://gamerlee.com/*
// @grant        none
// ==/UserScript==

(function () {
    'use strict';

    const WALLET_EMAIL = "YOUR_FAUCETPAY_EMAIL_HERE"; // <-- Replace with your FaucetPay email

    function waitForElement(selector, callback, interval = 500, timeout = 30000) {
        const startTime = Date.now();
        const timer = setInterval(() => {
            const el = document.querySelector(selector);
            if (el) {
                clearInterval(timer);
                callback(el);
            } else if (Date.now() - startTime > timeout) {
                clearInterval(timer);
                console.warn("Timeout: Element not found -", selector);
            }
        }, interval);
    }

    if (window.location.pathname === "/") {
        waitForElement('input[name="wallet"]', (input) => {
            input.value = WALLET_EMAIL;
            console.log("Email filled in:", WALLET_EMAIL);

            const checkCaptchaAndLogin = setInterval(() => {
                const captchaCompleted = document.querySelector('.iconCaptcha.success');
                const loginBtn = document.querySelector('button[type="submit"]');

                if (captchaCompleted && loginBtn) {
                    console.log("Captcha solved. Logging in...");
                    loginBtn.click();
                    clearInterval(checkCaptchaAndLogin);
                }
            }, 1000);
        });
    }

    else if (window.location.pathname === "/app/dashboard") {
        waitForElement('a[href*="/app/faucet?currency=DGB"]', (link) => {
            console.log("Clicking to claim DGB...");
            link.click();
        });
    }

    else if (window.location.pathname === "/app/faucet") {
        waitForElement('div.justify-content-center > button.claim-button.step4', (btn) => {
            console.log("Claim button found:", btn);
            const checkCaptchaAndClaim = setInterval(() => {
                const captchaCompleted = document.querySelector('.iconcaptcha-modal__body-title');
                const isCaptchaSolved = captchaCompleted && captchaCompleted.textContent.trim() === "Verification complete.";

                if (isCaptchaSolved) {
                    if (!btn.disabled && btn.offsetParent !== null) {
                        console.log("Captcha solved. Clicking claim button...");
                        btn.click();
                        clearInterval(checkCaptchaAndClaim);
                    } else {
                        console.log("Button is not enabled or visible yet");
                    }
                } else {
                    console.log("Captcha not solved yet");
                }
            }, 1000);
        });
    }
})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址