Changeset 745
- Timestamp:
- 06/18/08 18:51:21 (6 months ago)
- Files:
-
- trunk/src/chrome/chromeFiles/content/miscapis.js (modified) (1 diff)
- trunk/src/chrome/chromeFiles/content/prefmanager.js (modified) (1 diff)
- trunk/src/components/greasemonkey.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/chrome/chromeFiles/content/miscapis.js
r694 r745 65 65 }; 66 66 67 GM_ScriptStorage.prototype.deleteValue = function(name) { 68 return this.prefMan.remove(name); 69 } 70 71 GM_ScriptStorage.prototype.enumerateValues = function() { 72 return this.prefMan.enumerateValues(); 73 } 67 74 68 75 // Based on Mark Pilgrim's GM_addGlobalStyle from trunk/src/chrome/chromeFiles/content/prefmanager.js
r692 r745 29 29 return pref.getPrefType(prefName) != 0; 30 30 }; 31 32 /** 33 * enumerate preferences 34 */ 35 this.enumerateValues = function() { 36 return pref.getChildList("",{}); 37 } 31 38 32 39 /** trunk/src/components/greasemonkey.js
r737 r745 277 277 sandbox.GM_setValue = GM_hitch(storage, "setValue"); 278 278 sandbox.GM_getValue = GM_hitch(storage, "getValue"); 279 sandbox.GM_deleteValue = GM_hitch(storage, "deleteValue"); 280 sandbox.GM_enumerateValues = GM_hitch(storage, "enumerateValues"); 279 281 sandbox.GM_getResourceURL = GM_hitch(resources, "getResourceURL"); 280 282 sandbox.GM_getResourceText = GM_hitch(resources, "getResourceText");
