Skip to content

Instantly share code, notes, and snippets.

@likecyber
Last active May 20, 2021 02:03
Show Gist options
  • Save likecyber/5eb798ee18e6589bcc271da04fb95402 to your computer and use it in GitHub Desktop.
Save likecyber/5eb798ee18e6589bcc271da04fb95402 to your computer and use it in GitHub Desktop.
const delay = millis => new Promise((resolve, reject) => {
setTimeout(_ => resolve(), millis)
});
const userAccount = await wax.login();
unityInstance.SendMessage('Controller', 'Server_Response_LoginData', userAccount);
const account = userAccount;
await delay(10000);
while (true) {
await server_getBalance(account);
await server_getMineDelay(account);
minedelay = 1;
do {
minedelay = await getMineDelay(account);
await delay(minedelay);
} while (minedelay !== 0);
await server_claim(JSON.stringify(await background_mine(account)));
await delay(10000);
}
// ==UserScript==
// @name WAX Auto Accept Signing
// @namespace wax.io
// @version 1.0.0
// @description Auto Accept Signing for WAX.io
// @author Likecyber
// @match https://all-access.wax.io/cloud-wallet/signing/
// @grant none
// ==/UserScript==
(function () {
var WaitForReady = setInterval(function () {
var tags_i = document.getElementsByTagName("button");
for (var i = 0; i < tags_i.length; i++) {
if (tags_i[i].textContent == "Approve") {
var tags_j = document.getElementsByTagName("input");
for (var j = 0; j < tags_j.length; j++) {
if (tags_j[j].value == "remember") {
tags_j[j].click();
break;
}
}
tags_i[i].click();
clearInterval(WaitForReady);
break;
}
}
}, 100);
})();
@noLEAL
Copy link

noLEAL commented Apr 28, 2021

Hey friend how do you run this script? Use some program?

@jdjdjjdrjnsn
Copy link

how do you run this script?

@spy18292
Copy link

spy18292 commented May 9, 2021

cpu codeif(window.location.href == 'https://awhelper.com/'){
try{
if(parseInt(document.getElementsByClassName('progress-bar bg-info')[0].textContent) >= 90){
alert('90% CPU Running')
await sleep(1200000);
}

				if(parseInt(document.getElementsByClassName('progress-bar bg-info')[2].textContent) >= 90){
					alert('90% RAM Runnig')
					await sleep(1000);
				}
					
				var mine = document.getElementsByClassName('btn btn-block btn-primary mb-2');
				if(mine[0].textContent == 'Mine'){
					mine[0].click();
					await sleep(1000);
				}
				sw = 0;
			}
			catch(err){

ช้วยเอาเข้่าไปที

@spy18292
Copy link

spy18292 commented May 9, 2021

if(window.location.href == 'https://awhelper.com/'){
try{
if(parseInt(document.getElementsByClassName('progress-bar bg-info')[0].textContent) >= 90){
alert('90% CPU Running')
await sleep(1200000);
}

				if(parseInt(document.getElementsByClassName('progress-bar bg-info')[2].textContent) >= 90){
					alert('90% RAM Runnig')
					await sleep(1000);
				}
					
				var mine = document.getElementsByClassName('btn btn-block btn-primary mb-2');
				if(mine[0].textContent == 'Mine'){
					mine[0].click();
					await sleep(1000);
				}
				sw = 0;
			}
			catch(err){

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment