Page 1 of 1
这个规则出了什么问题?
Posted: Jun 03 2009, 14:57
by Bonnie
Code: Select all
[Patterns]
Name = "Append Simple Styles"
Active = TRUE
URL = "$LST(Styles)"
Limit = 20
Match = "</head>"
Replace = "<style type="text/css"> \0 {display:none !important;}</style></head>"
styles的list里内容是
Code: Select all
www.aaa.com $SET(0=div#id > div:first-child)
可是匹配后的源代码是<style type="text/css"> {display:none !important;}</style></head>
似乎是规则有问题.试过在list里不论把0设置成什么都没法反映到匹配后的源代码里.
Re: 这个规则出了什么问题?
Posted: Jun 03 2009, 15:40
by phoenix
Re: 这个规则出了什么问题?
Posted: Jun 03 2009, 17:15
by ddbb
试了一下 在URL里 SET \0-\9 都是不行的........全局然后在下面 GET 是没问题的.......
不知道为什么........
Re: 这个规则出了什么问题?
Posted: Jun 03 2009, 21:32
by phoenix
就是说临时变量的存活期只在 URL Match 或文本替换部分,不能跨域生存。
Re: 这个规则出了什么问题?
Posted: Jun 04 2009, 13:25
by Bonnie
谢谢,解决了.