It would be useful to be able to delete prefs created with GM_setValue so that unused preferences can be removed, and to be able to list all of a script's saved prefs.
Use case: my KoL Item Description Bubble script <http://userscripts.org/scripts/show/10850> caches small chunks of text (fetched with GM_xmlhttpRequest) in prefs under unique keys. It tracks what keys it has used so that cached items can be cleared. To remove prefs it sets the pref to a blank string.
- GM should permit prefs to be fully deleted (to disappear when the browser is restarted) via a GM_deleteValue.
- GM should permit pref names to be enumerated with GM_enumerateValues (name debatable). This would relieve my script of the duty of tracking which pref names it uses.
Yes, my script's cache is a perfect use case an SQLite or Gears data store in GM, but unless GM gains a method to delete prefs, migrating my script to a new data store will result in a bunch of junk prefs hanging around, anyway!