Greasy Fork is available in English.

cryptofaucet.club | Auto Claim Faucet

https://cryptofaucet.club/?r=98629

// ==UserScript==
// @name        cryptofaucet.club | Auto Claim Faucet
// @namespace   auto.claim.faucet
// @description https://cryptofaucet.club/?r=98629
// @author      MrBug
// @version     0.2
// @icon        https://www.google.com/s2/favicons?sz=64&domain=cryptofaucet.club
// @antifeature  referal-link
// @license     MIT
// @match       https://cryptofaucet.club/*
// ==/UserScript==
/*

███╗   ███╗██████╗    ██████╗ ██╗   ██╗ ██████╗     ███████╗ █████╗ ██╗   ██╗ ██████╗███████╗████████╗    ███████╗ ██████╗██████╗ ██╗██████╗ ████████╗
████╗ ████║██╔══██╗   ██╔══██╗██║   ██║██╔════╝     ██╔════╝██╔══██╗██║   ██║██╔════╝██╔════╝╚══██╔══╝    ██╔════╝██╔════╝██╔══██╗██║██╔══██╗╚══██╔══╝
██╔████╔██║██████╔╝   ██████╔╝██║   ██║██║  ███╗    █████╗  ███████║██║   ██║██║     █████╗     ██║       ███████╗██║     ██████╔╝██║██████╔╝   ██║
██║╚██╔╝██║██╔══██╗   ██╔══██╗██║   ██║██║   ██║    ██╔══╝  ██╔══██║██║   ██║██║     ██╔══╝     ██║       ╚════██║██║     ██╔══██╗██║██╔═══╝    ██║
██║ ╚═╝ ██║██║  ██║██╗██████╔╝╚██████╔╝╚██████╔╝    ██║     ██║  ██║╚██████╔╝╚██████╗███████╗   ██║       ███████║╚██████╗██║  ██║██║██║        ██║
╚═╝     ╚═╝╚═╝  ╚═╝╚═╝╚═════╝  ╚═════╝  ╚═════╝     ╚═╝     ╚═╝  ╚═╝ ╚═════╝  ╚═════╝╚══════╝   ╚═╝       ╚══════╝ ╚═════╝╚═╝  ╚═╝╚═╝╚═╝        ╚═╝

*/

(function(){
    'use strict';

    var email = 'email@email.com';
    var password = '1234';
    var selectcoin = 'trx';

    function onDocumentReady(fn) {
        if (document.readyState != "loading") {
            fn();
        } else {
            document.addEventListener("DOMContentLoaded", fn);
        }
    }

    onDocumentReady(function() {
        let check_address = 'https://cryptofaucet.club/claim/';
        function isCaptchaChecked() {
            return (
              (grecaptcha && grecaptcha.getResponse().length > 0)
            );
        }


        if(document.body.innerText.includes("Welcome to CryptoFaucet")){
            if(!window.location.href.includes("?r=98629")){
                location.replace("?r=98629")
            }
            if(window.location.href.includes("?r=98629")){
                location.href = (check_address + selectcoin + '/')
            }
        }
        if(location.href.includes(check_address + selectcoin + '/')){
            let login = setInterval(function(){
                let check_page = document.querySelector('.welc');
                let emailfield = document.querySelector('input[name="email"]');
                let passfield = document.querySelector('input[name="pass"]');
                let submitbutton = document.querySelector('input[type="submit"]');

                if(check_page && emailfield && passfield && (emailfield.value !== email || passfield.value !== password)){
                    emailfield.value = email
                    passfield.value = password
                }
                if(emailfield.value == email && passfield.value == password && submitbutton && isCaptchaChecked()){
                    submitbutton.click();
                    clearInterval(login);
                }
            },5000);

            setTimeout(function(){
                let Button = document.querySelector('input[type="button"]');
                let claimleft = document.body.innerHTML.includes("You made 120 claims today");
                if(claimleft){
                    window.close();
                } else if (Button){
                    Button.click();
                }
            },3000);

            setTimeout(function(){
                location.reload();
            },60000);
        }

    });
})();