Cryptoearnfaucet

Free bitcoin faucet

目前为 2023-03-08 提交的版本。查看 最新版本

// ==UserScript==
// @name         Cryptoearnfaucet
// @namespace    http://tampermonkey.net/
// @version      0.2
// @description  Free bitcoin faucet
// @author       vikiweb
// @match        https://cryptoearnfaucet.com/offer/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=cryptoearnfaucet.com
// @grant        none
// @license      MIT
// ==/UserScript==

(function() {
    'use strict';

    // Enter your email address on line 18 and Go to https://cryptoearnfaucet.com/offer/?r=93

    let email = ""
    let check_address = window.location.origin;

    // Check if captcha is checked
    function isCaptchaChecked() {
        return grecaptcha && grecaptcha.getResponse().length !== 0;
    }

    function visibleCheck(elm) {
        if(!elm.offsetHeight && !elm.offsetWidth) { return false; }
        if(getComputedStyle(elm).visibility === 'hidden') { return false; }
        return true;
    }


    if(window.location.href.includes(check_address) && document.querySelector("#hero h1")){
        window.location.replace(check_address +'/offer/login');
    }

    if (window.location.href.includes(check_address +'/offer/login')) {
        setInterval(function() {
            if (document.querySelector("#InputEmail")) {
                document.querySelector("#InputEmail").value = email;
            }
            if (document.querySelector("button[type='submit']")) {
                document.querySelector("button[type='submit']").click();
            }
        }, 6000);
    }

    if (window.location.href.includes(check_address +'/offer/dashboard')) {
        window.location.replace(check_address +'/offer/faucet');
    }

    if(window.location.href.includes(check_address +'/offer/faucet')){
        setInterval(function(){
            if(document.querySelector("#fauform button[type='submit']") && document.querySelector("#fauform input[type='text'].form-control.mb-3").value != ""){
                document.querySelector("#fauform button[type='submit']").click();
            }

            if(document.querySelector(".swal2-shown .swal2-popup .swal2-confirm")){
                document.querySelector(".swal2-shown .swal2-popup .swal2-confirm").click();
            }

            if(visibleCheck(document.querySelector(".next-button .btn.btn-primary"))){
                document.querySelector(".next-button .btn.btn-primary").click();
            }

        }, 10000)
    }

})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址