這是在使用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(主)吧
這是修改類名前後的對比圖,看來這麼修改還是有效的,當然肯定還有其他更專業的改法,有待持續關注