Last active
December 2, 2021 09:22
-
-
Save meddokss/d1aa05ba9217babf764556119cc43ff4 to your computer and use it in GitHub Desktop.
WAX Auto Accept
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name WAX Auto Accept | |
// @namespace Meddoks | |
// @version 2.1.0 | |
// @description Auto Approve after captchas done | |
// @author Meddoks | |
// @match https://all-access.wax.io/cloud-wallet/signing/ | |
// @grant none | |
// Если я решил чью то боль, буду благодарен если отправите парочку ваксов на акк == .4krq.wam | |
// ==/UserScript== | |
( async function() { | |
let delay = async (ms) => { | |
return new Promise((res) => setTimeout(() => { | |
res(true) | |
} , ms)) | |
} | |
let closeApproveWindow = async () => { | |
await delay(30000) | |
console.log('Approve window closed') | |
let denyButton = document.querySelector('.button-primary.button-medium.mt-2.text-1-5rem.text-bold.mx-1'); | |
if(denyButton){ | |
denyButton.click(); | |
} | |
} | |
let count = 1; | |
let maxTries = 12; | |
let as = async (ms) => { | |
console.log(`%c Start waiting approve button=${ms/1000}s`,'color: blue') | |
count++; | |
await delay(ms) | |
let tags_i = document.querySelector('.button.button-secondary.button-large.text-1-5rem.text-bold.mx-1'); | |
if(tags_i && !tags_i.disabled && count<maxTries){ | |
console.log(`%c Approved`,'color: green') | |
tags_i.click(); | |
} | |
else if(count<maxTries){ | |
await as(count*1000) | |
} | |
else { | |
console.log(`%c Wait end, approve canceled`,'color: red') | |
} | |
} | |
await as(10000); | |
await closeApproveWindow() | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment