daily pastebin goal
36%
SHARE
TWEET

sasa

a guest Dec 16th, 2008 46 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. chrome/foxyproxy.jar!/content/options.js-64-  toggleStatusBarText(foxyproxy.statusbar.textEnabled);  
  2. chrome/foxyproxy.jar!/content/options.js-65-}
  3. chrome/foxyproxy.jar!/content/options.js-66-
  4. chrome/foxyproxy.jar!/content/options.js-67-function onUsingPFF(usingPFF) {
  5. chrome/foxyproxy.jar!/content/options.js-68-  document.getElementById("settingsURLBtn").disabled = usingPFF;
  6. chrome/foxyproxy.jar!/content/options.js:69:    foxyproxy.setSettingsURI(usingPFF?foxyproxy.PFF:foxyproxy.getDefaultPath());
  7. chrome/foxyproxy.jar!/content/options.js-70-  _initSettings();  
  8. chrome/foxyproxy.jar!/content/options.js-71-}
  9. chrome/foxyproxy.jar!/content/options.js-72-
  10. chrome/foxyproxy.jar!/content/options.js-73-function _updateLogView() {
  11. chrome/foxyproxy.jar!/content/options.js-74-    saveLogCmd.setAttribute("disabled", foxyproxy.logg.length == 0);
  12. --
  13. components/foxyproxy.js-367-        }
  14. components/foxyproxy.js-368-      }
  15. components/foxyproxy.js-369-      catch(ex) {}
  16. components/foxyproxy.js-370-    }
  17. components/foxyproxy.js-371-    if (o) {
  18. components/foxyproxy.js:372:      o == this.PFF && (o = this.getDefaultPath());
  19. components/foxyproxy.js-373-      var file = this.transformer(o, CI.nsIFile);
  20. components/foxyproxy.js-374-      // Does it exist?
  21. components/foxyproxy.js-375-      if (!file.exists()) {
  22. components/foxyproxy.js-376-        this.writeSettings(file);
  23. components/foxyproxy.js-377-      }
  24. components/foxyproxy.js-378-    }
  25. components/foxyproxy.js-379-    else {
  26. components/foxyproxy.js-380-      // Default settings file/path
  27. components/foxyproxy.js:381:      o = this.setSettingsURI(this.getDefaultPath());
  28. components/foxyproxy.js-382-    }
  29. components/foxyproxy.js-383-    return this.transformer(o, type);
  30. components/foxyproxy.js-384-  },
  31. components/foxyproxy.js-385-
  32. components/foxyproxy.js-386-  setSettingsURI : function(o) {
  33. --
  34. components/foxyproxy.js-399-  alert : function(wnd, str) {
  35. components/foxyproxy.js-400-    CC["@mozilla.org/embedcomp/prompt-service;1"].getService(CI.nsIPromptService)
  36. components/foxyproxy.js-401-      .alert(null, this.getMessage("foxyproxy"), str);
  37. components/foxyproxy.js-402-  },
  38. components/foxyproxy.js-403-
  39. components/foxyproxy.js:404:  getDefaultPath : function() {
  40. components/foxyproxy.js-405-    //var file = CC["@mozilla.org/file/local;1"].createInstance(CI.nsILocalFile);
  41. components/foxyproxy.js-406-    //var dir = CC["@mozilla.org/file/directory_service;1"].getService(CI.nsIProperties).get("ProfD", CI.nsILocalFile);
  42. components/foxyproxy.js-407-    var f = settingsDir.clone();
  43. components/foxyproxy.js-408-    f.append("foxyproxy.xml");
  44. components/foxyproxy.js-409-    //dump("settings file: " + f.path + "\n");
  45. --
  46. components/foxyproxy.js-423-  //   - "uri-string"
  47. components/foxyproxy.js-424-  //   - "file-string"
  48. components/foxyproxy.js-425-  //   - Components.interfaces.nsIFile
  49. components/foxyproxy.js-426-  //   - Components.interfaces.nsIURI
  50. components/foxyproxy.js-427-  transformer : function(o, desiredType) {
  51. components/foxyproxy.js:428:    o == this.PFF && (o = this.getDefaultPath());
  52. components/foxyproxy.js-429-    const handler = CC["@mozilla.org/network/io-service;1"].
  53. components/foxyproxy.js-430-              getService(CI.nsIIOService).getProtocolHandler("file").
  54. components/foxyproxy.js-431-              QueryInterface(CI.nsIFileProtocolHandler);
  55. components/foxyproxy.js-432-
  56. components/foxyproxy.js-433-    switch(desiredType) {
  57. --
  58. components/foxyproxy.js-493-      try {
  59. components/foxyproxy.js-494-        o = gFP.getPrefsService("extensions.foxyproxy.").getCharPref("settings");
  60. components/foxyproxy.js-495-      }
  61. components/foxyproxy.js-496-      catch(e) {
  62. components/foxyproxy.js-497-        this.alert(null, this.getMessage("preferences.read.error.warning", ["extensions.foxyproxy.settings", "writeSettings()"]));
  63. components/foxyproxy.js:498:        o = this.getDefaultPath();
  64. components/foxyproxy.js-499-      }
  65. components/foxyproxy.js-500-    }
  66. components/foxyproxy.js-501-    try {
  67. components/foxyproxy.js-502-      var o2 = gFP.transformer(o, CI.nsIFile);
  68. components/foxyproxy.js-503-      var foStream = CC["@mozilla.org/network/file-output-stream;1"].
RAW Paste Data
Top