Skip to content

Instantly share code, notes, and snippets.

@kjivan
Last active March 6, 2022 17:24
Show Gist options
  • Save kjivan/f75968eb8f304146587a17ec93e080a7 to your computer and use it in GitHub Desktop.
Save kjivan/f75968eb8f304146587a17ec93e080a7 to your computer and use it in GitHub Desktop.
// Get credit card bank statements
[
...document.querySelectorAll("i[id$='requestThisDocumentLink-download']"),
].forEach((v, i) => setTimeout(() => v.click(), 2500 * i));
// Get savings/checking account statements
[
...document.querySelectorAll("i[id$='downloadDocumentDropdown-icon']"),
].forEach((v, i) =>
setTimeout(() => {
v.click();
document.querySelector("[id$='downloadPDFOption']").click();
setTimeout(() => v.click(), 1000)
}, 3500 * i)
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment