NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name Annoying Ad blocker // @description Prevents annoying ads from displaying // @version 2017.08.26 // @include *://*.amazon.com/* // @include *://*.bing.com/* // @include *://*.ebay.com/* // @include *://*.thepiratebay.org/* // @include *://*.youtube.com/results* // @grant GM_addStyle // @namespace https://openuserjs.org/users/nonedude // @require http://code.jquery.com/jquery-1.11.1.min.js // @license MIT // ==/UserScript== String.prototype.contains = function (it) { return this.indexOf(it) != -1; }; var ssss = location.href; function thepiratebay(){ $("iframe").remove(); } function amazon(){ window.pdagSparkleClientContext = {}; $("#pdagDesktopSparkleHeadlineContainer").remove(); $("#sponsoredLinksCsaIframe").remove(); $("#reports-ads-abuse").remove(); $("#sponsoredLinksCSA").remove(); $("#amsSparkleAdWrapper").remove(); $("#pdagEncapsulated").remove(); $(".slot__ad").remove(); $("#adblk_yes").remove(); $("#adblk_no").remove(); $("#adblk_unk").remove(); $("#sponsoredLinksCsaIframe").html(""); $("#reports-ads-abuse").html(""); $("#sponsoredLinksCSA").html(""); $("#amsSparkleAdWrapper").html(""); $(".s-sponsored-list-header").each(function (index, value) { $(this).parent().parent().remove(); }); $(".s-sponsored-info-icon").each(function (index, value) { $(this).parent().parent().parent().parent().remove(); }); console.log(new Date().getTime()); } function bing(){ $(".b_ad").remove(); } function ebay(){ $("[id^='wrapperDiv_rtm']").remove(); $("[id^='scandal']").remove(); $("[id^='rtm-mb']").remove(); $(".mfe-cards").html(""); $("[id^='wrapperDiv_rtm']").html(""); $(".promoted-lv").parent().remove(); $(".s-item__title-tag").each(function (index, value) { $(this).parent().parent().parent().parent().parent().parent().remove(); }); } function youtube(){ $("ytd-secondary-search-container-renderer").remove(); } if (ssss.contains("ebay")) { ebay(); window.setInterval(function(){ ebay(); },1000); } if (ssss.contains("bing")) { bing(); window.setInterval(function(){ bing(); },1000); } if (ssss.contains("amazon")) { amazon(); window.setInterval(function(){ amazon(); },1000); } if (ssss.contains("thepiratebay")) { piratebay(); window.setInterval(function(){ piratebay(); },1000); } if (ssss.contains("youtube")) { youtube(); window.setInterval(function(){ youtube(); },1000); } GM_addStyle(".b_ad, .sfblAd, .adBlock { display: none !important; }");