-
-
Save glumb/2f30f461170c4f67bdfe6abf1023e089 to your computer and use it in GitHub Desktop.
A script that continually clicks the generate new address button until you tell it to stop.
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
var genAddrId = genAddrId || undefined; | |
clearInterval(genAddrId); | |
var btnAddr = document.getElementById("generate-address-btn"); | |
function genNewAddr() | |
{ | |
if (btnAddr.innerText[2] != "D") return; | |
btnAddr.click(); | |
setTimeout(function() { btnAddr.click(); }, 1000); | |
} | |
function stop() | |
{ | |
console.log("\n\n\nOK, will now stop after this final attach has been completed!\n\n\n"); | |
clearInterval(genAddrId); | |
} | |
function start() | |
{ | |
console.log("\n\n\nStarting automatic address generation\n\n\n"); | |
btnAddr.click(); | |
setTimeout(function() { btnAddr.click(); }, 1000); | |
genAddrId = setInterval(genNewAddr, 5000); | |
} | |
start(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment