您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
removes sponsored products from search results across all amazon country domains
// ==UserScript== // @name amazon sponsor block // @namespace https://greasyfork.org/de/users/1491862-bernhardsigl // @version 1.0 // @description removes sponsored products from search results across all amazon country domains // @match https://www.amazon.de/* // @match https://www.amazon.com/* // @match https://www.amazon.co.uk/* // @match https://www.amazon.fr/* // @match https://www.amazon.es/* // @match https://www.amazon.it/* // @match https://www.amazon.nl/* // @match https://www.amazon.ca/* // @match https://www.amazon.com.mx/* // @grant none // @run-at document-idle // @license MIT // ==/UserScript== (function () { 'use strict'; if (!window.location.pathname.startsWith('/s')) { return; } function removeSponsoredByLabel() { let removed = 0; const sponsoredWords = new Set([ "sponsored", "gesponsert", "sponsorisé", "patrocinado", "sponsorizzato", "gesponsord" ]), sponsorLabels = Array.from(document.querySelectorAll("span, div")).filter(el => sponsoredWords.has(el.textContent.trim().toLowerCase()) ); sponsorLabels.forEach(label => { let container = label.closest(".s-result-item"); if (container) { container.remove(); removed++; } }); } const observer = new MutationObserver(removeSponsoredByLabel); observer.observe(document.body, { childList: true, subtree: true }); removeSponsoredByLabel(); })();