sato.host : Auto Faucet

https://sato.host/page/dashboard?r=stealtosvra

当前为 2023-03-20 提交的版本,查看 最新版本

// ==UserScript==
// @name         sato.host : Auto Faucet
// @namespace    sato.host.auto.faucet
// @version      1.0
// @description  https://sato.host/page/dashboard?r=stealtosvra
// @author       stealtosvra
// @match        https://sato.host/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=sato.host
// @grant        none
// @license      MIT
// ==/UserScript==

(function() {
    'use strict';

    // Check if hCaptcha is completed
    function hCaptcha() {
        return grecaptcha && grecaptcha.getResponse().length !== 0;
    }

    // Click the "claim" button if it exists and hCaptcha is completed
    function clickClaimButton() {
        if (document.querySelector('input[name="claim"]') && hCaptcha()) {
            document.querySelector('input[name="claim"]').click();
        }
    }

    // Call clickClaimButton function after 50 seconds
    const delay = 60 * 1000;
    setTimeout(clickClaimButton, delay);

    // Reload the page after 60 seconds
    const reloadDelay = 70 * 1000;
    setTimeout(function() {
        location.reload();
    }, reloadDelay);
})();