美文网首页
针对Adblock广告屏蔽处理

针对Adblock广告屏蔽处理

作者: Willworkgogogo | 来源:发表于2017-12-06 20:40 被阅读0次

这是在使用adblock后页面上多出类似行内层级的样式,无法修改。

::content #dart_160x600, ::content #dfp-ad-stamp_2, ::content #div-web-ad-marginale-2, ::content #dvad5, ::content #floatyContent, ::content #fusionad, ::content #googleAd_words, ::content #h_ads1, ::content #header_advertisement_top, ::content #hor_ad, ::content #inlineBottomAd, ::content #kbbAdsMainCenterAd, ::content #leftAdMessage, ::content #mainAdvert, ::content #middle_bannerad, ::content #mu_2_ad, ::content #oas_wide_skyscraper, ::content #plAds, ::content #right-ad-skin, ::content #rightgoogleads, ::content #section-ad-300-250, ::content #sidebar-ad_dbl, ::content #skyAd, ::content #sponsor_deals, ::content #squareGoogleAd, ::content #td_adunit1, ::content #topAd300x250_, ::content #topadsdiv, ::content #vertical_ad, ::content #wideskyscraper_160x600_left, ::content #zone_c_ads, ::content .AdRight1, ::content .BigBoxAdLabel, ::content .MOS-ad-hack, ::content .SponsoredAdTitle, ::content .ad--bottommpu, ::content .ad-728x90-1, ::content .ad-box2, ::content .ad-forum, ::content .ad-pos-top, ::content .ad-slot__label, ::content .ad-vtu, ::content .ad300X250, ::content .ad970x30, ::content .adColumn, ::content .adMediumRectangle, ::content .adSuperboard, ::content .ad_336x90, ::content .ad_bottom_mpu, ::content .ad_header_left, ::content .ad_nsbd_300_250, ::content .ad_supersize, ::content .adblock_primary, ::content .adf_tisers, ::content .admiddlesidebar, ::content .ads-banner, ::content .ads-single, ::content .adsBelowHeadingNormal, ::content .ads_bg, ::content .ads_topbanner, ::content .adsense-widget-horizontal, ::content .adslot_728, ::content .adtoggle, ::content .adv300-70, ::content .adverTxt, ::content .advert350ih, ::content .advertise_box1, ::content .advertisement_flag_sky, ::content .adverttop, ::content .al-wss-ad, ::content .article_middle_ad, ::content .banner-ads-sidebar, ::content .bb-md-adv7, ::content .block-ads3, ::content .blxAdopsPlacement, ::content .botton_advertisement, ::content .btf-ad-medRect, ::content .cdAdTitle, ::content .cnt-right-vertical-ad, ::content .content_ad_side, ::content .dartAdImage, ::content .div_advertisement, ::content .eniro_ad, ::content .flash_ad, ::content .games-ad300, ::content .googleAd300x250_wrapper, ::content .graphic_ad, ::content .header-top-ad, ::content .homeAddTopText, ::content .inline-ad-wrapper, ::content .job-ads-container, ::content .lazy-adv, ::content .lgRecAd, ::content .main-advertising, ::content .meme_adwrap, ::content .mod-trbad, ::content .mpuads, ::content .other-posts-ads, ::content .panel_ad, ::content .popup_ad, ::content .publicidade-dotted, ::content .region-leader-ad-top, ::content .right-square-ad-blocks, ::content .rolloverad, ::content .searchResultAd, ::content .sideAdv-wrapper, ::content .sidebar_ads_title, ::content .slideshow-ad-container, ::content .sponsor-left, ::content .sponsoredInner, ::content .sr-advert, ::content .szoSponsoredPost, ::content .top-adsense-banner, ::content .topad1, ::content .ukAds, ::content .view_ads_top_bg_middle, ::content .widget1-ad, ::content .yrail_ads, ::content a[href^="http://bonusfapturbo.nmvsite.com/"], ::content a[href^="http://refer.webhostingbuzz.com/"], ::content #ssmiwdiv[jsdisplay], ::content #tr_ad2, ::content .movie-advert-link, ::content #ADVTRIGHT1, ::content #AdMPUHome, ::content #AdvContainerMidCenter, ::content #DivAdForumSplitBottom, ::content #LowerContentAd, ::content #TOP_ADROW, ::content #ad-197, ::content #ad-base, ::content #ad-gutter-right, ::content #ad-push, ::content #ad-textad-single, ::content #ad300x60, ::content #adCirc300X250, ::content #adMpuBottom, ::content #adSplotlightEm, ::content #ad_300x250_1, ::content #ad_banner_468x60, ::content #ad_footer_small, ::content #ad_medium_rectangle, ::content #ad_script_head, ::content #ad_zone, ::content #adlink-55, ::content #ads-C1, ::content #ads728bottom, ::content #ads_header, ::content #adsense-right, ::content #adtopDet, ::content #adv_5, ::content #advert234_container, ::content #advertisement2, ::content #advetisement_300x250, ::content #anyvan-ad, ::content #banner-300x600-area, ::content #bcaster-ad, ::content #block-thewrap_ads_250x300-3, ::content #bottomMPU, ::content #burn_header_ad, ::content #commentTopAd, ::content #content_right_advert, ::content #ctl00_ctl00_MainPlaceHolder_itvAdSkyscraper, ::content #defer-adright, ::content #dfp_ad_20, ::content #divFooterAds, ::content #events-adv-side4, ::content #footerAdBottom, ::content #galleryad1, ::content #google_ads_div_Raw_Override, ::content #headad, ::content #hide_ad_section_v2, ::content #i_ads_table, ::content #interstitialAd, ::content #layeradsense, ::content #leftcolumnad, ::content #mason_adv_rn_2, ::content #mod_ad_top, ::content #national_ad, ::content #ovAdWrap, ::content #populate_ad_textupper, ::content #r-ads-listings, ::content #rightAdDiv2, ::content #rr_MSads, ::content #shoppingads, ::content #sidebarAdUnitWidget, ::content #sliderAdHolder, ::content #sponsoredFeaturedHoz, ::content #stopAdvt, ::content #tgAD_imu_2, ::content #topLBAd, ::content #topsponad, ::content #video_advert2, ::content #wrapAd, ::content .AD_300x265, ::content .Ad_468x60, ::content .DomAdsDiv, ::content .PERFORMANCE_AD_RELATED, ::content .TopAdR, ::content .ad-120x60 
{
    display: none;
}

网络搜索adblock的实现原理,应该是通过js的正则匹配指定的几百种广告规则进行屏蔽,这里发现的好像就是通过匹配ad这个类的关键字实现隐藏。所以试着将所有带有ad的类名修改,这里就暂时改为jin(金)zhu(主)吧

搜索ad出现的结果

这是修改类名前后的对比图,看来这么修改还是有效的,当然肯定还有其他更专业的改法,有待持续关注

修改前和修改后

相关文章

  • 针对Adblock广告屏蔽处理

    这是在使用adblock后页面上多出类似行内层级的样式,无法修改。 网络搜索adblock的实现原理,应该是通过j...

  • 谷歌浏览器插件

    1、AdBlock或者Adblock Plus(广告屏蔽) 2、context-menu-search(文本搜索)...

  • Safari扩展

    adblock-广告屏蔽 Polyglot-翻译插件

  • Adblock屏蔽简书广告

    Adblock可以拦截网页上的广告, 被誉为最受欢迎的 Chrome 扩展 屏蔽简书广告 屏蔽简书广告 屏蔽csd...

  • chrome插件推荐

    1、广告屏蔽插件 Adblock Plus 2、鼠标手势 smarUp 手势

  • chrome浏览器中使用adblockplus拦截广告

    adblock plus是一款可以屏蔽广告以及任何你想屏蔽元素的软件,屏蔽之后的效果如下图所示,abp自动屏蔽广告...

  • adblock plus屏蔽广告

    实在受不了csdn上的广告,使用adblock plus,依然还有讨厌的广告。使用adblock plus的“ad...

  • Adblock Plus

    Adblock Plus 可让您屏蔽烦人的广告、跟踪、恶意软件及其他您不想在浏览器中看到的东西。 Adblock ...

  • AdGuard - 可能是世界上最高级的广告拦截程序

    想必大家在Chrome下都使用过类似「AdBlock」的浏览器广告屏蔽插件,「AdBlock」可以说非常好用。 但...

  • 我的 Chrome 插件

    1. AdBlock 广告屏蔽一般人都会装的吧,很有效果。除了这个插件,还有很多其他的广告屏蔽插件,但我觉得这个比...

网友评论

      本文标题:针对Adblock广告屏蔽处理

      本文链接:https://www.haomeiwen.com/subject/eoekixtx.html