Board logo

标题: [已过期] 迅雷看看(kankan.xunlei.com)更新于2010-10-22 [打印本页]

作者: bartchen    时间: 2010-10-11 14:41     标题: 迅雷看看(kankan.xunlei.com)更新于2010-10-22

本帖最后由 jym2005 于 2011-5-10 18:24 编辑

http://www.ioage.com/rule.png

  1. <rule>
  2. <name>迅雷看看播放AD</name>
  3. <domains>
  4.   <domain>
  5.    <include>
  6.     <![CDATA[*kankan.xunlei.com*]]>
  7.    </include>
  8.   </domain>
  9. </domains>
  10. <pattern type="1">
  11.   <targets>
  12.    <param>
  13.     <![CDATA[div]]>
  14.    </param>
  15.   </targets>
  16.   <pattern type="3">
  17.    <targets>
  18.     <param>
  19.      <![CDATA[id="normal_lamu"]]>
  20.     </param>
  21.     <replace>
  22.      <![CDATA[<div class="playad" id="normal_lamu" style="display:none;"></div>]]>
  23.     </replace>
  24.    </targets>
  25.   </pattern>
  26. </pattern>
  27. <pattern type="1">
  28.   <targets>
  29.    <param>
  30.     <![CDATA[div]]>
  31.    </param>
  32.   </targets>
  33.   <pattern type="3">
  34.    <targets>
  35.     <param>
  36.      <![CDATA[id="playad_5s_div"]]>
  37.     </param>
  38.     <replace>
  39.      <![CDATA[<!-- ADblock -->]]>
  40.     </replace>
  41.    </targets>
  42.   </pattern>
  43. </pattern>
  44. <pattern type="5">
  45.   <targets>
  46.    <param>
  47.     <![CDATA[<div[^<^>]*?id="_player"[\s\S]*?>]]>
  48.    </param>
  49.    <replace>
  50.     <![CDATA[<div class="playerbox" id="_player" style="left:55px">]]>
  51.    </replace>
  52.   </targets>
  53. </pattern>
  54. </rule>
复制代码
效果如下图:
TT截图未命名.jpg

图片附件: TT截图未命名.jpg (2010-10-11 14:44, 47.99 KB) / 下载次数 982
http://bbs.theworld.cn/attachment.php?aid=104016&k=03b5f615713233c4baaf80474bb12dc4&t=1715052063&sid=Iai7Fl



附件: kankan1.xml (2010-10-22 07:57, 1.09 KB) / 下载次数 2519
http://bbs.theworld.cn/attachment.php?aid=104022&k=4793b06d3c1807797e055071ab4c237c&t=1715052063&sid=Iai7Fl
作者: bartchen    时间: 2010-10-11 14:43

本帖最后由 bartchen 于 2010-10-11 17:36 编辑

以上代码有一个缺点,不能直接过滤暂停广告,找了很久暂停广告元素所在的位置,发现居然是直接用的flash放的广告,没有页面元素。
用以下的url过滤规则可去暂停广告
http://www.ioage.com/rule.png

  1. <urlrule>
  2. <name>迅雷看看暂停广告</name>
  3. <includeurls>
  4.   <![CDATA[*biz5.sandai.net*]]>
  5. </includeurls>
  6. </urlrule>
复制代码


附件: kankan2.xml (2010-10-11 17:27, 203 Bytes) / 下载次数 1760
http://bbs.theworld.cn/attachment.php?aid=104021&k=c32fab587d9ae5555124924ef0081bdb&t=1715052063&sid=Iai7Fl
作者: godenck    时间: 2010-10-12 16:03

谢谢分享,楼主辛苦了
作者: xdoit    时间: 2010-10-12 23:07

感谢更新这个规则!非常有用 !~
作者: bartchen    时间: 2010-10-22 08:31

再送一个看看缓存清理工具。

KanKanclean.rar (162.16 KB)



TT截图未命名.jpg

附件: KanKanclean.rar (2010-10-22 08:31, 162.16 KB) / 下载次数 1686
http://bbs.theworld.cn/attachment.php?aid=104375&k=13da02cfe46957372eb4c8e5f2a8c0db&t=1715052063&sid=Iai7Fl

图片附件: TT截图未命名.jpg (2010-10-22 08:32, 11.57 KB) / 下载次数 891
http://bbs.theworld.cn/attachment.php?aid=104376&k=f8708e9c0eb06e4d1e22bb0883400caf&t=1715052063&sid=Iai7Fl


作者: xdoit    时间: 2010-10-30 21:02

感谢!~非常好用的说~~




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