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

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

当前为 2025-07-17 提交的版本,查看 最新版本

// ==UserScript==
// @name         Новый ClaimLitoshi Auto-Claim (12s Delay)
// @namespace    http://tampermonkey.net/
// @version      2.5
// @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/contest";
            }, 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, 18000);
	//ищет и нажимает нужную кнопку
    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();
                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', () => {
                const litoshiAdBlocker = document.querySelector('[data-id="ad-blocker"]');
                if (litoshiAdBlocker) {
                    litoshiAdBlocker.classList.remove("d-none");
                    console.log("litoshiAdBlocker.remove");
                }
        console.log(`Waiting ${DELAY_SECONDS} seconds before trying to click the claim button...`);
        if(document.querySelector("body > div.pc-container > div > div:nth-child(4) > div > span > i")){
            document.querySelector("body > div.pc-container > div > div:nth-child(4) > div > span > i").click();//--убирает перекрывающую рекламу
            console.log("X");
        }
        if(document.getElementsByClassName("captcha-prompt")[0])document.getElementsByClassName("captcha-prompt")[0].scrollIntoView({ behavior: 'smooth' });//прокрутить лист до капчи
        if(document.querySelector("#activity-line-chart"))setTimeout(redirectToNextUrl, 9000);//если видит график на дашборде, переходит на краны
        if(document.getElementsByClassName("mb-0"))setTimeout(redirectToNextUrl, 9000);//если видит имя на дашборде, переходит на краны
        setTimeout(clickCaptchaButton, (DELAY_SECONDS) * 1000);
        //setInterval(() => {(clickCaptchaButton, (DELAY_SECONDS) * 2000)});
    });
})();

QingJ © 2025

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