BitFaucet Auto

Auto clicks the "Get Reward" button with a random delay (7–13s) and no logs or traces.

// ==UserScript==
// @name         BitFaucet Auto
// @namespace    http://tampermonkey.net/
// @version      3.1
// @description  Auto clicks the "Get Reward" button with a random delay (7–13s) and no logs or traces.
// @author       👽
// @match        https://bitfaucet.net/faucet*
// @grant        none
// @run-at       document-end
// @license      MIT
// ==/UserScript==

(function() {
    'use strict';

    // Hide webdriver property from detection
    try {
        Object.defineProperty(navigator, 'webdriver', {
            get: function() {
                return false;
            }
        });
    } catch (e) {
        // Do nothing if blocked
    }

    // Function to generate a random delay (7 to 13 seconds)
    function getRandomDelay() {
        return Math.floor(Math.random() * (13000 - 7000 + 1)) + 7000;
    }

    // Function to simulate a real click
    function simulateClick(el) {
        if (!el) return;
        const evt = new MouseEvent("click", {
            bubbles: true,
            cancelable: true,
            view: window
        });
        el.dispatchEvent(evt);
    }

    // Wait for the button to appear using MutationObserver
    const observer = new MutationObserver(function(mutations, obs) {
        const button = document.querySelector('button.btn.sl_btn.text-white');
        if (button) {
            obs.disconnect(); // Stop watching once found

            const delay = getRandomDelay();
            setTimeout(() => {
                simulateClick(button);
            }, delay);
        }
    });

    // Start observing the page
    observer.observe(document, {
        childList: true,
        subtree: true
    });
})();
长期地址
遇到问题?请前往 GitHub 提 Issues。