Skip to content

Instantly share code, notes, and snippets.

Created June 13, 2022 19:28
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do? batch send script to run on the page of "Actions" of the token
// between the `` you add all the address you want to send to
async function main() {
$button = [...document.querySelectorAll("button")].filter(
(b) => b.innerText === "Add recipient"
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 }));
await new Promise((s) => setTimeout(s, 200));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment