Thread Closed 
Beta Config (Sep 19 2010)
Oct. 09, 2010, 03:36 PM
Post: #76
RE: Beta Config (Sep 19 2010)
twitter is very popular now so I suggest an entry in Exceptions.ptxt for new tweets auto update.

Code:
twitter.com/            $SET(0=i_timer:0.)
Oct. 09, 2010, 04:10 PM (This post was last modified: Oct. 09, 2010 04:21 PM by sidki3003.)
Post: #77
RE: Beta Config (Sep 19 2010)
If "auto update" is referring to those horizontal/vertical scrolling thingies at Twitter's frontpage, i'm afraid i'm not d'accord here:
For one, as with all such pages, that scrolling text drives me nuts. Wink
Secondly, on older machines such loops may use up a significant amount of CPU time.

Users can either press the "timer" button at the page bottom.
Or add the respective entry to their Exceptions-U list.
Oct. 09, 2010, 04:15 PM
Post: #78
RE: Beta Config (Sep 19 2010)
After this update Proxomitron will also inspect files for JS content, which come as text/css.

Code:
[Patterns]
Name = "Top JS Mark: Start     10.10.09 (multi) [sd] (d.r)"
Active = TRUE
Multi = TRUE
URL = "^$TST(keyword=*.(a_js|a_jssigns).*)"
Limit = 4
Match = "(^\s|ø|þ||»¿|¿)$TST(mHtml=0*)$STOP()(<!--|)\1"
Replace = "\1\þ\þ\ø"

