Re: 关于5/24的所有......
Posted: Jun 18 2009, 16:20
看这个帖子的时候又发现好用了......
真是见鬼了.........太丢脸了.........
真是见鬼了.........太丢脸了.........
http://bbs.operachina.com/viewtopic.php ... 87#p172287<Match: <td>... Remove/Hide: Ad Containers - Headers 09.06.15 [sd] (d.3 l.3) >
<div class="content">........ad....<br />download<br /><br />...................<br /></div>
</Match>
目前的解决方法是用 [%20-%40%5b-%60%7b-%7e] 代替 [^a-z] 以避免匹配非英语字符。phoenix wrote:另一方面, 比如ad 这样的字符串也会被判定为广告,显然是 sidki 没有考虑到非英语系用户。
Code: Select all
[Patterns]
Name = "<td>... Remove/Hide: Ad Containers - Headers 09.06.27 [sd] (d.3 l.3)"
Active = TRUE
URL = "$TST(hCT=*html)(^$TST(keyword=*.(a_ads|a_adcont|a_adcont_h|i_level:[12]).*))"
Limit = 4500
Match = "<(div|td|center)\0(^$TST(script=*)|$TST(comment=1)|$TST(tNoscript=1))[^>]+("
"(> <(font|br+|img|h[1-6]|p|s(mall|pan|trong)|!--[^\r\n]++--)\6[^>]+)+>"
"( (^<(!-|code|/(div|td|center)))[^>]+(>)\4)++{0,1} (^<)(\&[a-z0-9#]+; |[%20-%40%5b-%60%7b-%7e])+"
")\8"
"("
"(a(d(vert(isers|s|)|s|)(^-) |n(nunci|zeigen+ ))|marketplace )(^[a-z0-9ä_+])"
"|(ad(s\sby\s|vert(enti|isem))|pubb+lici(dad|t(\&[a-z0-9#]+;|[àeé]))|(\w |)sponsor(^ed[a-z])"
"|(from|visit) our (advertiser|partner|sponsor))[a-z0-9 ]+{0,23} (^[a-z0-9])"
")\2"
""
"&("
"$TST(keyword=(^*.i_adtag:[#*:0].)\7)"
"$NEST(<$TST(\0),(*("
"<(!--*-- >|(t(able|body|foot|d|r|h)|div|script|noscript)\5$INEST(<$TST(\5),</$TST(\5) >)</$TST(\5) >)"
"|(<(/|)(t(able|body|foot|d|r|h)|div)*> )\#"
"))+*,</$TST(\0) >)$TST(\0=td$SET(#=<td style="height:0;padding:0">)$SET(3=</td>)|*)"
"|"
"((^$TST(\7=*))|(^$TST(\7=*.i_adtag:[12].*))$TST(\2=(marketplace|from|visit)*))"
"$SET(1=-hide)$SET(3=<\0 style="display:none!important"\8\2)"
")"
"($TST(volat=*.log:2*)$ADDLST(Log-Main,[$DTM(d T)]\tWEB Ad-Head\1 \0 \t\6 \4\2 \t\u)|)"
Replace = "\@<span class="Prox ProxCntMisc" style="display:$GET(displayD)">"
"• \0-head\1: \4\2</span>\3"
[Patterns]
Name = "<link> Block: External CSS on sel. Sites 09.04.30 [sd] (d.0)"
Active = TRUE
URL = "$TST(hCT=*html)$TST(sUserCSS=*)"
Bounds = "<link\s*>"
Limit = 512
Match = "\1( rel="+)\3(stylesheet*)\4"
"&(*title=$AV(*)|$SET(2= title="ProxBlockedCSS"))&(^(*href="http://local.ptron/*))"
Replace = "\1\2\3alternate \4"
你的规则是怎么写的?如果没有设置 multi-match 标记的话,替换后的内容会直接发送给浏览器,不会被其他规则再次匹配。ddbb wrote:可是如果我其他的规则也加了那个规则专用的CSS的话 也会被屏蔽掉.....
Code: Select all
[Patterns]
Name = "Images: Lytebox JS and CSS 09.06.19 [ddandyy]"
Active = TRUE
Multi = TRUE
URL = "$TYPE(htm)"
Limit = 10
Match = "</body>$TST(LBOXFLG=true)$SET(LBOXFLG=)"
Replace = "\r\n"
"<link rel="stylesheet" href="http://local.ptron/lytebox/css/lytebox.css" type="text/css" media="screen" />\r\n"
"<script type="text/javascript" src="http://local.ptron/lytebox/js/lytebox.js"></script>\r\n"
"</body>$STOP()"
Code: Select all
(^(^</body>))