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

Bill Donnelly donnelly at snowcrest.net
Wed Jun 8 15:50:35 EDT 2005


Didn't someone suggest recently that all functions
should be defined as:

foo = function() {}

? or only in certain circumstances?

Jeremy Dunck wrote:

 >On 6/8/05, Nicola Paolucci <durden at gmail.com> wrote:
 >
 >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() {

-- 
Jack the Ripper may have been quite insane,
but he had beautiful penmanship.
btw -- Don't look back!
The lemmings are gaining on you.




More information about the Greasemonkey mailing list