[Greasemonkey] deleting values set with GM_setValue()
Johan Sundström
oyasumi at gmail.com
Wed Aug 23 05:21:47 EDT 2006
> Aaron: Is there any plan to add the scriptval editor I wrote a little
> while back? http://www.mozdev.org/pipermail/greasemonkey/2006-June/thread.html#8574
In case it is, I'd appreciate a slight rephrasing of "Edit
Preferences" to something scarier, that doesn't invite humans quite as
much -- it's the script-local data storage being edited. Values on a
format that all user scripts to date have had control over, and been
at liberty to assume to strictly adhere to the exact same formatting
same script once stored there. Inviting unknowing users to "edit
preferences" also invites a whole can of worms in requiring far more
defensive coding and rigorous error reporting on user tampering.
I'm not suggesting the same isn't already possible with about:config,
but the kind of people to know and use that are typically the kind of
people who can also read the script code and will not pester script
authors with cries for help (or worse, incorrect bug reports) about
their new creative ways of inflicting luser script breakage on it.
The editor is a neat feature, though. I'm not against it per se, but
it's worth considering the feature from more perspectives than that of
a hacker playing with his own scripts or things he understands well.
With the great usability offered by GM today, it's easy to release GM
applications to users, and supporting them can be enough of a chore
without tempting them to play with data not exposed to them through
the mechanics of the script itself. (At least that's my experience
with GM applications of mine used by a few hundred more or less
average blogger users.)
--
/ Johan Sundström, http://ecmanaut.blogspot.com/
More information about the Greasemonkey
mailing list