im not good with scripts. ive tried messing with this. I just need this auto claim script to work. whoever made it wont answer for 3 days but if anybody could get this to work and cycle through the cryptos really appreciate it. also need it to loop over and over or make it so i can add a couple more sites.
// ==UserScript==
// u/nameGlobal Reviewz Auto Faucet Claim
// u/namespacehttp://tampermonkey.net/
// u/description Auto Claim Multiple coins https://globalreviewz.com/
// u/author
// u/matchhttps://globalreviewz.com/faucet/
// u/iconhttps://www.google.com/s2/favicons?domain=globalreviewz.com
// u/grantGM_info
// u/grantGM_setValue
// u/grantGM_getValue
// u/grantGM_openInTab
// u/grantwindow.onurlchange
// u/license MIT
// u/note----------------------------------------------------------------------------------------------------------------------------------------------------------------
// u/noteEdit Your Email at line 26
// u/note----------------------------------------------------------------------------------------------------------------------------------------------------------------
// Copyright (c) 2018 Eugene Nouvellieu <eugenox\_gmail\_com>
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of
// this software and associated documentation files (the "Software"), to deal in
// the Software without restriction, including without limitation the rights to
// use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
// of the Software, and to permit persons to whom the Software is furnished to do
// so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all
// copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE
// ==/UserScript==
(function() {
'use strict';
var faucetPayIOEmail = "";
// -- do not edit beyond this point --
var timeInterval = 20000; //1000 ms = 1 second.
var myVar;
var coin = "BTC";
var fpAddressSelctor = "#post-1506 > div > div > form > div > div > input";
var fpAddressBtnSelctor = "#post-1506 > div > div > form > div > div > div > button";
var logedLabelSelector = "#post-1506 > div > div > nav > b";
var suspiciousActivitiy = "#post-1506 > div > div > div.alert.alert-danger";
var randomWaitTime = Math.floor(Math.random() * 90);
window.addEventListener('load', function() {
//loggin
if (document.querySelector(fpAddressSelctor)){
document.querySelector(fpAddressSelctor).value = faucetPayIOEmail;
setTimeout(function(){ document.querySelector(fpAddressBtnSelctor).click(); }, 1000);
} else if (document.querySelector(fpAddressBtnSelctor).innerHTML == "You has been suspended for suspicious activitiy."){
throw new Error("They caught you!");
} else {
setTimeout(function() {
location.reload();
}, randomWaitTime*1000+4000);
}
//Logged
setTimeout(function() {
CountDown(randomWaitTime, "")
}, randomWaitTime*1000+2000);
if (document.querySelector(logedLabelSelector).innerHTML.substring(0, 9) == "Logged as"){
console.log("Logged");
// BTC FAUCET
var btcBtnSelector = "#post-1506 > div > div > div > div:nth-child(3) > div > div > div > div > div:nth-child(4) > button";
var btcBtnCaptchaClaimSelector = "#captchare > input.btn.btn-lg.btn-danger";
if (coin == "BTC")
if (document.querySelector(btcBtnSelector).innerHTML == "Claim Now"){
setTimeout(function(){ console.log("Trying bitcoin"); }, 1000);
setTimeout(function(){ document.querySelector(btcBtnSelector).click(); }, 1000);
let myVar = setInterval(checkCaptcha, timeInterval);
function checkCaptcha() {
console.log("Checking Captcha....");
if(grecaptcha.getResponse().length !== 0){
console.log("The captcha has been already solved");
document.querySelector(btcBtnCaptchaClaimSelector).click();
console.log("Claim!!");
clearInterval(myVar);
}
}
} else {
console.log("Bitcoin not avalible");
setTimeout(function() {
CountDown(randomWaitTime, "BTC")
}, randomWaitTime*1000+2000);
coin = "ETH"
}
// ETH FAUCET
var ethBtnSelector = "#post-1506 > div > div > div.container > div:nth-child(3) > div:nth-child(2) > div > div > div > div:nth-child(4) > button";
var ethBtnCaptchaClaimSelector = "#captchare > input.btn.btn-lg.btn-danger";
if (coin == "ETH")
if (document.querySelector(ethBtnSelector).innerHTML == "Claim Now"){
setTimeout(function(){ console.log("Trying Ethereum"); }, 1000);
setTimeout(function(){ document.querySelector(ethBtnSelector).click(); }, 1000);
let myVar = setInterval(checkCaptcha, timeInterval);
function checkCaptcha() {
console.log("Checking Captcha....");
if(grecaptcha.getResponse().length !== 0){
console.log("The captcha has been already solved");
document.querySelector(ethBtnCaptchaClaimSelector).click();
console.log("Claim!!");
clearInterval(myVar);
}
}
} else {
console.log("Ethereum not avalible");
setTimeout(function() {
CountDown(randomWaitTime, "ETH")
}, randomWaitTime*1000);
coin = "BNB";
}
// BNB FAUCET
var bnbBtnSelector = "#post-1506 > div > div > div.container > div:nth-child(2) > div:nth-child(2) > div > div > div > div:nth-child(4) > button";
var bnbBtnCaptchaClaimSelector = "#captchare > input.btn.btn-lg.btn-danger";
if (coin == "BNB")
if (document.querySelector(bnbBtnSelector).innerHTML == "Claim Now"){
setTimeout(function(){ console.log("Trying Binance"); }, 1000);
setTimeout(function(){ document.querySelector(bnbBtnSelector).click(); }, 1000);
let myVar = setInterval(checkCaptcha, timeInterval);
function checkCaptcha() {
console.log("Checking Captcha....");
if(grecaptcha.getResponse().length !== 0){
console.log("The captcha has been already solved");
document.querySelector(bnbBtnCaptchaClaimSelector).click();
console.log("Claim!!");
clearInterval(myVar);
}
}
} else {
console.log("Binance not avalible");
randomWaitTime = Math.floor(Math.random() * 20);
setTimeout(function() {
CountDown(randomWaitTime, "BNB")
}, randomWaitTime*1000);
coin = "LTC";
}
// LTC FAUCET
var ltcBtnSelector = "#post-1506 > div > div > div.container > div:nth-child(2) > div:nth-child(1) > div > div > div > div:nth-child(4) > button";
var ltcBtnCaptchaClaimSelector = "#captchare > input.btn.btn-lg.btn-danger";
if (coin == "LTC")
if (document.querySelector(ltcBtnSelector).innerHTML == "Claim Now"){
setTimeout(function(){ console.log("Trying Litecoin"); }, 1000);
setTimeout(function(){ document.querySelector(ltcBtnSelector).click(); }, 1000);
let myVar = setInterval(checkCaptcha, timeInterval);
function checkCaptcha() {
console.log("Checking Captcha....");
if(grecaptcha.getResponse().length !== 0){
console.log("The captcha has been already solved");
document.querySelector(ltcBtnCaptchaClaimSelector).click();
console.log("Claim!!");
clearInterval(myVar);
}
}
} else {
console.log("Litecoin not avalible");
randomWaitTime = Math.floor(Math.random() * 20);
setTimeout(function() {
CountDown(randomWaitTime, "LTC")
}, randomWaitTime*1000);
coin = "TRX";
}
// TRX FAUCET
var trxBtnSelector = "#post-1506 > div > div > div.container > div:nth-child(2) > div:nth-child(1) > div > div > div > div:nth-child(4) > button";
var trxBtnCaptchaClaimSelector = "#captchare > input.btn.btn-lg.btn-danger";
if (coin == "TRX")
if (document.querySelector(trxBtnSelector).innerHTML == "Claim Now"){
setTimeout(function(){ console.log("Trying Tron"); }, 1000);
setTimeout(function(){ document.querySelector(trxBtnSelector).click(); }, 1000);
let myVar = setInterval(checkCaptcha, timeInterval);
function checkCaptcha() {
console.log("Checking Captcha....");
if(grecaptcha.getResponse().length !== 0){
console.log("The captcha has been already solved");
document.querySelector(trxBtnCaptchaClaimSelector).click();
console.log("Claim!!");
clearInterval(myVar);
}
}
} else {
console.log("Tron not avalible");
randomWaitTime = Math.floor(Math.random() * 20);
setTimeout(function() {
CountDown(randomWaitTime, "TRX")
}, randomWaitTime*1000);
coin = "DOGE";
}
// DOGE FAUCET
var dgeBtnSelector = "#post-1506 > div > div > div.container > div:nth-child(1) > div:nth-child(1) > div > div > div > div:nth-child(4) > button";
var dgeBtnCaptchaClaimSelector = "#captchare > input.btn.btn-lg.btn-danger";
if (coin == "DOGE")
if (document.querySelector(dgeBtnSelector).innerHTML == "Claim Now"){
setTimeout(function(){ console.log("Trying Doge"); }, 1000);
setTimeout(function(){ document.querySelector(dgeBtnSelector).click(); }, 1000);
let myVar = setInterval(checkCaptcha, timeInterval);
function checkCaptcha() {
console.log("Checking Captcha....");
if(grecaptcha.getResponse().length !== 0){
console.log("The captcha has been already solved");
document.querySelector(dgeBtnCaptchaClaimSelector).click();
console.log("Claim!!");
clearInterval(myVar);
}
}
} else {
console.log("Doge not avalible");
randomWaitTime = Math.floor(Math.random() * 20);
setTimeout(function() {
CountDown(randomWaitTime, "DOGE")
}, randomWaitTime*1000);
coin = "xxx";
}
setTimeout(function() {
location.reload();
}, randomWaitTime*1000+4000);
} else {
setTimeout(function() {
location.reload();
}, 90*1000);
}
}, false);
function CountDown (t, coin){
var timeleft = t;
var downloadTimer = setInterval(function(){
if(timeleft <= 0){
clearInterval(downloadTimer);
return true;
}
//console.log(timeleft+ " - "+coin);
timeleft -= 1;
}, 1000);
}
})();
No comments:
Post a Comment