Greasy Fork is available in English.

Unlimited Crypto Faucet

Claim Free Coin

< Unlimited Crypto Faucetについてのフィードバック

レート:良 – スクリプトは良好に動作する

§
投稿日: 2023/01/27

I noted a 404 error on some of the coins in the list.
I think I fixed that part.

(function() {
'use strict';

let faucetpay_email = "email_address";

let main_address = window.location.origin;
let coins = ["BNB", "BTC", "DGB", "DODGE", "LTC", "SOL", "TRX"];
let currentCoinIndex = 0;

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.origin === main_address){

setInterval(function() {
if (document.querySelector("#email")) {
document.querySelector("#email").value = faucetpay_email;
}
}, 1000);

setInterval(function() {
if (isCaptchaChecked()) {
if (document.querySelector(".btn-block[type='submit']")) {
document.querySelector(".btn-block[type='submit']").click();
}
}
}, 6000);
}

if (window.location.href.includes("/user/dashboard") || window.location.href.includes("/User/Dashboard")) {
setTimeout(() => {
window.location.replace(main_address + "/user/faucet/" + coins[currentCoinIndex]);
}, 30000); //60000
}

setInterval(function() {
if (document.querySelector("h1") && document.querySelector("h1").innerText === "404") {
let currentCoin = window.location.href.split("/")[5];
let coins = ["BNB", "BTC", "DGB", "DODGE", "LTC", "SOL", "TRX"];
let currentIndex = coins.indexOf(currentCoin);
if(currentIndex === coins.length - 1) {
currentIndex = 0;
} else {
currentIndex++;
}
window.location.replace(main_address + "/user/faucet/" + coins[currentIndex]);
}
}, 1000);

setInterval(function() {
if (window.location.href.includes("/user/faucet/")){
if (isCaptchaChecked()) {
if (document.querySelector(".btn-block[type='submit']") && !visibleCheck(document.querySelector("#timerDiv.alert-danger #box h1"))) {
document.querySelector(".btn-block[type='submit']").click();
}
}
}
if(document.querySelector("#timerDiv.alert-danger #box h1")){
if(visibleCheck(document.querySelector("#timerDiv.alert-danger #box h1"))){
let currentCoin = window.location.href.split("/")[5];
let coins = ["BNB", "BTC", "DGB", "DODGE", "LTC", "SOL", "TRX"];
let currentIndex = coins.indexOf(currentCoin);
if(currentIndex === coins.length - 1) {
currentIndex = 0;
} else {
currentIndex++;
}
window.location.replace(main_address + "/user/faucet/" + coins[currentIndex]);
}
}
}, 5000);
})();

vikiweb作者
§
投稿日: 2023/01/27

Thanks @Wayne Fourie

§
投稿日: 2023/02/11

Tankyou

返信を投稿

返信を投稿するにはログインしてください。