[Greasemonkey] "Bloglines Keep All New Link" User script

Nicola Paolucci durden at gmail.com
Thu Jun 9 00:55:20 EDT 2005


On 6/8/05, Jeremy Dunck <jdunck at gmail.com> wrote:
> On 6/8/05, Nicola Paolucci <durden at gmail.com> wrote:
> > On 6/3/05, Mark Wubben <markwubben at gmail.com> wrote:
> > > Why do you need to "embed" the JavaScript code?
> >
> > I had tried without embedding the Javascript code into the page but
> > then those functions would not be found when clicking the 'keep all
> > new' link. Probably some simple thing I was missing.
> 
> You have to "export" any GM functions you want to be available outside
> the script itself.
> 
> For those functions, do:
> window.foo = function() {
> 
> }
> 
> instead of :
> function foo() {
> 
> }

Brilliant !! 
I kindof felt there had to be a cleaner way...
I will update the script, thanks !

ciao,
    Nick


More information about the Greasemonkey mailing list