- UID
- 1079
- 帖子
- 1592
- 精华
- 3
- 贡献
- 6
- 推广
- 0
- 有效BUG
- 0
- 注册时间
- 2005-5-23
|
70#
发表于 2008-12-9 22:17
| 只看该作者
本帖最后由 xwhyc 于 2009-6-18 21:00 编辑
一种全局过滤方式,不会下载广告,打开网页应会快,但会增加查找量,打开网页瞬间会增加cpu占用,测试一般机器应付没问题- /(?:7town|a-d-s|alimama|banner(?!\.(?:jp|ht|js)|1_|r|05|/ti)|linktone|ad(?:id=|url=|uni|s?union|size|fshow|fclick(?!\.htm))|mootermed|googlesyn|hotadv|ShowInfoFla|vodone|/(?:web)?gg\d?[/.](?!js|mop|img|112|pla))/
- /(?:(?:300|250)(?:x|_|-)(?:250|300)|(?:(?:en|ye)kj\d?|zzy|idc300|3[46]0_60|[^\d](?:468[x_]?|[6-9][024-9]0)(?:[6-9]0|120|110[^.]{0,3})|linkwww|760)\.(?:gif|jpg|swf)|adclient|nnsky|ban\.gif|newhuagg/(?![^>]*?\.js|newhua)|/wb/dldl)/
- /(?:\d(?:x|,|-|×)(?![0-4]\d[-_.])\d{2}[^/.]*\.(?:swf|gif)|[4-9][02-9][035][x_-][4-9][05][^\d]|allyes|static\.atm\.|ggao/(?!index_right)|550210_|\.idc-1|[^\d]1[256]0[x_-][2-6]\d{2}\b)/
- /\/(?:(?:mynicedd|maimg|guangg?|d1(?!/file)|www/if|sy|jy)/|(?:wFloat|eiv|btn(?!\.jpg)|dvs|w-z1|hp_22|brite|biz5)\.|if/pf|ty/up/[^>]*?\.swf|pfp(?!/(?:ask|ishare|i/))|mcfg|zanzhu)/
- @@/\/(?:upimage|upload/|smilies/)/
- #ex#<fieldset[^>]*?(?:(?:dashed|solid) #(?:a6ccf9|FF6666|E4EBF1|ff9966|E7F4FE|D7EFB9)|#a6ccf9 1px dashed)[^>]*>([\s\S](?!/fieldset -->))*?<\\?/(?:fieldset|td|script)>###
- #ex#<body (?:onclick=\\?"javascript|onbeforeunload=web5c5c)[^>]*?>###<body>
- #ex#<table (?:[^>]*?(?:text ad|[=_]ad_|[^n]banner(?!/tile)|联盟论坛|id="fullAD"|id="addispay"|mbEnd|class="bg"(?!')|width="979"(?! border="0" align="center")|width="778" id="table1"|width="(?:980" |865") border="0"|bgcolor="#000000" width="97%")[^>]*?|(width="750"\s)?border="?0"?(?!>\s*(?:<tr>\s*<TD|(?:<br>\s*)?<tbody>))(?:\swidth="9(?:28"|00[^>]*?)|\sheight="340")?)>[^{]*?</table>###
- #ex#<span [^>]*?id=(?!"top)"?'?(?:span_)?(?:(?:sy[pm]|[^>]*?_)?ad_(?!sec)|(?:ad)?banner|"gg1\d|dellad75090|span_(?:top|right)_)[^>]*>[\s\S]*?<\\?/span>###
- #ex#<div (?:[^>]*?(?:id|class)=\\?["']?(?:ad_(?:\d(?![^ >]*?(?:60|_70|_5)"|"|50x)|(?:text|top)(?!">\s*(?:<div|<table)|"\sid="ad_)|style|pip"|wks_|intercat_)|[^>]*?(?:(?:mid|footer|bottom)banner|ad_headerbanner(_none)?"><a)|ad(?!70060|2111|230)(?:660x|9[56]0x|760"(?!>\s*<sty)|[2-9]\d{3}|\d_\d|200_1"|10000)|[^>]*?ad-b\d|banner(?:b(?!g)|-|\sban|_\d(?!>\s*?<div))|AdLayer|xenw|cl_style|csdnsty_|xl_ad|topbanner1|ad\d mass"|centerin|mladl|ggPicAd|ggBanner"|all_in_|temporarily|top_ad"|right_ads"|adExtension_|myPlayer|AdZoneL|md"(?!\s|>\s*<div)|(?:tl)?gg"?>(?!<div)|sll468|gg210|forum(?:img|txt)link|adbottom\d|topbar(?!">\s*<(?:span|scr|div|tab)|"\s)|randPanel|left_ad">\s*<a|ggao3|div205"|KaicnIdx_200|bdfs\d|top_in|(?:index|read)_up"|con_ad" |art_pic|p_4"><script|adCollect)|style="display:none">\s*<scr)([\s\S](?!<!))*?</div>###
- #ex#<div (?:(?:class|id)=["']?(?:conttopad|tonglan|end_info|licai|subjectpic|ad0\d|divRes1032|ADV?_\d|nei364|gg_|sidead\d|tg_|adtop(?:D|1)|topad|spanclass[DE]|adbottom|AdsT"|adv09_0703|ads_780x97|Softcontent3|index_ads1|ad[37]60|ad_no1|bor9|soft_head"|CH_JS_|tad|ad_?[vlmr]"|news_ad|w960 adW"|ad ad96060|containerAD"|mid" id="head"(?!>\s*<div class="mid")|adbox|blank6" |ad"|divAd"|adRtext"|adNone" id="Public)|[^>]*?(?:style="width:[7-9]\d{2}px;[^>]*?height:[6-9]0px;|class="banner clearfix"))[^>]*?>###<div style="display:none">
- #ex#<(?:scr|ifr|s["']\+["']c)[^>%]*?(?:[=/"]ads_(?:type|\d{2}|Common)|banner(?!3|\.js)|bdcode|narrowad|ad(?:_js(?!\.php\?aid=24)|_show|_text|vjs_)|tatabar|heima|taolai|bbstw|maidong\.asp|pds_|(?:end|top)ad|gg_|cnfriend|abang|joyistar|hengfu|feelor|yajiao|3g-3g|360quan|ggao(?!/index_right)|8le8le|orsoon/(?:indextop|down_)|(?:index|[^s][^_]page(?:ad)?)(?:_top(?!5)|head|end|top[2-9]|bottomad|ad)|importplayer|xlbaby/bbs\.|width="?468(?!"\s*height="(?:380|392|511)")|[\s|=]height[=:]\\?['"]? ?(?:1(?![4578]|65|10)|2(?!(?:[0679]|55|4[26]|1[026])))?(?:[0149](?!5 id=)|[58](?!5|6|2)|6(?!0" Style="Visibility|0" scrolling="no" frameborder="0")|7(?!2))[0256]\\?(?:px)?\b(?!%|"? width="100%)|union|yeeyoo|_top_900|/(?:top_950|page_d|html_\d\.|zuimei|soft_mid_|sg300|jy|(?:xiu|gao|youme|yj)[/.]|sluke/ml)|[^ea]w(?:eb)?game|advlist|cngrfile|\.ng/|almm/|\.ete(?:un)?\.cn|netgy|/(?:click|adz|gongyong|y?stat|tongji|tj|news/page|bbsframe|homeadver|top_all|jump|piao|760(_\d)?|images/stock|yuegui|bootom\d|mlfoot|upcontent|hj_end|d/f\d|qq|goo?|js/asp)\.js|money\.js|counts?\.js|\.cn/js/swfobject\.|qiang?ming|ivy|1133\.cc|cnzz|51(?:yes|\.la)|vdoing|imrworldwide|(?:style|index)_down|content_plugin|[^p]age=1|qi[mh]oo|foho.cc|dipan|\.62826|adclient|t2click|vzhun|[^o]adframe|open_window|cnxad|pfp\.|svnad|myiee|9v(?:\.cn|cp)|lunbo|zhenai|[/."]s?pop(?:\.|_un|js|up_?ad|g)|/33\.pcpop|/cop\.my|/sj/a2i|/yxkucode|/lmt_v\d|\.untang|\.naqigs|adScript|-tl\d\.js|clickeye|alimama|egooad|SNDANewsBar|/stat\.uuu9|/soqidian/|/cesoft_\d|91(?:ivr|ok)|zonyou\.|\.0252\.|50bang|biz\d|googleadservices|\.biyici|_gg\d?\.|/news_contentad|/ggb|/js/outwin|ggg/js/soft04|/button/rotator|/tan(?:chuang)?[/.]|kaicn\.com/style/js/js\.js|qq-jixiankatong|diyiad)[^>]*?>([\s\S](?!<(?:scr|ifr)))*?<[^>/]{0,3}?/(?:sc|ifr|s["']\+["']c|'\+'scr)[^>-]*?>###
- #ex#<(?:scr|ifr|s"\+"c)[^>]*?(?:(?:\.|/|_|-|src=["']?)(?:a2d|ads?(?!\.js)(?:\d*(?!_flv|/4e521|/[^>]*?/modi=|_local|/keyword|/css|_js)|en[cs]e|inf|logo?|file|words|v(?!\.js)|top|code|puba|f?show(?!\.jsp|\?user)|site|view|sys)|sp(?:onsor|code)|cp(?:c\d?|ro)|ulink(?:js|dir)|keyrun|ifocus|ivansms|SogouUnion(?:ads|bid)?|dotmore|themis|(?:ali)?union(?:sky|sys)?|all4ad|corporate|(?:guan|my)gg(?:ao)?|p4p|bdun|chat_online|pagead\d*|3conline|online4|hot2|usmsweb|paypic|icast|pconlineAD|7clink|yigao|50sg|i2link|yadun)(?:\.|\\?/|_|-|\?)|(?:adm|pv|flashright|dd(?:-news)?|duilian|ui|google|yahoo|CheckTRS|show_ads)\d*\.(?:html?|js)|/gghead2950|/ejia/|w=282&h=282|/s\.js|/80[12]\.tianya|\.xenw\.|/myad|wauee\.|/UVV_MOYU|/if/07top-new|\.acs86|468[\.x_]|/duowan/|goodou\.com/tt.js|Contentmiddle_|[^e]adcode|/rsdowngood_|/adhead\d?\.|qq200x130|ads(?:ame|ue\.)|\.339\.cn|adid=|/js/yun\.|/jsgg/|51spsoft_Down_menu|d9ad|indexbottom1|/verycms/|/sg\.js|video_source|/gg/dt|/gad|/showme|wpopup|/scr/c_"|skypead|top\.thGetOv|molidao|adserving|\?zoneid=|adeastday|\.pee\.cn|dbjs\.|(?:dl|fc)_bbs|/tc00\d|yxbao\.|/wcast)[^>]*?>[\s\S]*?<[^>/]{0,5}?/(?:sc|ifr|s"\+"c)[^>]*?>###
- #ex#<(?:im|embed|object)[^>]*?(?:(?:width=\\?["']?(?:(?:[5689]|7(?!85|00))(?:[02-689]|7(?!7))\d|4[68][58](?!" height="286")|430(?!"\sheight="198")|494|446|315|3[04]0(?!"?\sheight="?(?:70|12|288|45|200))|100[0-35-9])|height=\\?["']?(?:1(?!46)|2(?!95|83|59))?[04-9]\d)\b[^>]*?\s(?:height=\\?["']?(?:(?:1(?!46|74)|2(?![89]5|48|51|28|41|07))?(?:[048-9]|5(?!2)|6(?!4)|7(?!0" border="0" usemap=))\d|130|[12]2\d|210|113)|width=\\?["']?(?:(?:[689]|7(?!85)|5(?!50))[03-9]\d|468|315|100\d))\b|alt="?(?:ad|[^ ]*?广告)|[5-9][2-9][058][x_-](?:[4-9]|10)0[^\d]|id=iie|(?:\.|/|_|-|src=["']?)(?:a2d|ads?(?!\d{2}?_)(?:\d*|images?|img|en[cs]e|gif|graph|inf|logo?|pic|file|words|v(?!\.swf|/)|top|code|puba|list|show|site|view)|(?:ali)?union(?!\.bokecc)(?:sky|sys)?|all(?:4ad|yes)|(?:guan|mop|my)gg(?:ao)?|p4p|bdun|biz\d|chat_online|timages|paypic|myad|icast|pconlineAD|7clink|50sg|AD(?:Pictures|flashes)|yadun|bingpai)(?:\.|\\?/|_|-|\?)|/(?:gg|js(?!/load|/f_|/hot))\\?/|/ejia(?:360|/)|albb_|ntny_360|778_110|200_460|jiaoyuan|ks576|hp_\d|(?:wl|rx)sg[._/]|/aadd/|[_/]360_?150|/tyad_|\.900\.la|175_65\.|/logo\d\.gif|/svnad/|_300X135|/sydh|[^\d]1[258]0[x_-][2-6]\d{2}|/Images/169|[^oe]ad\.gif|qidian\.com/Flash/|id=\\?"obj1|/08gg/|/cmcc/|molidao)[^>]*?>###
- #ex#<tbody id="cate_info" style="display:;">[\s\S]*?</tbody>###
- #exd#*.sohu.*#(?:<table border=0 cellspacing=0 cellpadding=0 align="left">[\s\S]*?</td></tr></table>|<div (?:id|class)="ad_[a_zA-Z]"[^>]*?>[\s\S]*?</SOHUADCODE>\s*?</div>|<div (?:id|class)="(?:ad950|picList Area|adA area)"[^>]*>[\s\S]*?(?:</ul>)?\s*?</SOHUADCODE>\s*?(?:</ul>\s*?)?(?:</div>\s*?){2}|<sohuadcode>\s*<div[^>]*?>\s*</div>|<SOHUADCODE><h2 class="titleB">[\s\S]*?</sohuadcode>)###
- #exd#*.sohu.com*#<div (?:id|class)="?(?:column190"|picList Area|ad[AB] area"|TurnAD(?:\d|_m)|bigAd Area bigAd)[^>]*?>###<div style="display:none">
- #exd#*.pconline.com*#<td [^>]*?height="90[\s\S]*?/tr>###
- #exd#*.pcpop.com*#(?:<table width="964" border="0"[\s\S]*?/table>|<div class="pop_1_left"[\s\S]*?/div>\s*?</div>)###
- #exd#*.btchina.net*#<!-- begin of ad block -->[\s\S]*?<!-- end of ad block -->###
- #exd#*tieba.baidu.com*#<table [^>]*?id="rightAd">[\s\S]*?<table width="72%" border="0" cellpadding="0" cellspacing="0">###<table width="72%" border="0" cellpadding="0" cellspacing="0">
- #exd#*www.baidu.com*#<table [^>]*?width="(?:30|25)%"[\s\S]*?</td></tr></table>###<table>
- #exd#*mydrivers.com*#(?:<!--AD770Begin-->[\s\S]*?<!--AD770End-->|(?:<!--Alimama No Iframe-->|align=center style="height:90px)[\s\S]*?</div>|<table width="923" height="60" border="0"[\s\S]*?</table>)###
- #exd#*syzw.cn*#(?:<!--顶部第一广告位开始-->[\s\S]*?<!--顶部第一广告位结束-->|<td colspan="4" class="ccss"><div class="ddccss">[\s\S]*?</tr>)###
- #exd#*.yahoo.com*#<div id="yhp-ad-.-ct" class="disnone">[\s\S]*?</div>###
- #exd#*jjwxc.net*#<div id="header">[\s\S]*?</div>\s*</div>\s*</div>###
- #exd#*zol.com.cn*#(?:<!--AD(?:98|104|196)AD-->|<div class='top_ad_s'>)[\s\S]*?<div class="div_body">###</div></div></div><div class="div_body">
- #exd#*zol.com.cn*#<div class=(?:"Bm_ad">[\s\S]*?|"top_ad mt8">[\s\S]*?</script>)</div>\s*</div>###
- #exd#*.duowan.com*#<div id="pageContTop">[\s\S]*?<!-- pageContTop -->###
- #exd#*.16k.cn*#<div id="Top">(?!\s*<div id="Menu">)###<div style="display:none">
- #exd#*.bibidu.com/download*#<body>[\s\S]+?<div id="div_down" style="display:none">###<body><div>
- #exd#*.tfwx.net*#<div id="BookText" style="float:left;overflow:hidden;width:710px;">###<div id="BookText" style="float:left;overflow:hidden;width:970px;">
- #exd#*.sina.com*##Part(C|E|H) .left\{height:\d{3}px;\}####Part$1 .left{height:300px;}
- #exd#*.sina.com*#var (?:objFlash|oswf|fo\b|of|mnBottomFloat_D4S5E4FV)###
- #exd#*.taobao.com*#FP.popupAD=###
- #exd#*bbs.crsky.com*#<!--ads begin--><div class="t5"[\s\S]*?</table></div>###
- #exd#*myfiles.com*#<table width="923" height="60" border="0"[\s\S]*?</table>###
- #exd#*/dygod.c*#<p style='margin-top: -(?:390|375)'>###<p style='margin-top: -110'>
- #exd#*.wsj.com*#<scr[^>]*?(?:google-analytics|/s_code|Omniture_Var[as])[\s\S]*?</script>###
- #exd#*.cctv.com*#<!-- 右下弹出页-->[\s\S]*?<!--remian-->###
复制代码 6月6日 优化一下,调整一下前后顺序
6月16日 此规则已放到一楼更新,此处不再更新 |
|