Skip to content

Instantly share code, notes, and snippets.

@liddiard
Last active August 2, 2017 18:05
Show Gist options
  • Save liddiard/2e0482619cbd66da2cc1be0e874c4613 to your computer and use it in GitHub Desktop.
Save liddiard/2e0482619cbd66da2cc1be0e874c4613 to your computer and use it in GitHub Desktop.
One-liner to press "Save for later" or "Move to cart" on all the items in your Amazon cart. Will start throwing errors when all items have been saved but whatever. `querySelectorAll + forEach` solution did not work.
window.setInterval(() => document.querySelector('input[value="Move to Cart"]').click(), 250);
window.setInterval(() => document.querySelector('input[value="Save for later"]').click(), 250);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment