Board logo

标题: [经验交流] 关于消除/去除广告的绝佳办法 [打印本页]

作者: sixsheeps    时间: 2009-9-11 13:37     标题: 关于消除/去除广告的绝佳办法

一直使用proxomitron来过滤广告。

最近发现tw有一个比较好的功能消除特定类型的广告。

方法就是:
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
将“允许执行脚本”关掉
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
后遗症是一些跟脚本有关的显示都没了。比如一些输入窗口显示不完整啦,下载链接地址不显示啦。

真需要显示的时候再打开一下就好了。

纯浏览网页的朋友可以试试看。
作者: wu57ti    时间: 2009-9-11 14:04

这一招比较狠,哈哈。
谢谢分享。
不过寻求一个温柔的……
作者: z75h    时间: 2009-9-11 14:36

你可以试试用过滤规则~~
我用的(一时找不到原帖,出自广告过滤交流区):
  1. /\/(?:(?:mynicedd|maimg|guangg?|d1(?!/file)|www/if|sy|jy|a-d-s|biz|bill/s2009)/|(?:wFloat|eiv|btn(?!\.jpg)|dvs|w-z1|hp_22|brite|biz5|rndView)\.|mcfg|zanzhu|(?:web)?gg\d?[/.](?!js|mop|img|112|pla)|wb/dldl)/
  2. /\.allyes/
  3. /adid=/
  4. #ex#<fieldset [^>]*?(?:(?:dashed|solid) #(?:a6ccf9|FF6666|E4EBF1|ff9966|E7F4FE|D7EFB9)|#a6ccf9 1px dashed)[^>]*>(?:[\s\S](?!/fieldset -->))*?<\\?/(?:fieldset|td|script)>###
  5. #ex#<body (?:onclick=\\?"javascript|onbeforeunload=web5c5c)[^>]*>###<body>
  6. #ex#<table (?:[^>]*?(?:text ad|[=_]ad_|[^n]banner(?!/tile|_ba)|联盟论坛|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>|<form))(?:\swidth="9(?:28"|00[^>]*)|\sheight="340")?)>[^{]*?</table>###
  7. #ex#<span [^>]*?id=(?!"top)"?'?(?:span_)?(?:(?:sy[pm]|[^>]*?_)?ad_(?!sec)|(?:ad)?banner|"gg1\d|dellad75090|span_(?:top|right)_)[^>]*>[\s\S]*?<\\?/span>###
  8. #ex#<div (?:[^>]*?(?:id|class)=\\?["']?(?:ad_(?!330)(?:\d(?![^ >]*?(?:60|_70|_5)"|"|50x)|(?:text|top)(?!">\s*(?:<div|<table)|"\sid="ad_)|style|pip"|wks_|intercat_)|(?:mid|footer|bottom)banner|ad_headerbanner(?:_none)?"><[ae]|ad(?!70060|2111|230)(?:660x|9[56]0x|760"(?!>\s*<sty)|[2-9]\d{3}|\d_\d|200_1"|10000)|(?:content|col\d) ad-b\d|banner(?:b(?!g)|\sban)|AdLayer|xenw|cl_style|csdnsty_|xl_ad|topbanner1|ad\d mass"|centerin|mladl|ggPicAd|ggBanner"|all_in_|temporarily|top_ad"|right_ads"|adExtension_(?!pu)|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|girl")[^>]*>|style="display:none">\s*<scr)(?:[\s\S](?!<!))*?</div>###
  9. #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|8le8le|orsoon/(?:index(?:top|_ad)|down_)|(?:index|[^s][^_]page(?:ad)?)(?:_top(?!5)|head|end|top[2-9]|bottomad|ad)|xlbaby/bbs\.|width="?468(?!"\s*height="(?:380|392|511)")|[\s=]height[=:]\\?['"]? ?(?:1(?![4578]|65|10|00px)|2(?!(?:[0679]|55|80|4[26]|1[026])))?(?:[0149](?!5 id=)|[58](?![562])|6(?!0" Style="Visibility|0" scrolling="no" frameborder="0")|7(?!2))[0256]\\?(?:px)?\b(?!%|"? width="100%)|union(?!/home|/common|/onewaylist)|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|homeadver|top_all|jump|piao|760(?:_\d)?|images/stock|yuegui|bootom\d|mlfoot|upcontent|hj_end|d/f\d?|qq|goo?|js/asp|ct|tc/tc|cjsh|RichMedia)\.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|778669)|adclient|t2click|vzhun|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|/tan(?:chuang)?[/.]|kaicn\.com/style/js/js\.js|qq-jixiankatong|diyiad|vodone|hotadv|static\.atm\.)[^>]*>(?:[\s\S](?!<(?:scr|ifr)))*?<[^>/]{0,3}?/(?:sc|ifr|s["']\+["']c|'\+'scr)[^>-]*>###
  10. #ex#<(?:scr|ifr|s"\+"c)[^>]*?(?:(?:[./_-]|src=["']?)(?:a2d|ads?(?!\.js|\.jyb)(?:\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|count)|sp(?:onsor|code)|cp(?:c\d?|ro)|ulink(?:js|dir)|keyrun|ifocus|ivansms|dotmore|themis|all4ad|corporate|(?:guan|my)gg(?:ao)?|p4p|bdun|chat_online|pagead\d*|3conline|online4|hot2|usmsweb|paypic|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|/zhifubao|ifengRotatorAd|/pu_nocap_cn|/external/public126|\.sfilm|qyclick|ad_right|google-analytic|/kdjl_306x200|/NewSNDAPop|icast\.|/adadmin|/mopgg|[^o]adframe(?!_)|55141\.|/bqzn000|/gghead|/pageMediaControl)[^>]*>[\s\S]*?<[^>/]{0,5}?/(?:sc|ifr|s"\+"c)[^>]*>###
  11. #ex#<(?:im|embed |object (?!id="czpl)|param )[^>]*?(?:(?:width=\\?["']?(?:(?:[689]|7(?!85|00)|5(?!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[035-9])|height=\\?["']?(?:1(?!46)|2(?!95|83|59))?[04-9]\d)\b[^>]*?\s(?:height=\\?["']?(?:(?:1(?!46|74)|2(?![89]5|48|[458]1|28|07))?(?:[048-9]|5(?!2)|6(?!4)|7(?!0" border="0" usemap=))\d|130|[12]2\d|210|113)|width=\\?["']?(?:(?:[689]|7(?!85)|5(?![057]0))[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}?_|/2009|/sorts)(?:\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|alimama|newhuagg/|(?: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}|760)|linkwww)\.(?:gif|jpg|swf)|/(?!t\d)[^ /.>]*?\d[x,×-](?![0-4]\d[-_.])\d{2}[^/.]*\.(?:swf|gif)|[4-9][02-9][035][x_-][4-9][05][^\d]|550210_|\.idc-1|[^\d]1[256]0[x_-][2-6]\d{2}\b|/img/ads/)[^>]*>###
  12. #ex#<tbody id="cate_info" style="display:;">[\s\S]*?</tbody>###
  13. #ex#<div (?:(?:class|id)=["']?(?:(?:cont)?topad(?!" st)|tonglan|end_info|licai|subjectpic|ad0\d|divRes1032|ADV?_\d|nei364|gg_|sidead\d|tg_|adtop(?:D|1)|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"|wanyxShowAD|margin_b"|followDiv|adRight|rightad"|adContentDiv|banner(?!">|_wai")|top_banner|winpop|ad_box"|gg\d{3}"|chan_side_blk"|chan_miscBlk|googleWideAds|FreeDefinePlaceholderControl1|advertisement|Gp1 GsAd|box08112806|hide_ad_headerbanner|pcbeta-gg)|(?:(?:id|class)="[^>"]*" )?style=[^>]*?(?:[;\s"]height:\s*(?:[6-9]0)px|"\s*width:300px;\s*height:250px"|width:320px;height:130px;))[^>]*>###<div style="display:none">
  14. #exd#*.sohu.com*#<div (?:id|class)=["']?(?:column190"|picList(?:0\d)? Area|ad[AB] area"|TurnAD(?:\d|_m)|bigAd Area bigAd|sogou_is|listF Area"|adA clear"|itmoren|[^>" ]{28,30}?)[^>]*>###<div style="display:none">
  15. #exd#*.sohu.*#(?:<table border=0 cellspacing=0 cellpadding=0  align="left">[\s\S]*?</td></tr></table>|<!--ad&banner & 实用工具入口 start-->[\s\S]*?<!--ad&banner & 实用工具入口 end-->|<div (?:id|class)="ad_[a_zA-Z]"[^>]*>[\s\S]*?</SOHUADCODE>\s*</div>|<div (?:id|class)="(?:ad950|area" id="livenba)"[^>]*>[\s\S]*?(?:</ul>)?\s*</SOHUADCODE>\s*(?:</ul>\s*)?(?:</div>\s*){2}?|<sohuadcode>\s*<div[^>]*>\s*</div>|<SOHUADCODE><h2 class="titleB">[\s\S]*?</sohuadcode>)###
  16. #exd#*.pconline.com*#(?:<td [^>]*?height="90[\s\S]*?/tr>|<div class="ivy950">[\s\S]*?</div>)###
  17. #exd#*.pcpop.com*#(?:<table width="964" border="0"[\s\S]*?/table>|<div class="pop_1_left"[\s\S]*?/div>\s*</div>)###
  18. #exd#*.btchina.net*#<!-- begin of ad block -->[\s\S]*?<!-- end of ad block -->###
  19. #exd#*tieba.baidu.com*#<table [^>]*?id="rightAd">[\s\S]*?<!-- End 右侧广告-->###
  20. #exd#*www.baidu.com*#<table [^>]*?width="(?:30|25)%"[\s\S]*?</td></tr></table>###<table>
  21. #exd#*mydrivers.com*#<div (?:align="center" style="(?:font-size:0px;)?padding[^>:]*?:[23]px;|id=sidebar1)[^>]*>###<div style="display:none">
  22. #exd#*syzw.cn*#(?:<!--顶部第一广告位开始-->[\s\S]*?<!--顶部第一广告位结束-->|<td colspan="4" class="ccss"><div class="ddccss">[\s\S]*?</tr>)###
  23. #exd#*jjwxc.net*#<div id="header">[\s\S]*?</div>\s*</div>\s*</div>###
  24. #exd#*zol.com.cn*#(?:<!--AD(?:294)AD-->|<div class="A_ad1 mt8">)[\s\S]*?<div class="div_body">###</div></div></div><div class="div_body">
  25. #exd#*zol.com.cn*#<div (?:(?:id|class)="(?:area10" class="A_topic mt8 bd"|A_head_ad"|Logor_ad r h12")|[^>]*?class="adSpace")[^>]*>###<div style="display:none">
  26. #exd#*.duowan.com*#<div id="pageContTop">[\s\S]*?<!-- pageContTop -->###
  27. #exd#*.16k.cn*#<div id="Top">(?!\s*<div id="Menu">)###<div style="display:none">
  28. #exd#*.bibidu.com/download*#<body>[\s\S]+?<div id="div_down" style="display:none">###<body><div>
  29. #exd#*.tfwx.net*#<div id="BookText" style="float:left;overflow:hidden;width:710px;">###<div id="BookText" style="float:left;overflow:hidden;width:970px;">
  30. #exd#*.sina.com*#(?:var (?:objFlash|oswf|fo\b|of\b|mnBottomFloat_D4S5E4FV|FullScreenData|popUpWin2)|<scr[^>]*?(?:/wgt_static|icast|/importplayer|/flashsurvey_|/pfp\.|/pagead|/rotator|/680\.|/huanhuan/baishi)[^>]*>[\s\S]*?</scr[^>]*>)###
  31. #exd#*.sina.com*##Part(C|E|H) \.left\{height:\d{3}px;\}####Part$1 .left{height:300px;}
  32. #exd#*.sina.com*#<DIV (?:(?:class|id)="(?:ads_780|(?:Ad_01 )?adNone|aln lnCo"|lnzx_con|botads|top(?:banner)?AD"|adFrame clearfix)|style="margin-bottom:8px;")[^>]*>###<div style="display:none">
  33. #exd#*.taobao.com*#FP\.popupAD=|<div class="J_DirectionalBox" id="J_DirectionalFloat"[^>]*></div>###
  34. #exd#*bbs.crsky.com*#<div class="t5"(?: style="margin-top:8px;border-bottom:0px;[^"]*")?>\s*<table[\s\S]*?</table></div>###
  35. #exd#*myfiles.com*#<table width="923" height="60" border="0"[\s\S]*?</table>###
  36. #exd#*/dygod.c*#<p style='margin-top: -(?:390|375)'>###<p style='margin-top: -110'>
  37. #exd#*.cctv.com*#(?:<!-- 右下弹出页-->[\s\S]*?<!--remian-->|<script [^>]*?/(?:script/flash|cctv_anta_)[^>]*></script>)###
  38. #exd#*.onlinedown.net*#<scr[^>]*?(?:huajun|/pcsoft_banner)[^>]*>[\s\S]*?</script>###
  39. #exd#*.stnn.cc*#<iframe [^>]*?/adpolestar[\s\S]*?</iframe>|<script [^>]*?zyad0\d[\s\S]*?</script>###
  40. #exd#*.jyb.cn*#<div class="banner">[\s\S]*?(?:</div>\s*){4}?|<iframe [^>]*?/adpolestar[\s\S]*?</iframe>###
复制代码
不过开启之后登陆雅虎邮箱会有问题。暂时还没有时间去看是哪句代码导致的。
作者: saup007    时间: 2009-9-11 14:43



才子们好~~!!
作者: sixsheeps    时间: 2009-9-13 00:53

3# z75h

三楼的过滤太多了吧。会不会影响速度哦~
作者: yangdm1222    时间: 2009-9-13 09:33

一个小插件adkiller就搞定了
作者: z75h    时间: 2009-9-16 15:13

3# z75h  

三楼的过滤太多了吧。会不会影响速度哦~
sixsheeps 发表于 2009-9-13 00:53 http://bbs.ioage.com/cn/images/common/back.gif

速度没感觉啊。
而且是重新排版的,很干净。就是不能登陆雅虎邮箱。




欢迎光临 世界之窗论坛 (http://bbs.theworld.cn/) Powered by Discuz! 7.2