Filtering Amazon Wishlist items with price drops

Amazon has recently changed their filters on wish list items so you can no longer view items with price drops (useful for books) or sort price from low to high. I wrote up some fairly crappy JavaScript that scrolls to the end of your wish list then removes all the items that don’t have ย “Price dropped” in the div. I sometimes need to run the code more than once to get all items to be removed, so this is far from perfect, but works for what I was intending it to do. If you have a few hundred items on your list it will take a few seconds to run the script, but each subsequent run should run pretty quick.

Update: I added this to github.

function removeItemsWithoutPriceDrops() {
  var lowPrice = 999999;
  var anyRemoved = false;
  var listItems = document.getElementsByClassName('a-spacing-none g-item-sortable');

  for (var i = 0; i < listItems.length; i++) { var priceDrop = listItems[i].querySelectorAll('.itemPriceDrop'); var price = listItems[i].querySelectorAll('span.a-offscreen'); if (price.length) { price = price[0].innerHTML; price = price.replace('$', ''); } else { price = 0; } if (priceDrop.length == 0 || price > lowPrice) {
      listItems[i].parentElement.removeChild(listItems[i]);
      anyRemoved = true;
    }
  }

  if (anyRemoved) {
    removeItemsWithoutPriceDrops();
  }
}

removeItemsWithoutPriceDrops();

You can also add the following code directly to a bookmark by copy and pasting the code into this generator

24 thoughts on “Filtering Amazon Wishlist items with price drops

  1. I don’t understand how to use this (script). Copy and pasting to search web didn’t do anything. Can you please explain how to use? Thank you!

  2. Hi! Thanks so much for this workaround… much appreciated and useful!

    Can you post an updated ‘drag this to your bookmarks bar’ link with the updated script?

    Thanks!

  3. This took at least several minutes to go through my list of 500+(?) items (Amazon seems to have removed the “telling you how many items are on your list” feature, which makes me think that it buying Whole Foods is an indicator of imminent decline due to general incompetence and flailing) on a higher end laptop Intel Core 2 Duo, bouncing up and down on the page. So if you have a ton of stuff on your list, and depending on your machine, don’t worry if it seems to be “stuck.”

    Also, can you write up something that tells us how many items are on the list now?

    I don’t know why Amazon has decided to make itself a place that’s harder to find and buy stuff.

  4. Can you please advise as to how we can use the script you created? I would really appreciate being able to use it. Thank you.

    • The best/easiest way is to literally click on the link at the bottom of the post and drag it to your bookmarks bar. Once that’s there open up your wishlist and click on the bookmark you just added to your bar.

  5. Thanks, Matt! Not quite as nice as actually being able to sort by price but as long as Amazon are being jerks and taking away functionality that saves us money, it’s a good alternative. I appreciate you releasing it to us non-coders.

  6. Thank you!! I’ve been complaining to Amazon for weeks about them ditching the Price Drop filter. I used it primarily for ebooks that go on sale and I’ve missed it terribly! My list was useless. Now, it’s not. Your code worked! There were about 45 seconds of scary screen twitching and jumping, and then BOOM, there was my list with all the lovely price drop percentages. Thank you!

  7. Thanks! Now if there is anything that helps remove or delete unavailable items from our wish list that would make my list more current and accurate.

  8. Thank you! This works perfectly. I have a list with >1,000 items. Results were returned within a minute. I had saved my former filtering in a bookmark. For several months, neither the price drop, nor low-high sort was executed, but about a month ago, the sort came back, with a nasty side effect — it takes about four minutes to open the page, and once open, scrolling became so painfully slow, as to be mostly useless. After dragging the script to my bookmarks, I can open my Amazon page, wait for it to complete sorting, click the script bookmark to eliminate 90% of items that don’t have a price drop, it’s still sorted low-high, but now I can scroll through the items!

  9. this isnโ€™t working for me anymore, is anybody else having an issue getting it to work ๐Ÿ™ I really hate Amazon for taking away their filter and sort functionalities!

  10. I suddenly can’t get this to work anymore. It worked a few weeks back and now I don’t know if I am not running it properly or what the deal is?

    Last time I remember you had the link on the blog and I dragged that to the bookmarks bar and it ran fine.

    Now I go to github and I don’t know if I am not saving the right file or what the deal is? Any help would be appreciated.

    Thanks

  11. It’s not working for me just yet. User error I think since I don’t do anything wit code. I added it to bookmarks, then opened wishlist, then clicked on the bookmark dropdown menu, but when I click the link (called “permalink” in the dropdown, it navigates to this blog page. Thanks for the help on this.

  12. There is another way to do it that isn’t as sophisticated as this script. What I do is go down to the bottom of my list so that all the items populate to the web browser, and then I do a ctrl-F to do a “find” and I search for the word “dropped.” All items that have price drops will have the words “Price Dropped XX%.” So you can highlight and toggle through all the items with price drops.

  13. Hi, I was just wondering if someone could help me get this to work. Last year I was able to add this to a book mark and it worked perffectly! I am trying to add it again to my book marks but I can’t get the link to work. Does anyone know how? And help would be great! Thanks so much in advance! This is a great tool to use since Amazon took away the story my price drop feature. Thank you for making this!

Leave a Reply

Your email address will not be published. Required fields are marked *