Greasy Fork is available in English.
Loop claim faucet - All faucetpay coins
当前为
// ==UserScript==
// @name Bithub Faucet
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Loop claim faucet - All faucetpay coins
// @author Garcia
// @match https://bithub.win/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=bithub.win
// @grant GM_info
// @grant GM_setValue
// @grant GM_getValue
// @grant window.close
// @grant GM_openInTab
// @grant window.onurlchange
// @grant GM_xmlhttpRequest
// @license Crypto BR
// ==/UserScript==
//FAZ FAUCET
let botaoClicado = false; // define uma variável para controlar se o botão foi clicado ou não
const interval1o6 = setInterval(() => {
if (document.querySelector('button.mt-2.btn.btn-one').innerText === 'Collect Your Reward' && !botaoClicado) {
if (document.querySelector('.svg.captcha-selected')) {
document.querySelector('button.mt-2.btn.btn-one').click();
botaoClicado = true; // atualiza a variável para indicar que o botão foi clicado
clearInterval(interval1o6); // interrompe o intervalo
}
}
}, 8000);
//RESOLVE CLOUDFLARE
setTimeout (function(){
document.querySelector("#cf-stage > div.ctp-checkbox-container > label > span").click()
},5000);
//RESOLVE GPCAPTCHA
if(document.querySelector('#gpcaptcha')){
const captchaImgs = document.querySelectorAll('#gpcaptcha .svg-padding');
const hashes = [
{"Key": "M512 176.001C512 273.203"},
{"Flag": "M349.565 98.783C295.978"},
{"Heart": "M414.9 24C361.8 24 312"},
{"Car": "M499.991 168h-54.815l-7.854-20"},
{"Plane": "M472 200H360.211L256.013"},
{"House" :"M488 312.7V456c0 13.3-10.7"},
{"Cup":"M192 384h192c53 0 96-43"},
{"Tree" : "M377.33 375.429L293.906"},
{"Star" : "M259.3 17.8L194 150.2 47.9"},
{"Truck":"M624 352h-16V243.9c0-12.7-5"}
]
const selectedText = document.querySelector('#gpcaptcha p .text-capitalize').innerText.toLowerCase();
const checkHash = hashes.find(hash => Object.keys(hash)[0].toLowerCase() === selectedText);
const flagValue = checkHash ? Object.values(checkHash)[0] : null;
console.log(selectedText, flagValue)
function checkImages() {
Array.from(captchaImgs).forEach((img, i) => {
const svg = img.querySelector('svg path').getAttribute('d');
if (svg.startsWith(flagValue)) {
img.click()
console.log('Matched');
}else{
console.log('Doesnt match');
}
});
}
setInterval(function(){
checkImages();
},2000)
}
//Redirecionamento
const interval1o10 = setInterval(() => {
if (window.location.href.includes("https://bithub.win/faucet") && document.getElementById('minute') && !botaoClicado) {
location.reload(true);
botaoClicado = true; // atualiza a variável para indicar que o botão foi clicado
clearInterval(interval1o10); // interrompe o intervalo
}
}, 100000);
setInterval(() => {
location.reload(true);
}, 140000);