Skip to content

Instantly share code, notes, and snippets.

@drench
drench / gist:5972614
Last active October 3, 2021 18:14
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_/, '')) }
})();