[Greasemonkey] GM_setValue, getValue and default values for preferences

Aaron Boodman zboogs at gmail.com
Sun Sep 18 13:52:04 EDT 2005

Thanks for clarifying.

On 9/18/05, Ori Avtalion <oavtal at bezeqint.net> wrote:
> The isolated GM-only solution, as I see it, is to expose the third
> parameter of setValue in GM_setValue (defaultValue).
> Also, if it's called without defaultValue, it should be called with an
> empty value - exposing the value isn't just a fix, but could be used by
> devs to give meaningful default values to their "global vars".

Ok, this should be a bug for Greasemonkey. And if you want to submit a
patch (hint, hint) I will review it.

> Of course, all of these actions should be taken if it's important to
> prevent GM crashes when users mess with about:config (I think it is).

It is.


More information about the Greasemonkey mailing list