[Greasemonkey] Greasemonkey Imports now available.

Gareth Andrew freega at freegarethandrew.org
Wed Sep 28 01:30:25 EDT 2005


Hi all.

I've made my greasemonkey imports patch a little more robust, and done
some testing.  Its now ready for review and integration into the
greasemonkey source tree.
The code is available from
http://freegarethandrew.org/projects/GreasemonkeyImports/
 and some slightly verbose documentation is available at
http://www.freegarethandrew.org/mediawiki/index.php?title=GreasemonkeyImports

Since the proof-of-concept code I posted, I've added.
* Support for relative URI's
* Mild security checks so that a remote script cannot import local
resources.
* Plenty of tests and examples.

Unfortunately I've also had some setbacks and I've had to remove support
for binary files, as they don't travel well over xhr.  The workaround is
to import text files which contain data URI's.  This means I've dropped
the getDataURI() and the getFileURL() methods, as the former was
difficult to write and the latter wasn't of any use and posed a mild
security risk.

I'd really appreciate it if someone who knew what they were doing gave
it a bit of a security audit as I'm really out of my depth in that
field. 

I'd (obviously) also appreciate any and all feedback you have, and
thanks for the kind words last time I posted.

Gareth Andrew.





More information about the Greasemonkey mailing list