Blocks sponsored search results on amazon.com, amazon.co.uk and amazon.de and some banner ads
< 腳本Amazon Sponsored Products / Ad block的回應
WorkingVersion as of 13. march 2019
// ==UserScript== // @name Amazon Sponsored Products / Ad block // @version 0.2 // @author Michael with some help from the internet // @description Blocks sponsored search results on amazon.com, amazon.co.uk and amazon.de and some banner ads // @include *://www.amazon.de/* // @include *://www.amazon.com/* // @include *://www.amazon.co.uk/* // @require http://code.jquery.com/jquery-latest.js // @grant none // @run-at document-end // @namespace https://gf.qytechs.cn/users/163754 // ==/UserScript== $ = jQuery.noConflict(true); var pageContentchanged = false; $('body').bind("DOMSubtreeModified", function() { pageContentchanged = true; }); setInterval(removeSponsoredAds, 200); console.log("amazon-sponsored-items-blocker loaded"); function removeSponsoredAds() { if (pageContentchanged) { var count = 0; $('.celwidget').each(function(i, obj) { // if ($(this).find(".s-sponsored-info-icon").length > 0) { if ($(this).find(".s-info-icon").length > 0) { //console.log("Object " + i + " contains an ad"); //$(this).css('background-color', 'red'); (this).remove(); count++; } }); console.log("amazon-sponsored-items-blocker: " + count + " ads removed!"); $(".slot__ad").hide(); $(".slot__feedback").hide(); $("[id*='ape_']").hide(); $("[id*='sponsored']").hide(); $("[id*='sp_']").hide(); $("[id*='advertising']").hide(); $(".AdHolder").hide(); $(".sp-sponsored-result").hide(); pageContentchanged = false; } }
登入以回復
土豆服务器,请按需使用
镜像地址随时可能被墙,建议加群获取最新地址
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址
WorkingVersion as of 13. march 2019