Removing data created by GM_setvalue

1,460 views
Skip to first unread message

Rob

unread,
Dec 8, 2006, 10:23:42 AM12/8/06
to greasemon...@googlegroups.com
Afternoon all,

When I use the GM_setvalue function I can see the additional entries
in about:config .

Is there a way to completely remove them? Are there any problems with
allowing them to build up in a users browser?

Rob

Lenny Domnitser

unread,
Dec 8, 2006, 10:50:19 AM12/8/06
to greasemon...@googlegroups.com

You can't remove them through your script, but you can:
* set them to null
* check "also uninstall associated preferences" when uninstalling a script
* in about:config, right click the preference and select "reset"
* Remove prefs in bulk by editing prefs.js
<http://kb.mozillazine.org/Prefs.js_file>. Exit Firefox, back up that
file, then run it through grep -v or similar.

As for problems, I've heard accounts of scripts that read a lot of
preferences getting sluggish. Otherwise, they take up space but
shouldn't affect performance unless you're running out of memory.

esquifit

unread,
Dec 8, 2006, 1:31:19 PM12/8/06
to greasemon...@googlegroups.com
It is not clear whether this is what you want to achieve, or if you
just do not want to have them displayed in about:config. It should be
clear that carrying out the steps suggested by Lenny effectively
amounts to same as definitively deleting those preference values.

I think there are plans for switching to the new storage schema
mozStorage [1] supported by Firefox 2, based on sqlite. If this
becomes true some day, it will be possible to keep about:config and
GM_Set/GetValue apart from each other.

[1] http://developer.mozilla.org/en/docs/Storage

2006/12/8, Lenny Domnitser <ldr...@gmail.com>:

Anthony Lieuallen

unread,
Dec 8, 2006, 2:52:27 PM12/8/06
to greasemon...@googlegroups.com
On 12/8/2006 1:31 PM, esquifit wrote:
> I think there are plans for switching to the new storage schema
> mozStorage supported by Firefox 2, based on sqlite. If this

> becomes true some day, it will be possible to keep about:config and
> GM_Set/GetValue apart from each other.

First, there are two different new storage APIs. Yes, one of them is
sqlite-backed.

I submitted a patch to the dev list as a proposed GM_ api for sqlite
access. The GM devs must be busy, because not a lot has been happening
over on the dev list recently. I haven't heard yea or nay for anything
I submitted.

http://groups.google.com/group/greasemonkey-dev/browse_thread/thread/8b82b4e5919b96dc

Jeremy Dunck

unread,
Dec 8, 2006, 3:10:54 PM12/8/06
to greasemon...@googlegroups.com
On 12/8/06, Anthony Lieuallen <aran...@gmail.com> wrote:
> I submitted a patch to the dev list as a proposed GM_ api for sqlite
> access. The GM devs must be busy, because not a lot has been happening
> over on the dev list recently. I haven't heard yea or nay for anything
> I submitted.
>
> http://groups.google.com/group/greasemonkey-dev/browse_thread/thread/8b82b4e5919b96dc
>

I'm alive, but not doing much contributing to GM lately. I have a
new job and recently launched a new site. Anyway, um, probably still
a few weeks before I can get around to GM stuff. :-/ Sorry.

Reply all
Reply to author
Forward
0 new messages