在IE的辅助功能中有一个用户样式表功能,可利用此功能来过滤网页广告(IE 6.0包含此功能!)。
ad.css内容:
/* 阿里妈妈 */ IFRAME[src*="z.alimama.c"], IFRAME[src*="a.alimama.c"], embed[src*="z.alimama.c"], embed[src*="a.alimama.c"], /* Google广告 */ *[src*="googleads.g.doubleclick.net"], *[src*="pagead2.googlesyndication.com"], *[src*="www.google-analytics.com"], *[src*="googleadsserving.cn"], *[src*="partner.googleadservices.com"], /* 中关村 */ *[src*="ad.doubleclick.net"], #hq_float, *[id^="Bar1602_"], #Float1265, .word_ad.clearfix, .banner760_1.clearfix, .pic_ad.clearfix, .banner760 .adSpace, /* discuz论坛 */ .content #hot, .content #modarea, .content #ann, .subject em, .subject .attach, .subject .new, .threadtags, .postbottom, #ad_text, #ad_headerbanner, .ad_footerbanner, .ad_column, .ad_textlink1, .ad_textlink2, .forumlinks, .forumimglink, .forumtxtlink, *[class^="ad_float_"], /* 远景 */ #pb_news #pb_n_c, #pb_forum #forumheader, #viewthread .threadfix #focus, .postcontent .node-gg, /* 百度贴吧 */ #pg #m #girl, #rightAd, #ecomAdDiv, .c_post_title .forward, #thread_footer .forward, .c_post .t, .c_post_info .c_author .follow, .c_post_info .c_author .follow_male, .c_post_info .c_author .follow_female, #ec_im_container, *[href^="http://www.baidu.com/adrc.php"], table[width="65%"][bgcolor="#ebebeb"][style="margin-left: 15px;table-layout:fixed;"], /* 天空软件 */ *[id^="baidu_clb_slot_"], /* 华军软件 */ #wide_ad_unit.wide_ads, #lovexin12, #lovexin14, #content .a970, object[width="970"][height="60"], *[src*="/newhuagg/"], .a-intro object[width="300"][height="200"], /* cnbeta */ #h_right #userInfo, #post #comad, #foot object, #content #AdForward, #sideBar #votes #vote_content, #sideBar #fm, #sideBar #fm_r, #c_focusAndHot #c_ad, *[src*="u17.com/upload/FCK/image"], *[src^="http://img.cnbeta.com/youdao"], *[src^="http://img.cnbeta.com/ks576."], *[src="http://img.cnbeta.com/gord_300.jpg"], *[src="http://img.cnbeta.com/rk3d.gif"], #newsBox #news object[width="576"][height="60"], #feedback center object[width="300"][height="250"], *[id*="google_ads"], #wrapper object[width="950"][height="90"], a[href*="?from=cnbeta"], /* 驱动之家 */ *[id^="ad_"], *[src*="11.mydrivers.com"], /* 谷歌音乐盒 */ .ads-absolute, /* 太平洋软件 */ div[id="ivyPC"][class="wrap"], #PcPoPmarket, *[href*="click?adid="], object[id^="ad"], .adv_right1, .adv_top, .art_adv_bottom_comment, .left640 .box2, /* 网易 */ .bg_endPage, .header .gg, #ead_ad_14, .gg360, .gg200x300, .endYoDao, .gg560, .colL .gg590, .theme-tl .links .chl, #divwelcome .part-sec, .gIbx-tablayout *[id*="FakeLetterDiv"], .blkTopGoogleSearch, #conBody .sidebar .HSpace_10, .RtTxtAD, #conBody .sidebar .adNone, #conBody object[width="950"][height="40"], .Ad_01, .qyfwBlk, /* 新浪 */ .MIB_mbloglist .tipsBox, div[class^="missionBox s_bg"], div[class="widgetIntroduce widgetH2"], *[src^="http://d"][src*=".sina.com.cn"], IFRAME[src*="sina.com.cn/iframe/"], #seIfm, #page .topads, #vlog .AD355125, *[id^="i2AS_container_div_"], *[id^="FullScreen"], *[id*="_AdSame_"], .grid-640 .adBlock, .topAD, *[id^="flashcontent_"], object[id*="_swf"], .MIB_mbloglist .PY_clew, /* 凤凰网 */ #topBj *[id^="ad"], #topBj .areaAd, #topBj #flashad, #topBj #VideoPlayer, #topBj .pic660, #topBj #StreamMediaWrap, #topBj *[id^="i2PT_"], #StreamMediaWrap #smExtObj, #StreamMediaWrap #smTagObj, object[id^="flashad"], #final_head_ad, #main_right .right_picAd, #main_right DIV[class^="adlist"], IFRAME[src*="all_content_ad_"], IFRAME[src="http://book.ifeng.com/special/90niandai/blog3/"], .ad_pic, .ad_text, #main_left .maidunbox, .ad950, /* 腾讯网 */ .AdTop-Article-QQ, #AdRight-Article-QQ, #sideBars #News_F_UpRight, .business-Article-QQ, .AdBox-Article-QQ, .qiye-Article-QQ, #QQ_Right_button1, #QQCOM_Width2, #QQCOM_Width3, #QQCOM_Button2, .adArea #charge_content, #tipsAll #tipswindow, div[id="tipsAll"][class="tipwindow"], #soAdSwf, #cssSkin DIV[id^="div_kkkl"], #cssSkin DIV[id^="div_nike"], *[src*="http://mat1.gtimg.com/worldcup/20100506/27_60_100609.jpg"], .ad_article_box, #sideBars embed[id="flash_focus"], /* 115网盘 */ .publicize[style="width:100%; height:90px;"], iframe[src*="115.com"], .row>.down-l+.down-r, /* 天涯 */ *[id^="adsp_"][id*="_banner"], *[id^="adsp_content_replybox_img_"] {display:none !important} /* ==================== 以下代码需IE9才支持 ==================== */ /* 百度贴吧 */ .c_post_info .c_author li:nth-child(2), .c_post:nth-child(n+4) .c_post_title {display:none !important}
内容源自:http://bbs.pcbeta.com/thread-791980-1-1.html
Q 说:
欢迎转载,但请注明内容的来源或URL;
“[转]”篇章,必须保留原始来源且勿添加本blog指向。
欢迎转载,但请注明内容的来源或URL;
“[转]”篇章,必须保留原始来源且勿添加本blog指向。