Новый ClaimLitoshi Auto-Claim (12s Delay)

Waits 12 seconds and clicks the 'Collect your reward' button on ClaimLitoshi faucet pages.

目前為 2025-07-09 提交的版本,檢視 最新版本

// ==UserScript==
// @name         Новый ClaimLitoshi Auto-Claim (12s Delay)
// @namespace    http://tampermonkey.net/
// @version      2.4
// @description  Waits 12 seconds and clicks the 'Collect your reward' button on ClaimLitoshi faucet pages.
// @author       спасибо 👽 за идею.
// @match        https://claimlitoshi.top/*
// @grant        none
// @license      MIT
// ==/UserScript==

(function() {
    'use strict';

    function redirectToNextUrl() {
        const currentUrl = window.location.href;
        if (currentUrl === "https://claimlitoshi.top/dashboard") {
            window.location.href = "https://claimlitoshi.top/faucet/1";
            return;
        }
        if (currentUrl === "https://claimlitoshi.top/faucet/1") {
            setTimeout(function() {
                window.location.href = "https://claimlitoshi.top/faucet/2";
            }, 1000);
        } else if (currentUrl === "https://claimlitoshi.top/faucet/2") {
            setTimeout(function() {
                window.location.href = "https://claimlitoshi.top/faucet/3";
            }, 1000);
        } else if (currentUrl === "https://claimlitoshi.top/faucet/3") {
            setTimeout(function() {
                window.location.href = "https://claimlitoshi.top/faucet/4";
            }, 1000);
        } else if (currentUrl === "https://claimlitoshi.top/faucet/4") {
            setTimeout(function() {
                window.location.href = "https://claimlitoshi.top/faucet/5";
            }, 1000);
        } else if (currentUrl === "https://claimlitoshi.top/faucet/5") {
            setTimeout(function() {
                window.location.href = "https://claimlitoshi.top/faucet/6";
            }, 1000);
        } else if (currentUrl === "https://claimlitoshi.top/faucet/6") {
            setTimeout(function() {
                window.location.href = "https://claimlitoshi.top/faucet/";
            }, 1000);
        }
    }
    function clickCaptchaButton() {
		var icon = document.getElementsByClassName("captcha-prompt")[0].textContent.split(" ")[5].toLowerCase()
		for (var i = 0; i < 6; i++){
			if (icon == document.getElementsByClassName("captcha-item")[i].dataset.icon.split(".")[0]) {
				document.getElementsByClassName("captcha-item")[i].click();
                document.getElementsByClassName("captcha-item")[i].onclick = setTimeout(clickClaimButton, 5000);
				break;
			}
            document.getElementsByClassName("captcha-item")[i].textContent="👽";
			console.log(document.getElementsByClassName("captcha-item")[i].dataset.icon.split(".")[0]);
		}
	}
    const DELAY_SECONDS = 5;
        setTimeout(clickCaptchaButton, 15000);

    function clickClaimButton() {
        // Select the button using the specific class and text
        const buttons = document.querySelectorAll('button.claim-button');
		const unlock = document.querySelector("body > div.pc-container > div > div.row > div > div > div.card-body > form > div > button")
        if(unlock) {
            if (unlock.textContent.includes('Unlock')) {
                console.log('Found claim button. Unlock...');
                unlock.click();
				redirectToNextUrl();
                return;
			}
		}
        for (let btn of buttons) {
            if (btn.textContent.includes('Collect your reward')) {
                console.log('Found claim button. Clicking now...');
                if(document.getElementsByClassName("mb-1")[3].textContent.split("/")[0]!='0'){
                btn.click();
                } else {
                    redirectToNextUrl();
                }
                return;
            }
        }

        console.warn('[Tampermonkey] Claim button not found.');
    }
const interval = setInterval(() => {
    if(document.querySelector("body > div.loader")){
    document.querySelector("body > div.loader").remove();
    clearInterval(interval);
    }
}, 1000);
const firewall = setInterval(() => {
    if(window.location.href === "https://claimlitoshi.top/firewall"){
    setTimeout(clickCaptchaButton, 15000);
    clearInterval(firewall);
    }
}, 12000);

    window.addEventListener('load', () => {
        console.log(`Waiting ${DELAY_SECONDS} seconds before trying to click the claim button...`);
        document.querySelector("body > div.pc-container > div > div:nth-child(4) > div > span > i").click();
        document.getElementsByClassName("captcha-prompt")[0].scrollIntoView({ behavior: 'smooth' });
        //setTimeout(clickClaimButton, DELAY_SECONDS * 1000);
        setTimeout(clickCaptchaButton, (DELAY_SECONDS) * 1000);
    });
})();

QingJ © 2025

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