ClaimLitoshi Auto-Claim (12s Delay)

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

// ==UserScript==
// @name         ClaimLitoshi Auto-Claim (12s Delay)
// @namespace    http://tampermonkey.net/
// @version      2.1
// @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';

    const DELAY_SECONDS = 12;

    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('[Tampermonkey] Found claim button. Clicking now...');
                btn.click();
                return;
            }
        }

        console.warn('[Tampermonkey] Claim button not found.');
    }

    window.addEventListener('load', () => {
        console.log(`[Tampermonkey] Waiting ${DELAY_SECONDS} seconds before trying to click the claim button...`);
        setTimeout(clickClaimButton, DELAY_SECONDS * 1000);
    });
})();