返回列表 发帖

[TheWorld 2] 求 msn 中国资讯 右下角 swf 广告过滤规则

如题,求高手编写一个适用于 http://msn.china.ynet.com/view.jsp?oid=66339966 的广告过滤规则,自己始终没有搞出来。

提示: 作者被禁止或删除 内容自动屏蔽
http://valid.canardpc.com/cache/banner/2854499.png
新浪/腾讯/饭否@小蛐蛐   twitter @jiayiming
如有过滤规则需要更新,请尽量原帖反馈提醒。

TOP

本帖最后由 ruoyu 于 2010-9-9 09:01 编辑
http://bbs.ioage.com/cn/viewthread.php?tid=124066&highlight=msn
jym2005 发表于 2010-9-9 00:34 http://bbs.ioage.com/cn/images/common/back.gif


这个是 3.x,我需要 2.x ,顺便想学学如何处理....

加一段源码,请高手分析分析,主要是要屏蔽 http://static.acs86.com/creative/a08/bauhiniahk5/3/adtv_01_sichuan.swf

<!--SmartMedia Begin:-->
<SCRIPT type=text/javascript src="http://smjs.allyes.com/ynet_com++caijing_inpage++sm++show.js"></SCRIPT>
<!--SmartMedia End-->
<SCRIPT type=text/javascript src="http://fun.ynet.com/res/10060/1.js"></SCRIPT>

<SCRIPT type=text/javascript src="http://smcommon.allyes.com/smcreative/flash_fx.js"></SCRIPT>

<SCRIPT language=JavaScript1.1 charset=GBK src="http://smartmedia.allyes.com/main/s?user=ynet_com|caijing_inpage|sm&amp;db=smartmedia&amp;border=0&amp;local=yes&amp;js=ie&amp;kv="></SCRIPT>

<SCRIPT type=text/javascript src="http://fun.ynet.com/res/10060/1.js"></SCRIPT>

<SCRIPT language=Javascript>
</SCRIPT>

<SCRIPT type=text/javascript src="http://fun.ynet.com/res/10060/1.js"></SCRIPT>
<!-- MMOBJ(N) _SMARTMEDIA_3327886665615566_CTRL_ undefined -->
<SCRIPT src="http://cast.ra.icast.cn/p/?id=1070"></SCRIPT>

<SCRIPT type=text/javascript src="http://fun.ynet.com/res/10060/1.js"></SCRIPT>

<SCRIPT language=javascript src="http://cast.ra.icast.cn/p/Post_ISAPI.dll?id=1070"></SCRIPT>

<SCRIPT language=javascript src="http://track.ra.icast.cn/ifocus/red.js"></SCRIPT>

<SCRIPT type=text/javascript src="http://fun.ynet.com/res/10060/1.js"></SCRIPT>

<SCRIPT type=text/javascript src="http://fun.ynet.com/res/10060/1.js"></SCRIPT>

<SCRIPT type=text/javascript src="http://fun.ynet.com/res/10060/1.js"></SCRIPT>

<SCRIPT type=text/javascript src="http://fun.ynet.com/res/10060/1.js"></SCRIPT>

<SCRIPT type=text/javascript src="http://fun.ynet.com/res/10060/1.js"></SCRIPT>

<SCRIPT type=text/javascript src="http://fun.ynet.com/res/10060/1.js"></SCRIPT>

<SCRIPT type=text/javascript src="http://fun.ynet.com/res/10060/1.js"></SCRIPT>

<SCRIPT type=text/javascript src="http://fun.ynet.com/res/10060/1.js"></SCRIPT>

<SCRIPT type=text/javascript src="http://fun.ynet.com/res/10060/1.js"></SCRIPT>

