Blocks sponsored product results from showing up in Amazon searches
< 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.