https://ourcoincash.xyz/?r=6946
当前为
// ==UserScript==
// @name ourcoincash.xyz | Auto Claim Faucet, PTC Support
// @namespace auto.claim.faucet
// @description https://ourcoincash.xyz/?r=6946
// @author SalahDesDz
// @version 0.1
// @icon https://www.google.com/s2/favicons?sz=64&domain=ourcoincash.xyz
// @grant unsafeWindow
// @grant GM_openInTab
// @grant GM_setValue
// @grant GM_getValue
// @grant GM_xmlhttpRequest
// @grant window.onurlchange
// @grant window.close
// @license MIT
// @match https://ourcoincash.xyz/*
// ==/UserScript==
(function(){
'use strict';
var email = '[email protected]' // Type here your e-mail address
var password ='password' // Type here your password
var dailyClaims = 100 // Type here the amount of faucet claims you want to do
let check_address = 'https://ourcoincash.xyz'
if(window.location.href == (check_address) || window.location.href == (check_address + '/')){
let loginButton = document.querySelector("a[href='https://ourcoincash.xyz/login']")
setTimeout(function(){
if(loginButton){
location.href = 'login'
}
},3000)
}
if(window.location.href == (check_address + '/login')){
let login = setInterval(function(){
let emailfield = document.querySelector("#email")
let passfield = document.querySelector("#password")
let submitButton = document.querySelector("button[type='submit']")
if(emailfield && passfield && (emailfield.value !== email || passfield.value !== password)){
emailfield.value = email
passfield.value = password
}
if(emailfield.value == email && passfield.value == password && submitButton && grecaptcha && grecaptcha.getResponse().length >0){
submitButton.click();
clearInterval(login)
}
},3000);
}
if(window.location.href == (check_address + '/dashboard')){
setTimeout(function redir(){
location.href = 'ptc'
},10000);
}
if(window.location.href.includes(check_address + '/faucet')){
let claim = setInterval(function(){
let button = document.querySelector("button[type='submit']:not([disabled])")
let leftClaims = document.querySelectorAll("h4.lh-1.mb-1")[3].innerText.split("/")[0]
let totalClaims = document.querySelectorAll("h4.lh-1.mb-1")[3].innerText.split("/")[1]
if(leftClaims > (totalClaims - dailyClaims)){
if(button && button.willValidate == true && grecaptcha && grecaptcha.getResponse().length >0){
button.click()
clearInterval(claim)
}
}
if(leftClaims < (totalClaims - dailyClaims) || leftClaims == (totalClaims - dailyClaims)){
location.href = 'achievements'
clearInterval(claim)
}
},3000);
}
if(window.location.href == (check_address + '/ptc')){
setTimeout(function(){
let button = document.querySelector("div.card-body button.btn-primary")
if(button){
button.onclick()
}
if(!button){
location.href = 'faucet'
}
},3000)
}
if(window.location.href.includes('/view/')){
let view = setInterval(function(){
let timer = document.querySelector('#ptcCountdown')
let button = document.querySelector('form button#verify')
if (button && grecaptcha && grecaptcha.getResponse().length >0 && timer.innerText == '0 second'){
setTimeout(function(){
button.click()
},2000)
clearInterval(view)
}
},3000)
}
if(window.location.href == (check_address + '/achievements')){
setTimeout(function(){
let button = document.querySelector("form:not(.p-3) button[type='submit']:not([disabled])")
if(button){
button.parentElement.submit()
}
if(!button){
location.href = 'dashboard'
}
},3000)
}
if(window.location.href == ('auto')){
setTimeout(function(){
let alert = document.querySelector("div.alert")
if(alert && alert.innerText.includes("enough")){
location.href = 'dashboard'
}
},3000)
}
let ok = setInterval(function(){
let confirmButton = document.querySelector("button[type='button'][class='swal2-confirm swal2-styled']");
if(confirmButton){
confirmButton.click()
clearInterval(ok)
}
},1000)
})();