Skip to content

Instantly share code, notes, and snippets.

@drench
Last active October 3, 2021 18:14
Show Gist options
  • Save drench/5972614 to your computer and use it in GitHub Desktop.
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.
(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_/, '')) }
})();
@ijprest
Copy link

ijprest commented Jun 22, 2021

I had pretty good luck with the 6 missing items on my wishlist using the ASINs. I had to search without the "ASIN" prefix for a couple of them, and I had to use Bing to find one, but I was able to track down what they all were.

@drench
Copy link
Author

drench commented Jun 22, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment