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

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

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

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

(function() {
    'use strict';

    function clickCaptchaButton() {
		var icon = document.getElementsByClassName("captcha-prompt")[0].textContent.split(" ")[5].toLowerCase()
		for (var i = 0; i < 5; 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;
			}
			console.log(document.getElementsByClassName("captcha-item")[i].dataset.icon.split(".")[0]);
		}
	}
    const DELAY_SECONDS = 1;

    function clickClaimButton() {
        // Select the button using the specific class and text
        const buttons = document.querySelectorAll('button.claim-button');
        for (let btn of buttons) {
            if (btn.textContent.includes('Collect your reward')) {
                console.log('Found claim button. Clicking now...');
                btn.click();
                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);

    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或关注我们的公众号极客氢云获取最新地址