Greasy Fork is available in English.

Onlyfaucet Bot

auto login and auto claim rotator!

// ==UserScript==
// @name         Onlyfaucet Bot
// @namespace    onlyfaucet.com
// @version      20240530
// @description  auto login and auto claim rotator!
// @author       Script Bot Dev
// @match        https://onlyfaucet.com/*
// @icon         https://onlyfaucet.com/assets/images/favicon.ico
// @grant        none
// ==/UserScript==


var BOT = setInterval(function() {
   if(document.querySelector('a[data-target="#login"]')){
   document.querySelector('a[data-target="#login"]').click();
   document.querySelector("#InputEmail").value = "YOUEMAILFAUCETPAY@gmail.com";
   document.querySelector("form").submit();
       clearInterval(BOT);
   }
    if(document.querySelector('#continueBtn')){
       window.location.href = "https://onlyfaucet.com/faucet/currency/ada";
        clearInterval(BOT);
    }
if(document.querySelector("#fauform")){
    window.stop();
    document.querySelector("#fauform").submit();
                clearInterval(BOT);
}
 }, 500);

var redirect = setInterval(function() {
    var please = document.body.outerText.includes("Dont wait");
    var limite = document.body.outerText.includes("Daily claim limit");
    var semfundos = document.body.outerHTML.includes("The faucet does not have");

    var faucet = document.location.pathname;
    if(faucet.includes("/firewall") === true){
         if(document.querySelector("#recaptchav2 > div")){
             console.log("recaptcha");
            var recaptcha = document.querySelector("#g-recaptcha-response").value;
               if((recaptcha) && recaptcha > ""){
                document.querySelector("div > form").submit();
                   clearInterval(redirect);
            }
            }
         if(document.querySelector(".cf-turnstile")){
             console.log("cloudflare");
            var cloudflare = document.querySelector(".cf-turnstile > input").value;
            if((cloudflare) && cloudflare > ""){
                document.querySelector("div > form").submit();
                clearInterval(redirect);
            }
            }
        setTimeout(function(){document.querySelector("div > form").submit();}, 10000);

    }
    if(please === true || limite === true || semfundos === true){
        window.stop();
     if(faucet.includes("/ada")){
        window.location.href = "https://onlyfaucet.com/faucet/currency/ltc";
         clearInterval(redirect);
      }
      if(faucet.includes("/ltc")){
        window.location.href = "https://onlyfaucet.com/faucet/currency/doge";
         clearInterval(redirect);
      }
        if(faucet.includes("/doge")){
        window.location.href = "https://onlyfaucet.com/faucet/currency/usdt";
         clearInterval(redirect);
      }
        if(faucet.includes("/usdt")){
        window.location.href = "https://onlyfaucet.com/faucet/currency/sol";
         clearInterval(redirect);
      }
        if(faucet.includes("/sol")){
        window.location.href = "https://onlyfaucet.com/faucet/currency/trx";
         clearInterval(redirect);
      }
        if(faucet.includes("/trx")){
        window.location.href = "https://onlyfaucet.com/faucet/currency/bnb";
         clearInterval(redirect);
      }
        if(faucet.includes("/bnb")){
        window.location.href = "https://onlyfaucet.com/faucet/currency/bch";
         clearInterval(redirect);
      }
        if(faucet.includes("/bch")){
        window.location.href = "https://onlyfaucet.com/faucet/currency/dash";
         clearInterval(redirect);
      }
        if(faucet.includes("/dash")){
        window.location.href = "https://onlyfaucet.com/faucet/currency/dgb";
         clearInterval(redirect);
      }
        if(faucet.includes("/dgb")){
        window.location.href = "https://onlyfaucet.com/faucet/currency/eth";
         clearInterval(redirect);
      }
        if(faucet.includes("/eth")){
        window.location.href = "https://onlyfaucet.com/faucet/currency/fey";
         clearInterval(redirect);
      }
        if(faucet.includes("/fey")){
        window.location.href = "https://onlyfaucet.com/faucet/currency/btc";
         clearInterval(redirect);
      }
        if(faucet.includes("/btc")){
        window.location.href = "https://onlyfaucet.com/faucet/currency/ton";
         clearInterval(redirect);
      }
        if(faucet.includes("/ton")){
        window.location.href = "https://onlyfaucet.com/faucet/currency/xrp";
         clearInterval(redirect);
      }
        if(faucet.includes("/xrp")){
        window.location.href = "https://onlyfaucet.com/faucet/currency/zec";
         clearInterval(redirect);
      }
        if(faucet.includes("/zec")){
        window.location.href = "https://onlyfaucet.com/faucet/currency/matic";
         clearInterval(redirect);
      }

        if(faucet.includes("/matic")){
        window.location.href = "https://onlyfaucet.com/faucet/currency/xlm";
         clearInterval(redirect);
      }
      if(faucet.includes("/xlm")){
        window.location.href = "https://onlyfaucet.com/faucet/currency/ada";
         clearInterval(redirect);
      }
    }
},500);

setTimeout(function(){window.location.reload();},30000);