F B COM

Automate faucet claim by pressing claim button after 15 seconds with real click and hidden script usage

// ==UserScript==
// @name         F B COM
// @namespace    http://tampermonkey.net/
// @version      1.3
// @description  Automate faucet claim by pressing claim button after 15 seconds with real click and hidden script usage
// @author       👽
// @match        https://free-bonk.com/faucet
// @grant        none
// @license      MIT
// ==/UserScript==

(function() {
    'use strict';

    // Function to simulate a real mouse click event
    function simulateRealClick(element) {
        const mouseEvent = new MouseEvent('click', {
            bubbles: true,
            cancelable: true,
            view: window
        });
        element.dispatchEvent(mouseEvent);
    }

    // Wait for 15 seconds after page load, then press the claim button
    setTimeout(() => {
        // Find the claim button after 15 seconds
        const claimButton = document.querySelector('.claim-button');

        if (claimButton) {
            // Simulate a real click on the claim button
            simulateRealClick(claimButton);

            // After clicking, do nothing else (hide further actions)
        }

        // Hide the script usage by removing all logs
        const logs = console.log;
        console.log = function() {};

    }, 15000);  // Wait for 15 seconds
})();