rodrigoasd / WAX Auto Accept Signing

// ==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/
// @match        https://all-access.wax.io/cloud-wallet/login/
// @grant        none
// @license      MIT
// ==/UserScript==


function goone (){
setTimeout(function(){
var xPathRes = document.evaluate('/html/body/div/div/section/div[2]/div/div[5]/button/div', document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
var x2 = document.evaluate('/html/body/div/div/section/div[2]/div/div[6]/button/div', document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
if (xPathRes == null){
    if (x2 == null){
        console.log('Repeating...')
        goone()
    }
    else {
        x2.click();
        goone()
    }
}
else {
console.log('clicking');
xPathRes.click();
goone()}}
, 3000);}

goone();