<SCRIPT type=text/javascript src="http://fun.ynet.com/res/10060/1.js"></SCRIPT>
<!-- MMOBJ(N) _IFOCUS_CONTROL_ undefined -->
<SCRIPT type=text/javascript>
<!--
ac_as_id = 2500;
ac_group_id = 0;
ac_click_track_url = "";
ac_format = 0;
ac_mode = 1;
ac_width = 280;
ac_height = 210;
ac_async = 0;
// -->
</SCRIPT>
<SPAN style="Z-INDEX: 2147483647; BORDER-BOTTOM: 0px; POSITION: fixed; TEXT-ALIGN: left; BORDER-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px auto; PADDING-LEFT: 0px; WIDTH: 350px; PADDING-RIGHT: 0px; DISPLAY: block; BACKGROUND: none transparent scroll repeat 0% 0%; HEIGHT: 320px; OVERFLOW: visible; BORDER-TOP: 0px; TOP: 265px; BORDER-RIGHT: 0px; PADDING-TOP: 0px; LEFT: 653px" id=AC_TR86_2500><SPAN style="BORDER-BOTTOM: 0px; POSITION: absolute; TEXT-ALIGN: left; BORDER-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px auto; PADDING-LEFT: 0px; WIDTH: 350px; BOTTOM: 0px; PADDING-RIGHT: 0px; DISPLAY: block; BACKGROUND: none transparent scroll repeat 0% 0%; HEIGHT: 320px; OVERFLOW: auto; BORDER-TOP: 0px; RIGHT: 0px; BORDER-RIGHT: 0px; PADDING-TOP: 0px"><SPAN style="BORDER-BOTTOM: 0px; POSITION: absolute; TEXT-ALIGN: left; BORDER-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px auto; PADDING-LEFT: 0px; WIDTH: 350px; PADDING-RIGHT: 0px; DISPLAY: block; BACKGROUND: none transparent scroll repeat 0% 0%; HEIGHT: 320px; OVERFLOW: hidden; BORDER-TOP: 0px; TOP: 0px; BORDER-RIGHT: 0px; PADDING-TOP: 0px; LEFT: 0px">
<OBJECT id=AC_CR86_2500 border=0 name=AC_CR86_2500 codeBase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" classid=clsid:d27cdb6e-ae6d-11cf-96b8-444553540000 width=350 height=320><PARAM NAME="_cx" VALUE="9260"><PARAM NAME="_cy" VALUE="8466"><PARAM NAME="FlashVars" VALUE=""><PARAM NAME="Movie" VALUE="http://static.acs86.com/creative/a08/bauhiniahk5/3/adtv_01_sichuan.swf"><PARAM NAME="Src" VALUE="http://static.acs86.com/creative/a08/bauhiniahk5/3/adtv_01_sichuan.swf"><PARAM NAME="WMode" VALUE="Transparent"><PARAM NAME="Play" VALUE="0"><PARAM NAME="Loop" VALUE="-1"><PARAM NAME="Quality" VALUE="High"><PARAM NAME="SAlign" VALUE="LT"><PARAM NAME="Menu" VALUE="0"><PARAM NAME="Base" VALUE=""><PARAM NAME="AllowScriptAccess" VALUE="always"><PARAM NAME="Scale" VALUE="NoScale"><PARAM NAME="DeviceFont" VALUE="0"><PARAM NAME="EmbedMovie" VALUE="0"><PARAM NAME="BGColor" VALUE=""><PARAM NAME="SWRemote" VALUE=""><PARAM NAME="MovieData" VALUE=""><PARAM NAME="SeamlessTabbing" VALUE="1"><PARAM NAME="Profile" VALUE="0"><PARAM NAME="ProfileAddress" VALUE=""><PARAM NAME="ProfilePort" VALUE="0"><PARAM NAME="AllowNetworking" VALUE="all"><PARAM NAME="AllowFullScreen" VALUE="true">
</objcet></OBJECT></SPAN></SPAN></SPAN>
<SCRIPT id=ac_js86_2500 type=text/javascript></SCRIPT>

<SCRIPT type=text/javascript src="http://fun.ynet.com/res/10060/1.js"></SCRIPT>

<SCRIPT type=text/javascript src="http://fun.ynet.com/res/10060/1.js"></SCRIPT>

<SCRIPT type=text/javascript src="http://fun.ynet.com/res/10060/1.js"></SCRIPT>
<!-- MMOBJ(D) _ADCHINA_CONTROL_==false -->
<SCRIPT type=text/javascript src="http://fun.ynet.com/res/10060/2.js"></SCRIPT>

TOP

提示: 作者被禁止或删除 内容自动屏蔽
http://valid.canardpc.com/cache/banner/2854499.png
新浪/腾讯/饭否@小蛐蛐   twitter @jiayiming
如有过滤规则需要更新,请尽量原帖反馈提醒。

TOP

本帖最后由 ruoyu 于 2010-9-9 15:39 编辑
#exd#*msn.*.ynet.com*#]*?fun.ynet.com[^>]*?>###
jym2005 发表于 2010-9-9 09:20 http://bbs.ioage.com/cn/images/common/back.gif


试了,好像很不错,先谢谢了。
另外,我自己也搞了个,针对其中的http://static.acs86.com/*下的所有 swf 过滤,不过还是你的简单...

TOP

建议使用楼主自己的关键字:   *.asc86.com/*
这样就可以过滤其它网站中包含的 asc86.com的广告。

TOP

Mark一下!!!
我在键入”呵呵“的时候,并不一定在微笑。

TOP

返回列表