Forked from MichaelLawton/deleteAmazonSavedItems.js
Last active
August 3, 2023 14:38
-
-
Save allegrabottlik/280dbe63aa0a07b788c81f07382981b9 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
## currently not working ## | |
function moveToWishList() { | |
var query = document.querySelectorAll("#sc-saved-cart input[value='Move to Wish List']") | |
if (query.length) { | |
query[0].click(); | |
} | |
var query2 = document.querySelectorAll("#registry-3O6MPC8BWUEPE a") | |
if (query2.length) { | |
query2[0].click(); | |
} | |
if (query.length > 1) { | |
setTimeout(moveToWishList,10000); | |
} | |
else { | |
console.log('Finished'); | |
} | |
} | |
moveToWishList(); |
Turn off any Chrome extensions running on the page to speed up
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
try using zoom in browser to get more items per page