Name = "Top Sniff: JS & VBS Content     10.10.09 [sd] (d.2 l.3)"
Active = TRUE
URL = "($TST(hCT=*html)|$TYPE(css)|$TYPE(oth))$TST(uHost=*)(^$TST(keyword=*.(a_js|a_jssigns|i_level:[12]).*))"
Limit = 5500
Match = "þþø$STOP()$TST(mHtml=0*)($TST(comment=1)[^\r\n]+\s(<!--[^\r\n]+\s)+|)"
        "(; ;+( /\**\*/)+)+ ("
        "//|((\( |)function(\s[^( ]+|)|(un|)escape|eval|if) \("
        "|var\s|sub\s|try {|new[ ](Object|Function) \("
        "|(document|window|self).[a-z]"
        "|[a-z_$][a-z0-9_.]+ (\= ("
        "($AVQ("*) ;|(^")(new[ ][^ \r\n;]+|[#*:*] ;|[a-z_$][a-z0-9_.$]+ [;{[(]))"
        "|\[+ {(^?++{1,70}: " <)(??)\5$SET(script=s-js)|[[{(]"
        ")"
        "|\([{[]+"(?)\5$SET(script=s-js)"
        ")"
        ")"
        ""
        "&"
        "($TST(hOrigRef=\4)|)($IHDR(Content-Type:( ) \6)|)$SET(0=Killed \9)"
        "("
        "($TST(\6=image/*)$SET(9=image)|$TST(flag=*.cont_typ_b:[12].*)$SET(9=blocking flag))"
        "($TST(volat=*.log:[12]c.*)$ADDLST(Log-Rare,WEB JS_Sniff \0 \t\u Ref: \4 CT: \6)|)"
        "|"
        "$TST(flag=*.adurl:1.*)(^$TST(keyword=*.(a_ads|a_js|a_adjs).*))"
        "$URL((*(:)\3)+{1}//("
        ""
        "($LST(AdHosts-J))\8$SET(1=\7\r\n\r\n)$SET(9=AdHj \8)"
        "|(^$TST(flag=*.adhost:[#*:0].*))($LST(AdHosts))\8(^[a-z0-9])$SET(9=AdH \8)"
        "|([^/]++.|)($LST(AdDomains))\8(^[a-z0-9])$SET(9=AdD \8)"
        "|[^/?]+("
        "(^$TST(flag=*.adpath:[#*:0].*))*[/._?&;=-]($LST(AdPaths))\8(^[a-z0-9])$SET(9=AdP \8)"
        "|(^$TST(keyword=*.a_track_s.*))"
        "*[/.=_-]($LST(AdPaths-J)(^[a-z0-9]))\8$SET(1=\7\r\n\r\n)$SET(9=AdPj \8)"
        ")"
        ""
        "))"
        ")"
        ""
        "|"
        "(^$TST(mHtml=*ajax)|$TST(volat=*.post:1.*))$SET(0=Refetch)"
        "((^$TST(\5=*))|$TST(\5=??)"
        "$TST(volat=*.log:2*)$ADDLST(Log-Main,[$DTM(d T)]\tWEB JS_Sniff s-js \t\u Ref: \4 CT: \6)PrxFail$TST()"
        ")($TST(uProt=\5&https:)$TST(keyword=*.i_ssl_h:[12].*)$SET(3=http://https-px-.)|$SET(3=\5//))"
        "($OHDR(Referer:( ) \#)|)"
        "$SET(9=$GET(uHost)$GET(uPort)\p\q)"
        "$ADDLST(Mem-ScriptSrc,$WESC(\9)(^?))$SET(8=\3\9?prx-sniff:javascript&prx-ref:\@)"
        "$SET(1="
        "<!--\r\n"
        "(function () {\r\n"
        "  var bUrl = "\8";\r\n"
        "  if (document.write && window.prxO && prxO.oiLoaded == 1)\r\n"
        "    document.write("<script type=\\"text/javascript\\" src=\\"" + bUrl + "\\"></script>");\r\n"
        "  else {\r\n"
        "    if (!window.PrxAppendJs)\r\n"
        "      window.PrxAppendJs = function (aUrl) {\r\n"
        "        var scr = document.getElementsByTagName("script"),\r\n"
        "        xns = document.documentElement.namespaceURI,\r\n"
        "        tag = xns ? document.createElementNS(xns, "script") : document.createElement("script");\r\n"
        "        tag.type = "text/javascript"; tag.src = aUrl;\r\n"
        "        scr = scr[scr.length - 1]; scr.parentNode.appendChild(tag);\r\n"
        "      }\r\n"
        "    PrxAppendJs(bUrl);\r\n"
        "    window.prxO && prxO.oInt && prxO.oInt.inFooter(4, "Late JS", "$ESC(\0 - \2 - \6)", 1);\r\n"
        "  }\r\n"
        "}) ();\r\n\r\n"
        ")"
        ""
        "&"
        "($TST(uFile=;+([^,;=]+)\2*)|$SET(a=\q)($TST(a=(\2[&;]*|\2))|$SET(2=/)))"
        "($TST(volat=*.log:2*)$ADDLST(Log-Main,[$DTM(d T)]\tWEB JS_Sniff \0 \t\u Ref: \4 CT: \6)|)"
Replace = "// <br><br> PROX: SCRIPT REPLACED BY JS SNIFFER \(\0\). <br><br>\r\n\r\n"
          "\1"
          "if (window.prxO && prxO.oNce) {\r\n"
          "  if (!prxO.oNce.ncJsKills) prxO.oNce.ncJsKills = [];\r\n"
          "  prxO.oNce.ncJsKills.push(["Sniffer", "   $ESC(\0 - \2 - \6)"])\r\n"
          "}\r\n"
          "//-->$SET(a=)\k"

Name = "Top JS: Mark End     10.10.09 [sd] (d.r)"
Active = TRUE
URL = "^$TST(keyword=*.(a_js|a_jssigns).*)"
Limit = 3
Match = "þþø$STOP()"
Oct. 10, 2010, 06:35 AM
Post: #79
RE: Beta Config (Sep 19 2010)
(Oct. 09, 2010 04:15 PM)sidki3003 Wrote:  After this update Proxomitron will also inspect files for JS content, which come as text/css.

Well, after this update, the new twitter interface is not working any more.
Oct. 10, 2010, 08:23 AM (This post was last modified: Oct. 10, 2010 08:24 AM by sidki3003.)
Post: #80
RE: Beta Config (Sep 19 2010)
Well, thanks for the heads-up, but i have no clue what you mean, what's broken, where to look, with which browser, etc...
I managed to see the video on the page you linked to only with a US proxy. It seems to be a commercial about a new layout.
Which i don't see, even with that proxy.

Only change in above filter combo is that $TYPE(CSS) is included now in the JS content inspection.

Generally, the next release is due out soon, exact bug reports do help to keep things running. Wink
Oct. 10, 2010, 02:28 PM
Post: #81
RE: Beta Config (Sep 19 2010)
Browsers don't evaluate script blocks within title tags.
We should do the same, to get our code properly injected on malformed pages, such as:
http://uselessminx.com/Like_Ketchup.html
http://www.gilberts17thstgrill.com/Location.html
http://www.midlothianva.org/Services_IU86.html
http://www.tastingsofcville.com/Lunch_Menu.html

Please merge and test, as this change is a bit risky.

Code:
[Patterns]
Name = "Mark: Sel. Tags: HTML     10.10.10 (fail) [mona sd] (d.r)"
Active = TRUE
URL = "$TST(hCT=*html)"
Limit = 16
Match = "<("
        "\\/("
        "a >(^$TST(comment=1)|$TST(tAnc=j1*)$SET(tAnc=j))$SET(tAnc=)"
        "|iframe(^$TST(comment=1))$SET(tIframe=)"
        ")"
        "|no("
        "embed(^$TST(script=*)|$TST(comment=1))$SET(tNoembed=1)"
        "|frames(^$TST(script=*)|$TST(comment=1))$SET(tNoframes=1)"
        "|script(^$TST(script=1*)|$TST(comment=1))$SET(tNoscript=1)"
        ")"
        "|t("
        "able(^$TST(script=*)|$TST(comment=1))$SET(tTable=1)$SET(tAnc=)"
        "|extarea(^$TST(script=*)|$TST(comment=1))$SET(tTextarea=1)"
        "|itle(\s|>)(^$TST(script=*)|$TST(comment=1)|$TST(tAnc=j))$SET(tTitle=1)"
        ")"
        "|a(\s|>)(^$TST(comment=1))$SET(tAnc=$GET(tAnc)1)"
        "|frameset(^$TST(script=*)|$TST(comment=1)|$TST(mBody=*)|$TST(tNoscript=1))$SET(tFrameset=2)"
        "|html(^$TST(script=*)|$TST(comment=1)|$TST(tAnc=j))$SET(tHtml=1)"
        "|iframe(^$TST(comment=1))$SET(tIframe=$GET(tIframe)1)"
        "|object(\s|>)(^$TST(comment=1))$SET(tObject=1)"
        "|pre(^$TST(script=*)|$TST(comment=1)|$TST(tAnc=j))$SET(tPre=1)"
        "|style(\s|>)(^$TST(script=*)|$TST(comment=1))$SET(tStyle=1)"
        "|xmp(^$TST(script=*)|$TST(comment=1))SET(tXmp=1)"
        ""
        "|/("
        "no("
        "embed(^$TST(script=*)|$TST(comment=1))$SET(tNoembed=)"
        "|frames(^$TST(script=*)|$TST(comment=1))$SET(tNoframes=)"
        "|script >(^$TST(comment=1))$SET(tNoscript=)"
        ")"
        "|t("
        "able(^$TST(script=*)|$TST(comment=1))$SET(tTable=0)$SET(tAnc=)"
        "|d(^$TST(comment=1))$SET(tAnc=)"
        "|extarea(^$TST(script=*)|$TST(comment=1))$SET(tTextarea=)"
        "|itle >(^$TST(script=*)|$TST(comment=1))$SET(tTitle=)"
        ")"
        "|a >(^$TST(comment=1)|$TST(tAnc=j1*)$SET(tAnc=j))$SET(tAnc=)"
        "|center(^$TST(comment=1))$SET(tAnc=)"
        "|div(^$TST(comment=1))$SET(tAnc=)"
        "|html(^$TST(script=*)|$TST(comment=1))$SET(tHtml=)"
        "|iframe(^$TST(comment=1))$SET(tIframe=)"
        "|object >(^$TST(comment=1))$SET(tObject=)"
        "|pre(^$TST(script=*)|$TST(comment=1))$SET(tPre=)"
        "|style >(^$TST(script=*)|$TST(comment=1))$SET(tStyle=)"
        "|xmp(^$TST(script=*)|$TST(comment=1))$SET(tXmp=)"
        ")"
        ")PrxFail$TST()"
        ""
        "|javascript:(^$TST(comment=1)|$TST(script=*))$TST(tAnc=1*)$SET(tAnc=j)PrxFail$TST()"

Name = "Mark: Inline Scripts     10.10.10 (fail) [srl sd jd] (d.r)"
Active = TRUE
URL = "$TST(hCT=*html)"
Limit = 128
Match = "<("
        "script(^$TST(comment=[12])|$TST(tTitle=1)|$TST(script=s*))$SET(script=$GET(script)1)"
        "[^>]++src=$SET(script=$GET(script)c)"
        "|"
        "/script(^$TST(comment=[12])|$TST(tTitle=1)|$TST(script=s*))(>|\s[a-z0-9<>])$SET(script=)"
        ")"
        "PrxFail$TST()"
Oct. 10, 2010, 02:59 PM
Post: #82
RE: Beta Config (Sep 19 2010)
Sorry it is a false positive. I was in a rush to report it and I only got time until now to track down the issue.

I meant the new layout which is still running at http://twitter.com, but not all users can see the new layout right now. Anyway, this doesn't matter.

The issue came from the way I updated the new filters. I copied the new filters into clipboard then use the "Import filters from clipboard" command of Proxomitron to add them into the config. It usually works well but NOT well when there are special characters in the filters. For example, the last filter was changed as below when I open the config in a text editor.

Code:
Name = "Top JS: Mark End     10.10.09 [sd] (d.r)"
Active = FALSE
URL = "^$TST(keyword=*.(a_js|a_jssigns).*)"
Limit = 3
Match = "tt?$STOP()"

The "þþø" were changed to "tt?" and matched somewhere unexpectedly then caused the twitter website not showing up.

Everything is back to normal when I updated the filters via a text editor.

On the other hand, the right filter doesn't show up correctly in Proxomitron. See attached screenshot.

I just remember we had discussed this issue before at Castlecops forum several years ago. Sorry I totally forget it until now.

I am using the English version of windows XP. I doubt this issue came from the East Asian languages support I have enabled.


Attached File(s)
.png  special characters.png (Size: 26.37 KB / Downloads: 586)
Oct. 10, 2010, 04:13 PM (This post was last modified: Oct. 10, 2010 04:18 PM by sidki3003.)
Post: #83
RE: Beta Config (Sep 19 2010)
The screenshot looks like Mona's PtronGUI. I've found a few mails in my inbox regarding a PtronGUI font bug, dating May 2009, but i can't really reconstruct the details.

Anyway, it doesn't really matter what chars the GUI is showing, as long as they are correct (!!!) in the config file itself.
What chars the Proxomitron backend part is accepting depends on input field and position. That's why these special chars are backslash escaped in the replacement expression for "Top JS Mark: Start".


Meanwhile i have created a test account at twitter, and (i *think*) i see the new layout. I've looked around quickly.
Only problem i've noticed is that the page didn't load if going there via (Half-)SSL. Obviously something with the "location.protocol" property. There might be a generic fix, but it would for sure be time intense to find it. -> i_loc_j:0

Since you said something about allowing timers: allowing setTimeout is fine by me, as the setInterval scrollers on the frontpage (logged out, my location) still get intercepted. -> i_timer:2

Code:
twitter.com/            $SET(0=i_timer:2.i_loc_j:0.)
Oct. 10, 2010, 04:54 PM
Post: #84
RE: Beta Config (Sep 19 2010)
(Oct. 10, 2010 02:28 PM)sidki3003 Wrote:  Please merge and test, as this change is a bit risky.

...

so, with the "false positive" above, are these merge-and-test filters to be considered "updates" for the beta release, or "these were for a test, they are no longer needed" ?
Oct. 10, 2010, 04:59 PM
Post: #85
RE: Beta Config (Sep 19 2010)
the former Smile!
Oct. 14, 2010, 06:20 PM
Post: #86
RE: Beta Config (Sep 19 2010)
Update for "<a>: URL Untangler":
http://prxbx.com/forums/showthread.php?t...6#pid14886
Oct. 15, 2010, 04:55 AM
Post: #87
RE: Beta Config (Sep 19 2010)
http://cnn.com/tech is broken again in this new beta config while using light mode. (See http://prxbx.com/forums/showthread.php?tid=1233 .)

I've fixed this by adding the following to Exceptions-U.ptxt, just under "## use standard mode... ":
Code:
[^.]+.cnn.com/                     $SET(0=i_level:3.0.)

Seeing as cnn.com/tech is likely a very commonly accessed site, would it be proper to include this line in the Exceptions.ptxt file for the next official configuration?
Oct. 15, 2010, 05:14 AM
Post: #88
RE: Beta Config (Sep 19 2010)
Purging the log file, as instructed at http://prxbx.com/forums/showthread.php?tid=1382, results in a Prox. error that the file is not found, when restarting Prox. Instead of purging the file, should the instruction be to remove all text below the banner and resave?
Oct. 15, 2010, 05:59 PM (This post was last modified: Oct. 15, 2010 06:05 PM by sidki3003.)
Post: #89
RE: Beta Config (Sep 19 2010)
(Oct. 15, 2010 04:55 AM)wammie Wrote:  http://cnn.com/tech is broken again in this new beta config while using light mode. (See http://prxbx.com/forums/showthread.php?tid=1233 .)

I've fixed this by adding the following to Exceptions-U.ptxt, just under "## use standard mode... ":
Code:
[^.]+.cnn.com/                     $SET(0=i_level:3.0.)

Seeing as cnn.com/tech is likely a very commonly accessed site, would it be proper to include this line in the Exceptions.ptxt file for the next official configuration?

There already is a [^.]+.cnn.com/ entry. Each URL match has to be unique.
The "i_level" keyword is a no-go for the general Exceptions list, because it would force users using higher modes into a lower mode.

Adding site-based "minimum level" functionality to the config may be a useful feature, but that's something future developers (if any) will have to decide.

So for now please add exceptions of this type to your Exceptions-U list.
Oct. 15, 2010, 06:01 PM (This post was last modified: Oct. 15, 2010 06:17 PM by sidki3003.)
Post: #90
RE: Beta Config (Sep 19 2010)
(Oct. 15, 2010 05:14 AM)wammie Wrote:  Purging the log file, as instructed at http://prxbx.com/forums/showthread.php?tid=1382, results in a Prox. error that the file is not found, when restarting Prox. Instead of purging the file, should the instruction be to remove all text below the banner and resave?

Inserted "(i.e. remove all uncommented entries)" into respective statement.
Thread Closed 


Forum Jump: