Amazon Sponsored Products remover

Removes the terrible sponsored products from Amazon.

  1. // ==UserScript==
  2. // @name Amazon Sponsored Products remover
  3. // @namespace https://gf.qytechs.cn/en/users/2755-robotoilinc
  4. // @author RobotOilInc
  5. // @version 0.3.6
  6. // @license MIT
  7. // @description Removes the terrible sponsored products from Amazon.
  8. // @include http*://www.amazon.cn/*
  9. // @include http*://www.amazon.in/*
  10. // @include http*://www.amazon.co.jp/*
  11. // @include http*://www.amazon.com.sg/*
  12. // @include http*://www.amazon.com.tr/*
  13. // @include http*://www.amazon.ae/*
  14. // @include http*://www.amazon.fr/*
  15. // @include http*://www.amazon.de/*
  16. // @include http*://www.amazon.it/*
  17. // @include http*://www.amazon.nl/*
  18. // @include http*://www.amazon.es/*
  19. // @include http*://www.amazon.co.uk/*
  20. // @include http*://www.amazon.ca/*
  21. // @include http*://www.amazon.com.mx/*
  22. // @include http*://www.amazon.com/*
  23. // @include http*://www.amazon.com.au/*
  24. // @include http*://www.amazon.com.br/*
  25. // @include http*://smile.amazon.com/*
  26. // @icon https://i.imgur.com/LGHKHEs.png
  27. // @run-at document-body
  28. // ==/UserScript==
  29.  
  30. new MutationObserver(function(mutationList, observer) {
  31. // Remove old style sponsored results
  32. document.querySelectorAll('[data-component-type="sp-sponsored-result"]').forEach(function(element) {
  33. var parent = element.closest('[data-asin]');
  34. if(parent) parent.remove();
  35. });
  36.  
  37. // Remove old style carousel ads
  38. document.querySelectorAll('.sp_desktop_sponsored_label').forEach(function(element) {
  39. var parent = element.closest('.a-carousel-container');
  40. if(parent) parent.remove();
  41. });
  42.  
  43. // Remove all skyscraper ads (Amazon.de, shown on desktop on the left and bottom)
  44. document.querySelectorAll('[class*="_adPlacements"]').forEach(function(element) {
  45. element.remove();
  46. });
  47. document.querySelectorAll('[data-cel-widget*="adplacements"]').forEach(function(element) {
  48. element.remove();
  49. });
  50.  
  51. // Remove advertising promo on product page
  52. document.querySelectorAll('#discovery-and-inspiration_feature_div, #sponsoredProducts2_feature_div, #sims-themis-sponsored-products-2_feature_div, #dp-ads-center-promo-dramabot_feature_div').forEach(function(element) {
  53. element.remove();
  54. });
  55. document.querySelectorAll('[data-cel-widget="dp-ads-center-promo_feature_div"]').forEach(function(element) {
  56. element.remove();
  57. });
  58. document.querySelectorAll('#percolate-ui-ilm_div').forEach(function(element) {
  59. element.remove();
  60. });
  61.  
  62. // Remove all additional sponsored products
  63. document.querySelectorAll('.AdHolder').forEach(function(element) {
  64. element.remove();
  65. });
  66.  
  67. // Remove AI review insights
  68. document.querySelectorAll('[data-csa-c-owner="CustomerReviews"]').forEach(function(element) {
  69. element.remove();
  70. });
  71.  
  72. // Remove ads in certain pages (Amazon.de, progress-tracker/package)
  73. document.querySelectorAll('[class*="spSponsored"]').forEach(function(element) {
  74. element.closest('#recsWidget').remove();
  75. });
  76.  
  77. // Remove carousel ads on tracking page (progress-tracker/package)
  78. document.querySelectorAll('[class*="dynamic-sponsored-behaviour-container"]').forEach(function(element) {
  79. var parent = element.closest('.a-carousel-container');
  80. if(parent) parent.remove();
  81. });
  82.  
  83. // Remove everything cluttering the search view (except pagination)
  84. document.querySelectorAll('#search .s-result-list.s-search-results > div:not([data-component-type="s-search-result"])').forEach(function(element) {
  85. if(element.querySelectorAll('.s-pagination-strip').length == 0) element.remove();
  86. });
  87.  
  88. // Remove Amazon Live
  89. document.querySelectorAll('[data-id*="AmazonLiveDram"]').forEach(function(element) {
  90. element.remove();
  91. });
  92. }).observe(document.body, { childList: true, subtree: true });

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址