freeth.in [Auto Faucet]

https://freeth.in/?r=26286 : Made in Trinidad

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         freeth.in [Auto Faucet]
// @namespace    free.eth.auto.faucet
// @version      0.1
// @description  https://freeth.in/?r=26286 : Made in Trinidad
// @author       stealtosvra
// @match        https://freeth.in/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=controlc.com
// @grant        none
// @license      MIT
// ==/UserScript==
 
(function() {
    'use strict';
 
    function hCaptcha() {return window.grecaptcha && window.grecaptcha.getResponse().length !== 0;}
    function checkAndClickRollButton() {
        if (hCaptcha()) {var rollButton = document.getElementById('free_play_form_button');
            if (!rollButton) {rollButton = document.querySelector('.free_play_element.new_button_style.profile_page_button_style');}
            if (rollButton) {rollButton.click();} else {console.error('Unable to find the "ROLL!" button');}}}
 
    setInterval(checkAndClickRollButton, 10000);
 
    var countdownTimer = 300; // seconds
    var countdownInterval = setInterval(function() {
        countdownTimer--;
 
        if (countdownTimer <= 0) {
            redirectToWebsite();
            clearInterval(countdownInterval);
        }
    }, 1000);
 
    function redirectToWebsite() {window.location.href = 'https://freeth.in';}
 
})();