[Greasemonkey] Re: GM & FF memory leaks?

Tom Van Herreweghe tomvanherreweghe at telenet.be
Wed Feb 8 20:56:05 EST 2006


The idea of cleaning up your own garbage seems good to me. I have taken 
a look at the EventManager class of Andre, but I am not familiar with 
the use of classes in Javascript (or GM). Would it be possible to show 
me an example of how you would use this class in a userscript? I'm 
having problems with understanding how "global" the _registry of the 
class is, and when you can initialise the class. I have tried working 
with global vars in userscripts, but they are never available as a 
variable in a function. I can only use GM_setValue & GM_getValue. But 
unfortunately, those don't work with arrays.

Thanks,

Tom


More information about the Greasemonkey mailing list