Ec

Auto

// ==UserScript==
// @name         Ec
// @namespace    https://earncryptowrs.in/
// @version      1.3
// @description  Auto
// @author       👽
// @match        https://earncryptowrs.in/*
// @grant        none
// @run-at       document-idle
// @license      MIT
// ==/UserScript==

(function() {
    'use strict';

    const wait = (ms) => new Promise(resolve => setTimeout(resolve, ms));

    async function autoFaucetLoop() {
        console.log("[Auto Faucet] Waiting 20 seconds before clicking the claim button...");
        await wait(20000); // Wait 20 seconds

        const claimButton = document.querySelector('button.claim-button.step4');
        if (claimButton) {
            console.log("[Auto Faucet] Clicking the claim button...");
            claimButton.click();
        } else {
            console.log("[Auto Faucet] Claim button not found!");
        }

        console.log("[Auto Faucet] Waiting 5 minutes and 20 seconds before refreshing...");
        await wait(320000); // 5 minutes 20 seconds = 320,000 milliseconds

        console.log("[Auto Faucet] Refreshing the page...");
        location.reload(); // Refresh the page
    }

    autoFaucetLoop(); // Start the loop
})();