Ticket #38: gmStorage.patch
| File gmStorage.patch, 1.6 kB (added by e.@enlightened.de, 8 months ago) |
|---|
-
components/greasemonkey.js
old new 255 255 sandbox.console = console; 256 256 sandbox.GM_setValue = GM_hitch(storage, "setValue"); 257 257 sandbox.GM_getValue = GM_hitch(storage, "getValue"); 258 sandbox.GM_deleteValue = GM_hitch(storage, "deleteValue"); 259 sandbox.GM_enumerateValues = GM_hitch(storage, "enumerateValues"); 258 260 sandbox.GM_openInTab = GM_hitch(this, "openInTab", unsafeContentWin); 259 261 sandbox.GM_xmlhttpRequest = GM_hitch(xmlhttpRequester, 260 262 "contentStartRequest"); -
chrome/chromeFiles/content/prefmanager.js
old new 28 28 } 29 29 30 30 /** 31 * enumerate preferences 32 */ 33 this.enumerateValues = function() { 34 return pref.getChildList("",{}); 35 } 36 37 /** 31 38 * returns the named preference, or defaultValue if it does not exist 32 39 */ 33 40 this.getValue = function(prefName, defaultValue) {
