Remove Sponsored Items from Amazon

Sometimes you just don’t want to see sponsored items in amazon listings. Sorting by lowest price, for instance, can be difficult to parse while sponsored ads are visible. In this post, we’ll show you how to remove all sponsored items from amazon results.

Update: we’ve created a plugin based on this concept. You can download it for Firefox or Chrome

For this approach, along with using ad blocking tools like pi-hole and uMatrix, we’re going to add some code injection with the code injector plugin. The concept is simple; when the page loads, hide the adds by finding their class.

So first, lets install the code injector plugin. Examples in this post will use links to Firefox plugins, but these tools are also available for chrome.

We’ll add a rule scoping this injection to the Amazon website:


Then we’ll remove all the all ads after 1 second (Adjust to your network conditions)

  sponsored_doms = document.querySelectorAll("[class~='AdHolder']");
  top_ad_dom = document.querySelectorAll("[data-component-type='s-ads-metrics']"); top_ad_dom.forEach(function(element){
}, 1000);

That’s all there is to it! Next time you load an amazon page, You’ll see all sponsored content disappear after 1 second.

Leave a Reply