Created
June 13, 2022 19:28
-
-
Save gre/886ee993cccdea33490f1596fca788ea to your computer and use it in GitHub Desktop.
objkt.com batch send script to run on the page of "Actions" of the token
This file contains 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
// between the `` you add all the address you want to send to | |
addresses=``.split("\n").map(_=>_.trim()).filter(Boolean) | |
async function main() { | |
$button = [...document.querySelectorAll("button")].filter( | |
(b) => b.innerText === "Add recipient" | |
)[0]; | |
let i = 0; | |
for (a of addresses) { | |
const $amount = document.getElementById("amount_" + i); | |
const $address = document.getElementById("address_" + i); | |
$amount.value = "1"; | |
$amount.dispatchEvent(new Event("input", { bubbles: true })); | |
$address.value = a; | |
$address.dispatchEvent(new Event("input", { bubbles: true })); | |
i++; | |
$button.click(); | |
await new Promise((s) => setTimeout(s, 200)); | |
} | |
} | |
main(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment