Skip to content

Instantly share code, notes, and snippets.

@gre
Created June 13, 2022 19:28
Show Gist options
  • Save gre/886ee993cccdea33490f1596fca788ea to your computer and use it in GitHub Desktop.
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
// 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