Ticket #38: gmStorage.patch

File gmStorage.patch, 1.6 kB (added by e.@enlightened.de, 8 months ago)
  • components/greasemonkey.js

    old new  
    255255      sandbox.console = console; 
    256256      sandbox.GM_setValue = GM_hitch(storage, "setValue"); 
    257257      sandbox.GM_getValue = GM_hitch(storage, "getValue"); 
     258      sandbox.GM_deleteValue = GM_hitch(storage, "deleteValue"); 
     259      sandbox.GM_enumerateValues = GM_hitch(storage, "enumerateValues"); 
    258260      sandbox.GM_openInTab = GM_hitch(this, "openInTab", unsafeContentWin); 
    259261      sandbox.GM_xmlhttpRequest = GM_hitch(xmlhttpRequester, 
    260262                                           "contentStartRequest"); 
  • chrome/chromeFiles/content/prefmanager.js

    old new  
    2828  } 
    2929 
    3030  /** 
     31         * enumerate preferences 
     32         */ 
     33        this.enumerateValues = function() { 
     34                return pref.getChildList("",{}); 
     35        } 
     36 
     37  /** 
    3138   * returns the named preference, or defaultValue if it does not exist 
    3239   */ 
    3340  this.getValue = function(prefName, defaultValue) {