RS Faucet + Сaptcha solver-->(desc)

AutoClaim5min

// ==UserScript==
// @name         RS Faucet + Сaptcha solver-->(desc)
// @namespace    http://tampermonkey.net/
// @version      3
// @description  AutoClaim5min
// @author       👽
// @match        https://rsfaucet.com/*
// @grant        none
// @license      MIT
// ==/UserScript==

(function() {
    'use strict';

    function randomDelay(min, max) {
        return Math.floor(Math.random() * (max - min + 1) + min);
    }

    function humanClick(element) {
        if (!element) return;

        const rect = element.getBoundingClientRect();
        const x = rect.left + rect.width / 2;
        const y = rect.top + rect.height / 2;

        // Simulate mouse events
        ['mousedown', 'mouseup', 'click'].forEach(eventType => {
            const event = new MouseEvent(eventType, {
                view: window,
                bubbles: true,
                cancelable: true,
                clientX: x + randomDelay(-5, 5),
                clientY: y + randomDelay(-5, 5)
            });
            element.dispatchEvent(event);
        });
    }

    function clickClaim() {
        const btn = document.querySelector('#claimBtn');
        if (btn) {
            humanClick(btn);
        } else {
            setTimeout(clickClaim, 500 + randomDelay(0, 500));
        }
    }

    window.addEventListener('load', function() {
        setTimeout(clickClaim, randomDelay(12000, 17000));
    });
})();