Last active
August 2, 2017 18:05
-
-
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.
This file contains hidden or 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
window.setInterval(() => document.querySelector('input[value="Move to Cart"]').click(), 250); |
This file contains hidden or 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
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