[Greasemonkey] Use external library
Julien Couvreur
julien.couvreur at gmail.com
Thu Oct 27 10:16:06 EDT 2005
How does GM_import behave differently from a copy/paste of the script?
Does the import run in a sandbox, or does it "see" the regular window
object?
Cheers,
Julien
On 10/27/05, Jeremy Dunck <jdunck at gmail.com> wrote:
> On 10/27/05, Nicolas <scalpmail at gmail.com> wrote:
> > Hi,
> >
> > I'm creating a user script which use Ajax and lots of visual effects, and I
> > will really help me if I can use libraries like prototype or scriptaculous.
> > But I can neither include file (or did I miss something ?), neither
> > copy/paste those library content in my script because it gives me strange
> > errors like "object is not a function".
>
> There's an API coded called GM_import that will let you do this.
> http://www.freegarethandrew.org/mediawiki/index.php?title=GreasemonkeyImports#Code
>
> It was intended for 0.6.3, but I was a dork in applying the patch, so
> ran out of time.
> http://www.mozdev.org/pipermail/greasemonkey/2005-October/006368.html
>
> It'll definitely be in the next version of GM, which I hope to get out
> this weekend.
> _______________________________________________
> Greasemonkey mailing list
> Greasemonkey at mozdev.org
> http://mozdev.org/mailman/listinfo/greasemonkey
>
More information about the Greasemonkey
mailing list