Maksyme / Unlimited Cryptocurrencies (FaucetList.top faucets)

// ==UserScript==
// @name            Unlimited Cryptocurrencies (FaucetList.top faucets)
// @name:fr         Cryptomonnaies illimitées (FaucetList.top faucets)
// @namespace       http://tampermonkey.net/
// @version         1.2.1
// @description     Earn unlimited free cryptocurrencies on FaucetList.top faucets using this script.
// @description:fr  Gagner gratuitement et sans limite de la cryptomonnaie sur les faucets de FaucetList.top en utilisant ce script.
// @author          Maksyme
// @copyright       2021, Maksyme
// @licence         MIT
// @match           https://ltcfaucet.top/*
// @match           https://dogecoinfaucet.top/*
// @match           https://bnbfaucet.top/*
// @match           https://tronfaucet.top/*
// @match           https://ethfaucet.top/*
// @match           https://zecfaucet.net/*
// @match           https://freedgb.club/*
// @match           https://freedash.club/*
// @match           https://freebch.club/*
// @match           https://dogeforfree.club/*
// @icon            https://ltcfaucet.top/ltc-favicon.png
// @grant           none
// ==/UserScript==

(function() {
    'use strict';

    // IF YOU HAVE ANY QUESTIONS, ASK ME! :)
    // Note: Before using this script, you need to install the hCaptcha Solver in order to solve it automatically.
    // If you have not installed already, please install the script before proceeding further. Link below:
    // https://greasyfork.org/en/scripts/425854-hcaptcha-solver
    // Credits: ngageub (https://greasyfork.org/en/users/767752-engageub).

    // Enter Your FaucetPay Faucet Address below as mentioned in the example and save the entered text in a file.
    // Example: var dogecoin = "D6tJGhJvCPhiGiyj8eJ8gFoPUiUoDSc6VR";

    // ETHEREUM:
    // Generate wallet on https://vanity-eth.tk/
    // Link address on FaucetPay: https://faucetpay.io/page/user-admin/linked-addresses ; Instructions:
    // - Paste address in "Address" input
    // - Select "Ethereum (ETH)" in "Coin" list selection
    // - Click on "Link" button.
    // Paste linked address below:
    var ethereum = "0x13bef644d72ffa01b12d9e2d3b553ae5700fb5f4";
    var bitcoincash = "bitcoincash:qqpcpwvgfesqwz92uzk3arn0dm2sxupcys5twxsq2j";
    var dogecoin = "D6tJGhJvCPhiGiyj8eJ8gFoPUiUoDSc6VR";
    var litecoin = "MJzKGT4QsGNs3YTmBdTiN7wkoVBT4oP27J";
    var digibyte = "DHcXQzN5aCrcQYdHwcPayN6CzYArzQJMZA";
    var dash = "XhjDQvF7N3a6BJ5AGqqAVbsATLJMv1b1nq";
    var tether = "THbsbujrz9JBm7a25PBsihUGz7us6vDx9e";
    var tron = "THbsbujrz9JBm7a25PBsihUGz7us6vDx9e";
    var binance = "0x0094e65Efb35ecdb0f76470893930a4847Ff8178";
    var zcash = "t1Pqd6zsaYi5kxcJspk8zMYP5WhtdhRvy8n";

    // Support me! Please, do not remove reflinks :) I earn 10-50% referral commission.
    var data = [
        {url : "https://dogecoinfaucet.top/?r=DBcsGaiydtGq1ZwRq37WdVhxsjPeV7rmpt", coin : "dogecoin", address : dogecoin},
        {url : "https://ltcfaucet.top/?r=MTAdkN4AiofcVHGXABVTwVrdoSKd8JMukD", coin : "ltc", address : litecoin},
        {url : "https://tronfaucet.top/?r=TNuBBL7Uc4sXiyM3ATabH11hPDm5jgyyAu", coin : "tron", address : tron},
        {url : "https://bnbfaucet.top/?r=0x9FAAFF75DdaCBD94A42016ae475B33dEf35C88c0", coin : "bnb", address : binance},
        {url : "https://ethfaucet.top/?r=0x2Ed6c3374BAeB3188F0336f98F8316AAf1711987", coin : "eth", address : ethereum},
        {url : "https://zecfaucet.net/?r=t1KiSpXKHvqzqGMurk9v1br3jwsKyzP352K", coin : "zec", address : zcash},
        {url : "https://freedgb.club/?r=DQwubxGXNRk7mQWTgSSyzaR7xDTBrQGUmQ", coin : "dgb", address : digibyte},
        {url : "https://freedash.club/?r=XiQ3o5ToPUpchVjupeEuMkm7bmtkCqoNSR", coin : "dash", address : dash},
        {url : "https://freebch.club/?r=bitcoincash:qqzyuqawk26t5q44hwlp6ewwsrf8wnl5lsaja5jmr6", coin : "bch", address : bitcoincash},
        {url : "https://dogeforfree.club/?r=DBcsGaiydtGq1ZwRq37WdVhxsjPeV7rmpt", coin : "doge", address : dogecoin}
    ];

    var address = "";
    var nextURL = "";
    var count = 0;

    for (let value of Object.values(data)) {
        count = count + 1;
        if ((window.location.href.includes("https://" + value.coin + "faucet.top/"))
            || (window.location.href.includes("https://" + value.coin + "faucet.net/"))
            || (window.location.href.includes("https://free" + value.coin + ".club/"))
            || (window.location.href.includes("https://" + value.coin + "forfree.club/"))) {
            address = value.address;
            if (count == data.length) {
                count = 0;
                nextURL = data[count].url;
            } else {
                nextURL = data[count].url;
            }
            break;
        }
    }

    setTimeout(function() {
        document.querySelector("input[name=a]").value = address;

        if (!document.querySelector(".h-captcha")) {
            document.querySelector("input[type=submit]").click();
        }
    }, 1000);

    // If hCaptcha is asked.
    setInterval(function() {
        if (document.querySelector(".h-captcha")) {
            if (document.querySelector(".h-captcha > iframe").getAttribute("data-hcaptcha-response").length > 0) {
                document.querySelector("input[type=submit]").click();
            }
        }
    }, 1000);

    // If success.
    setInterval(function() {
        if (document.querySelector("p[class=success]").innerText.includes("transferred")) {
            window.location.href = nextURL;
        }
    }, 1000);

    // If has timer / Address do not work / Suspicous activity / No funds / Limit.
    setInterval(function() {
        if ((document.querySelector("p[class=warn]").innerText.includes("Time"))
            || (document.querySelector("p[class=warn]").innerText.includes("Address"))
            || (document.querySelector("p[class=warn]").innerText.includes("Suspicious"))
            || (document.querySelector("p[class=warn]").innerText.includes("No funds"))
            || (document.querySelector("p[class=warn]").innerText.includes("claim only"))) {
            window.location.href = nextURL;
        }
    }, 1000);

    // Do not remove!
    if (!data[count].url.includes("?r=")) {
        window.location.href = "https://www.google.com/";
        window.alert("URLs has been edited! Do not remove reflinks!");
    }

})();