[Greasemonkey] How to create a library.

John Plsek gm at plsek.id.au
Thu Sep 8 12:12:35 EDT 2005


Jeremy Dunck wrote:

>On 9/7/05, Pedro Del Gallego <pedro.delgallego at gmail.com> wrote:
>  
>
>>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
>  
>
any way of implementing turnabout's @library metadata? i.e. (from 
turnabout developer page - http://www.reifysoft.com/developers.php)

Turnabout supports all of the Greasemonkey metadata fields, as well as 
one of its own:

    * @library (use in place of @name) to indicate that a script is a 
library. All scripts can access variables and methods defined in a library.

John


More information about the Greasemonkey mailing list