关于2010.10.23 sidki-config的AdKeys-S

sidki config set的配置、使用,新手入门首选

Moderator: phoenix

Post Reply
red
Posts: 99
Joined: Mar 09 2010, 16:25

关于2010.10.23 sidki-config的AdKeys-S

Post by red » May 27 2011, 16:41

2010.10.23中AdKeys-S的表达式有所改变,但原来的写法仍然有效

2010.10.23

Code: Select all

#  For instance, to remove three tag classes - AdEShopHead, AdEShopMain,
#  textSmallGrey - at MSNBC:
#
#    (www.|)msnbc.msn.com/      $SET(sAdKey=$GET(sAdKey)adeshop.textSmallGrey.)
2009.2.13

Code: Select all

#    (www.|)msnbc.msn.com/	$SET(sAdKey=.adeshop.textSmallGrey.)
但对于iframe,似乎新的写法无效,只有老的写法有效?

给网址www.cngba.com/index.php,过滤下面的iframe iframe_shop

只有这样可以匹配

Code: Select all

# cngba
www.cngba.com/index.php     $SET(sAdKey=.iframe_shop.)
如下按新的写法并不匹配

Code: Select all

# cngba
www.cngba.com/index.php     $SET(sAdKey=$GET(sAdKey)iframe_shop.)

User avatar
phoenix
Site Admin
Posts: 525
Joined: Dec 29 2007, 16:27

Re: 关于2010.10.23 sidki-config的AdKeys-S

Post by phoenix » May 27 2011, 22:15

貌似是 sidki 更新规则的时候漏了处理 iframe 的那部分。

请将 Manage: Specific Containers on sel. Sites 10.09.25 [sd] (d.0) 规则中如下行:

Code: Select all

|<iframe\s
([^>]++\s|)(id|class|name)\3=$AV($AV(\4&$TST(sAdKey=.(\6.$TST(\4=(($TST(\6)*)\7|*)))+)))
改为:

Code: Select all

|<iframe\s
([^>]++\s|)(id|class|name)\3=$AV(\4&$TST(sAdKey=(\6.$TST(\4=(($TST(\6)*)\7|*)))+))
另外,从 2010.09.19 开始,原来 AdKeys-S 的内容建议移到 Exceptions-U 里了。

Code: Select all

###############################################################################
#
#  NOADDURL $LST(AdKeys-S) -- Naoko 4.5
#  Names of site-specific tag classes and IDs
#
#  Please add your own addiions to the Exceptions-U user list instead!
AdKeys-S 里 通过 $GET(sAdKey) 取到 Exceptions-U 中的值,再进行组合。

red
Posts: 99
Joined: Mar 09 2010, 16:25

Re: 关于2010.10.23 sidki-config的AdKeys-S

Post by red » May 27 2011, 23:13

1.就是说拆分成2条?
Exceptions-U中指定了sAdKey

Code: Select all

yoursite.com/ $SET(sAdKey=badtag.extratag.)
AdKeys-S 里还需写

Code: Select all

yoursite.com/ $SET(sAdKey=$GET(sAdKey))
2.对于sAdKeyR,还是只能在AdKeys-S里设置?

User avatar
phoenix
Site Admin
Posts: 525
Joined: Dec 29 2007, 16:27

Re: 关于2010.10.23 sidki-config的AdKeys-S

Post by phoenix » May 28 2011, 16:13

只是设置全局变量而已,所以:

1. Exceptions-U 中设定就可以了,无需再设置 AdKeys-S
2. 可以在 Exceptions-U 中设定

Post Reply