ClaimLitoshi Auto Email Fill + Auto Claim Crypto.

Auto fill email, login after captcha, navigate to DGB faucet and claim reward.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         ClaimLitoshi Auto Email Fill + Auto Claim Crypto.
// @namespace    http://tampermonkey.net/
// @version      1.2
// @description  Auto fill email, login after captcha, navigate to DGB faucet and claim reward.
// @author       Rubystance
// @license      MIT
// @match        https://claimlitoshi.top/
// @match        https://claimlitoshi.top/dashboard*
// @match        https://claimlitoshi.top/faucet/6*
// @match        https://claimlitoshi.top/firewall*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    const myEmail = "YOUR_FAUCETPAY_EMAIL_HERE";  // ← replace with your faucetpay e-mail.

    if (window.location.href === "https://claimlitoshi.top/") {
        console.log("On root page...");

        function tryLogin() {
            let emailInput = document.querySelector('input[name="wallet"]');
            let loginBtn = document.querySelector('button.btn.btn-primary.rounded-2.text-white.btn-mw.btn-animate');

            if (emailInput && loginBtn) {
                if (!emailInput.value) {
                    emailInput.value = myEmail;
                    console.log("Email filled:", myEmail);
                }

                if (!loginBtn.disabled) {
                    console.log("Captcha solved, clicking Login...");
                    setTimeout(() => {
                        loginBtn.click();
                    }, 2000);
                }
            }
        }

        let observer = new MutationObserver(() => {
            tryLogin();
        });
        observer.observe(document.body, { childList: true, subtree: true });

        setInterval(() => {
            tryLogin();
        }, 4000);
    }

    if (window.location.href.includes("/dashboard")) {
        let link = document.querySelector('a.pc-link[href="https://claimlitoshi.top/faucet/6"]');
        if (link) {
            console.log("Navigating to DGB faucet...");
            link.click();
        }
    }

    if (window.location.href.includes("/faucet/6")) {
        console.log("On DGB faucet, waiting for captcha...");

        function tryClickFaucet() {
            let btn = document.querySelector('button.claim-button');
            if (btn && !btn.disabled) {
                console.log("Faucet button found, clicking in 3s...");
                setTimeout(() => {
                    btn.click();
                }, 3000);
            }
        }

        let observer = new MutationObserver(() => {
            tryClickFaucet();
        });
        observer.observe(document.body, { childList: true, subtree: true });

        setInterval(() => {
            tryClickFaucet();
        }, 5000);
    }

    if (window.location.href.includes("/firewall")) {
        console.log("On firewall page, waiting for captcha...");

        function tryClickFirewall() {
            let btn = document.querySelector('button.btn.btn-primary.btn-mw.btn-animate.rounded-2');
            if (btn && !btn.disabled) {
                console.log("Unlock button found, clicking in 3s...");
                setTimeout(() => {
                    btn.click();
                }, 3000);
            }
        }

        let observer = new MutationObserver(() => {
            tryClickFirewall();
        });
        observer.observe(document.body, { childList: true, subtree: true });

        setInterval(() => {
            tryClickFirewall();
        }, 5000);
    }
})();