[Greasemonkey] How to create a library.

Jeremy Dunck jdunck at gmail.com
Wed Sep 7 16:20:57 EDT 2005


On 9/7/05, Pedro Del Gallego <pedro.delgallego at gmail.com> wrote:
> Hi,
> 
> I need to create few scripts with similar feature. I like to reuse
> several function, but i don't find how to call they after.
> 
> Has GM something like the include sentence in C?
> 
> It will be nice do if a could do :
> 
> include ( ./libraries/foo.user.js, myNameSpace)
> myNameSpace.foo();

It doesn't.

Feel free to add a request for an API:
http://dunck.us/collab/GreaseMonkeyUserScripts#head-68cca0b4cd20c940c1410bb1ccc58e403dc42d06


More information about the Greasemonkey mailing list