[Greasemonkey] This script is not properly formatted!??

Anton Berezin tobez at tobez.org
Sun Feb 12 01:14:28 EST 2006


On Sat, Feb 11, 2006 at 05:42:27PM -0600, Jeremy Dunck wrote:
> On 2/11/06, Anton Berezin <tobez at tobez.org> wrote:
> > Did not help in my case;  I am getting "not properly formatted"
> > regardless of the mimetype I serve it with.
> >
> > http://www.tobez.org/download/greasemonkey/next-prev-navigation.user.js
> >
> 
> While the problem with us.o hasn't been resolved, I think this may
> have to do with the unicode regexs, such as:
> (prev(ious)?|vorige|zurück|zurück)
> 
> When I view that in ISO-8859-1, it's munged one way; if I switch to
> utf-8, it's munged a different way.  Which encoding is it actually in?

Heh.  I've no idea what JS RE engine does when it *meets* different
encodings (but I'd love to find out, so do tell me if you know the
answer), hence the idea of that ugly piece of code was to make it work
in both UTF-8 and ISO-8859-1.  So far it seems to do the job.

More to the point, it was never a problem for us.o updates of the
script; the multi-encodings ugliness is pretty old and never hindered
the updates before.

> Perhaps you could work around this by using \uFFFF escape sequences? 
> (I know that sucks.)

Yes it does.

Thanks,
\Anton.
-- 
An undefined problem has an infinite number of solutions.
-- Robert A. Humphrey


More information about the Greasemonkey mailing list