返回列表 发帖

[已过期] 迅雷看看(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
2010-10-11 14:44

kankan1.xml (1.09 KB)

本帖最后由 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 (203 Bytes)

TOP

谢谢分享,楼主辛苦了
行至水穷处 坐看云起时

TOP

感谢更新这个规则!非常有用 !~

TOP

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

KanKanclean.rar (162.16 KB)



TT截图未命名.jpg
2010-10-22 08:32

TOP

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

TOP

返回列表