Last active
June 5, 2024 21:46
-
-
Save MichaelLawton/ec73c321d62d1b4eaf0f51ca478ccd92 to your computer and use it in GitHub Desktop.
Removes all Amazon saved for later items on the cart page. It will only remove visible items. You might want to scroll first to make more items visible. To use paste code in developer console (Ctrl+Shift+J or Cmd+Opt+J in Chrome) then press enter.
This file contains 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
function deleteSavedItems() { | |
var query = document.querySelectorAll("#sc-saved-cart input[value=Delete]") | |
if (query.length) { | |
query[0].click(); | |
} | |
if (query.length > 1) { | |
setTimeout(deleteSavedItems,100); | |
} | |
else { | |
console.log('Finished'); | |
} | |
} | |
deleteSavedItems(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Can we do/ add a similar script (direct or via Grease Monkey etc) or via an Extension to do this WishList action(s)?
https://webapps.stackexchange.com/questions/118938/amazon-wishlists-select-and-move-multiple-items-at-same-time-from-one-default
Amazon Wishlists: Select and Move multiple items at same time from One/ Default Wishlist to others?
Have collected a lot of items on Default Wishlist and would like to MOVE and organize them.
As shown below, one has to select each item one at time from a Default Wishlist to MOVE it to other ones to Organize them.
I was hoping there was some way to select multiple and have them MOVE together to another list - many at one go; I am guessing some kind "multi select" using Checkmarks or something else.
Thoughts & ideas welcome.
https://i.stack.imgur.com/JSJVt.png