Post Reply 
[F] "Manage: Specific Containers on sel. Sites 10.09.25" Bug
May. 27, 2011, 02:29 PM (This post was last modified: Jun. 12, 2011 11:38 PM by Kye-U.)
Post: #1
[F] "Manage: Specific Containers on sel. Sites 10.09.25" Bug
sidki changed the AdKeys-S format since version 2010-09-19, from when the leading dot is not needed in sAdKey's value.

However, it seems sidki forgot to update the filter part for iframe tag handling, where the filter still expects a leading dot in the sAdKey variable.

The iframe part:

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

I think it should be changed to:

Code:
|<iframe\s
([^>]++\s|)(id|class|name)\3=$AV(\4&$TST(sAdKey=(\6.$TST(\4=(($TST(\6)*)\7|*)))+))
Add Thank You Quote this message in a reply
May. 27, 2011, 06:31 PM
Post: #2
RE: "Manage: Specific Containers on sel. Sites 10.09.25" Bug
(May. 27, 2011 02:29 PM)whenever Wrote:  I think it should be changed to:

I think I agree.

Code:
[Patterns]
Name = "Manage: Specific Containers on sel. Sites     11.05.26 [sd] (d.0) BugFixTest"
Active = TRUE
URL = "$TST(hCT=*html)($LST(AdKeys-S)|$TST(sAdKey=*))"
Limit = 5000
Match = "<(div|form|h[1-6]|img|li|p|s(pan|tyle)|table|td|ul)\1\s"
        "(^$TST(comment=1)|$TST(tNoscript=1))([^>]++\s|)"
        "("
        "id=$AV(\4&$TST(sAdKey="
        "(\6.$TST(\4=(($TST(\6)($TST(sAdKeyR=<!--exact(:$TST(\6)|--)*)|*))\7|*)))+"
        "))$SET(3=id)"
        "|class=$AV(\4&$TST(sAdKey="
        "(\6.$TST(\4=(((*\s|)$TST(\6)($TST(sAdKeyR=<!--exact(:$TST(\6)|--)*)|*))\7|*)))+"
        "))$SET(3=class)"
        ")"
        ""
        "$TST(\7=*)("
        "(^$TST(sAdKeyR=<!--(hide|protect|strip_[a-z]+)\8(:$TST(\4)|--)*))"
        "$INEST(<$TST(\1),((^$TST(script=1*))|$TST(script=1*)(^*</script))*,</$TST(\1) >)</$TST(\1) >"
        "("
        "$TST(sAdKeyR=<!--dump(:$TST(\4)|--)*)$SET(5=\7)"
        "|$TST(\1=td$SET(9=<td style=\0height:0;padding:0\0>)$SET(5=</td>)|*)"
        ")"
        "|*>("
        "$TST(\8=protect$SET(5=\7)|strip_(all$SET(5=<\1>)|att$SET(5=<\1 \3="\4">)))"
        "|$SET(5=<\1 \3=\0\4\0 style=\0display:none!important\0>)($TST(\8=hide)|$SET(8=hidden))"
        ")$SET(2=-\8)"
        ")"
        ""
        "|<iframe\s"
        "([^>]++\s|)(id|class|name)\3=$AV(\4&$TST(sAdKey=(\6.$TST(\4=(($TST(\6)*)\7|*)))+))"
        "$TST(\7=*)*>("
        "(^$TST(sAdKeyR=<!--(hide|protect|strip_[a-z]+)\8(:$TST(\4)|--)*))"
        "(*</iframe >|)($TST(tIframe=1)$SET(tIframe=)|)"
        "|("
        "$TST(\8=protect$SET(5=\7)|strip_(all$SET(5=<\1>)|att$SET(5=<\1 \3="\4">)))"
        "|$SET(5=<\1 \3=\0\4\0 style=\0display:none!important\0>)($TST(\8=hide)|$SET(8=hidden))"
        ")$SET(2=-\8)$SET(tIframe=$GET(tIframe)1)"
        ")$SET(1=iframe)"
        ""
        "&&\7&($TST(script=*)|$SET(0="))"
        "&($TST(volat=*.log:2*)$ADDLST(Log-Main,[$DTM(d T)]\tWEB SiteSpec_\1\2 \t\3 \4 \t\u)|)"
Replace = "\9<span class=\0Pr0x&#x20;Pr0xCntS\0 style=\0display:$GET(displayD)\0>"
          "&#8226;&#160;SiteSpec-\1\2: \3 \4</span>$GET(sAdKeyR)\5"
Add Thank You Quote this message in a reply
Post Reply 


Forum Jump: