This following page
http://news.yahoo.com/news?tmpl=story2&cid=540&ncid=736&e=1&u=/ap/20020912/ap_on_re_mi_ea/israel_palestinians
generates Javascript error when showing it using with
3.0 stock configuration with IE 6.x. The error as follows:
Line: 2
Char: 7
Error: Invalid Character
Code: 0
and the page itself shows as:
<html>
<head>
<title>
Logged In: YES
user_id=79346
The page also shows an "invisible" error in Mozilla at:
http://us.a1.yimg.com/us.yimg.com/a/1-/jscodes/072002/fs_pb_fitted_072002b.js
which is a Javascript file loading a GIF file (ad?), which
is converted to an invalid (converted?) GIF it seems:
GIF89aI was a banner
(I could not exactly copy-and-paste).
The same problem exists with http://my.yahoo.com page too for:
http://us.i1.yimg.com/us.yimg.com/a/1-/java/login/login_md5.js
Logged In: YES
user_id=78811
Have an idea. Can you please try
{-handle-as-image}
/.*\.js
as the last section of user.action?
Logged In: YES
user_id=79346
Thanks for the suggestion, but it did not help. It seems
that it is not the js file which gets processed wrong, but
an actual GIF loaded by it?
Logged In: YES
user_id=78811
Unless you configured it otherwise, Privoxy will
block the javascript at the given URL and replace it
with an image. To verify, look at
http://config.privoxy.org/show-url-info?url=http%3A//us.a1.yimg.com/us.yimg.com/a/1-/jscodes/072002/fs_pb_fitted_072002b.js
You should see +image and +set-image-blocker{pattern} under
"Final results".
So the contents of the original JS, including any contained
image URLs, does not matter. What upsets your browser
is most likely that it expects a JS but gets a GIF (or HTML, if
you followed my previous suggestion) instead.
So, as a test, try:
{+handle-as-image
+set-image-blocker{http://www.privoxy.org/nop.js}}
/.*\.js
Which also shows very nicely why FR 538239makes sense.
Alternatively, you could unblock all JSs from yimg.com:
{-block}
.yimg.com/.*\.js
Logged In: YES
user_id=78811
Have now verified that both approaches solve the
problem. Rising prio on FR 538239 which will
allow supplying the proper substitute without
abusing set-image-blocker and without storing
it somewhere on the web.
Logged In: YES
user_id=79346
Thanks
{+handle-as-image
+set-image-blocker{http://www.privoxy.org/nop.js}}
/.*\.js
makes it better.
Should this (as a temporary solution until
http://sourceforge.net/tracker/index.php?func=detail&aid=538239&group_id=11118&atid=361118
addressed) added to the default.action file?
Thanks