ClaimLitoshi + Сaptcha solver-->(desc)

Auto-clicks 'Collect your reward' with random delay and simulates real click.

// ==UserScript==
// @name         ClaimLitoshi + Сaptcha solver-->(desc)
// @namespace    http://tampermonkey.net/
// @version      3
// @description  Auto-clicks 'Collect your reward' with random delay and simulates real click.
// @author       👽
// @match        https://claimlitoshi.top/faucet/*
// @grant        none
// @license      MIT
// ==/UserScript==

(function() {
    'use strict';

    // Generate random delay between 7 to 14 seconds (in ms)
    const randomDelay = Math.floor(Math.random() * (14 - 7 + 1) + 7) * 1000;

    function simulateRealClick(element) {
        if (!element) return;
        const evtOptions = { bubbles: true, cancelable: true, view: window };
        ['mouseover', 'mousedown', 'mouseup', 'click'].forEach(type => {
            const event = new MouseEvent(type, evtOptions);
            element.dispatchEvent(event);
        });
    }

    function tryClickButton() {
        const buttons = document.querySelectorAll('button.claim-button');
        for (let btn of buttons) {
            if (btn.textContent.includes('Collect your reward')) {
                simulateRealClick(btn);
                return;
            }
        }
    }

    window.addEventListener('load', () => {
        setTimeout(tryClickButton, randomDelay);
    });
})();