Last active
October 3, 2021 18:14
-
-
Save drench/5972614 to your computer and use it in GitHub Desktop.
Use this if your Amazon wishlist has mysterious items that are unhelpfully "no longer available". While on the offending wish list page, open your browser debugger console and run this to get a list of IDs for the "no longer available" items. Paste them in to Google and there's a very good chance you'll find out what that item was.
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
(function () { | |
let result = document.evaluate('//span[contains(text(), "is no longer available")]', document.body); | |
let node = null; | |
while (node = result.iterateNext()) { console.log(node.id.replace(/^itemName_/, '')) } | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Looks good, though weirdly I am seeing the details on my "discontinued" items on my wishlists now as-is so I can't try it out myself. The links (one example here) are 404s.