您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Removes Ad Containers from DOM (doesn't replace adblocker extension, but blocks dynamic content which the adblocker fails to block by removing whole sections from the HTML DOM.)
当前为
// ==UserScript== // @name Ads DOM Remover // @namespace sagiegurari // @version 0.92 // @author Sagie Gur-Ari // @description Removes Ad Containers from DOM (doesn't replace adblocker extension, but blocks dynamic content which the adblocker fails to block by removing whole sections from the HTML DOM.) // @homepage https://github.com/sagiegurari/userscripts-ads-dom-remover // @supportURL https://github.com/sagiegurari/userscripts-ads-dom-remover/issues // @match http://www.ynet.co.il/home/* // @match http://www.ynet.co.il/articles/* // @match http://www.mynet.co.il/articles/* // @match http://www.calcalist.co.il/* // @match http://www.globes.co.il/* // @match https://sourceforge.net/projects/*/download* // @match https://sourceforge.net/projects/*/postdownload* // @match http://subscenter.cinemast.com/* // @match http://www.subscenter.co/* // @match http://www.subscenter.org/* // @match https://*.wikipedia.org/* // @require https://code.jquery.com/jquery-2.2.2.min.js // @require https://greasyfork.org/scripts/18490-ads-dom-remover-runner/code/Ads%20DOM%20Remover%20Runner.js?version=123541 // @grant none // @license MIT License // ==/UserScript== (function run($, runner) { 'use strict'; var selectorDefinitions = { ynet: [ '#colorbox', '#cboxOverlay', '#ads.premium', '#articleLayoutrightsidtable', '#google_image_div', 'img[src*="dynamicyield"]', 'div.MSCmainContent', '[id*="arketingCarouse"]', '[id*="arketingRecommended"]', '.mainVerticalArticleSharingLinks', '.OUTBRAIN', '.topBannerWrap', '.block.B3 .B3.ghcite.dyother.dyMonitor div', '.bigdealhomepage', '#ww6s_Main', '.buyandsavedy', '.area.footer.ghcite', '.hdr_set_homepage', '#c1_Hor', '#c2_Hor', '#c3_Hor', '#c4_Hor', '#c5_Hor', '#c6_Hor', '.homepagevideo-x6', '.buyandsave', '.general-image', '.PhotoArticlesTalkbacks', '[name="ExternalWebpageIframe"]', '#PROCOIL_SearchForm', '#magazines1024', '[id^="promo_"]', '[id^="ads."]', '.main_search_radio', 'tr td [id^="ads."]', '.art-action-wrp', '.header-user-profile', '.left-art-content', '[class*="GeneralBanner"]', '#vilon', '#prime.shook', { selector: '.homepagelitevideo', fineTuneSelector: function ($element) { return $element.parent().parent(); } }, { selector: 'iframe', filter: function ($element) { return !$element.parent().hasClass('news_ticker_iframe'); } }, { selector: 'div.B2b.block div', pre: function ($element) { $element.parent().css({ height: '1px' }); } } ], globes: [ '#chromeWindow', { selector: 'iframe', filter: function ($element) { var id = $element.attr('id'); var src = $element.attr('src') || ''; return (id !== 'GlobalFinanceData_home') && (src.indexOf('/news/') !== -1); } } ], sourceforge: [ '#content-for-adblock', '#newsletter-floating', '#page-body' ], subscenter: [ '.weekBottom', '.reviewsWindow', '#banner_cinemast', '.bottomMenu', 'footer', '#paypal', '#aboveSite', { selector: '#subtitles_list a[href="/he/contactus/"]', fineTuneSelector: function ($element) { return $element.parent(); } } ], wikipedia: [ '#frbanner', '#wlm-banner', '.frbanner' ] }; [ '#dcPremiumRightImg', '.boulevard', '#multiarticles-9', '#multiarticles-12', '#multiarticles-13', '#multiarticles-14', '#multiarticles-15', '#multiarticles-16', '.CdaMostViews', '.CdaCalcalistToday', '.CdaRecomendedMovies', '#SpecialBuilder1280', '.cdaFooter1280' ].forEach(function addSelector(selector) { selectorDefinitions.ynet.push({ selector: selector, fineTuneSelector: function ($element) { return $element.parent(); } }); }); Object.keys(selectorDefinitions).forEach(function (id) { selectorDefinitions[id] = { id: id, selectors: selectorDefinitions[id] }; }); runner($, { getSelectors: function (hostName) { var selectors; if (hostName.indexOf('globes') !== -1) { selectors = selectorDefinitions.globes; } else if (hostName.indexOf('sourceforge.net') !== -1) { selectors = selectorDefinitions.sourceforge; } else if (hostName.indexOf('subscenter') !== -1) { selectors = selectorDefinitions.subscenter; } else if (hostName.indexOf('wikipedia.org') !== -1) { selectors = selectorDefinitions.wikipedia; } else { //ynet/calcalist selectors = selectorDefinitions.ynet; } return selectors; } }); }(window.jQuery.noConflict(true), window.adrRunner));