Blocks sponsored product results from showing up in Amazon searches
< Feedback on Block Amazon Sponsored Ads
An edit and some additions
First, good work on the script. However, the match statement should be *://www.amazon.com/s*, not *://www.amazon.com/s/* (there may have been an update to Amazon's URL syntax).
match
*://www.amazon.com/s*
*://www.amazon.com/s/*
Also, I added the following to my removeAds function:
removeAds
document.querySelectorAll('.AdHolder').forEach(function(el) { el.remove(); }) document.querySelector('#rhf').remove()
This should remove all sponsored products in search results as well as all of the "Sponsored products related to your search" sections.
उत्तर पोस्ट करण्यासाठी साइन इन करा.
An edit and some additions
First, good work on the script. However, the
match
statement should be*://www.amazon.com/s*
, not*://www.amazon.com/s/*
(there may have been an update to Amazon's URL syntax).Also, I added the following to my
removeAds
function:This should remove all sponsored products in search results as well as all of the "Sponsored products related to your search" sections.