- chrome/foxyproxy.jar!/content/options.js-64- toggleStatusBarText(foxyproxy.statusbar.textEnabled);
- chrome/foxyproxy.jar!/content/options.js-65-}
- chrome/foxyproxy.jar!/content/options.js-66-
- chrome/foxyproxy.jar!/content/options.js-67-function onUsingPFF(usingPFF) {
- chrome/foxyproxy.jar!/content/options.js-68- document.getElementById("settingsURLBtn").disabled = usingPFF;
- chrome/foxyproxy.jar!/content/options.js:69: foxyproxy.setSettingsURI(usingPFF?foxyproxy.PFF:foxyproxy.getDefaultPath());
- chrome/foxyproxy.jar!/content/options.js-70- _initSettings();
- chrome/foxyproxy.jar!/content/options.js-71-}
- chrome/foxyproxy.jar!/content/options.js-72-
- chrome/foxyproxy.jar!/content/options.js-73-function _updateLogView() {
- chrome/foxyproxy.jar!/content/options.js-74- saveLogCmd.setAttribute("disabled", foxyproxy.logg.length == 0);
- --
- components/foxyproxy.js-367- }
- components/foxyproxy.js-368- }
- components/foxyproxy.js-369- catch(ex) {}
- components/foxyproxy.js-370- }
- components/foxyproxy.js-371- if (o) {
- components/foxyproxy.js:372: o == this.PFF && (o = this.getDefaultPath());
- components/foxyproxy.js-373- var file = this.transformer(o, CI.nsIFile);
- components/foxyproxy.js-374- // Does it exist?
- components/foxyproxy.js-375- if (!file.exists()) {
- components/foxyproxy.js-376- this.writeSettings(file);
- components/foxyproxy.js-377- }
- components/foxyproxy.js-378- }
- components/foxyproxy.js-379- else {
- components/foxyproxy.js-380- // Default settings file/path
- components/foxyproxy.js:381: o = this.setSettingsURI(this.getDefaultPath());
- components/foxyproxy.js-382- }
- components/foxyproxy.js-383- return this.transformer(o, type);
- components/foxyproxy.js-384- },
- components/foxyproxy.js-385-
- components/foxyproxy.js-386- setSettingsURI : function(o) {
- --
- components/foxyproxy.js-399- alert : function(wnd, str) {
- components/foxyproxy.js-400- CC["@mozilla.org/embedcomp/prompt-service;1"].getService(CI.nsIPromptService)
- components/foxyproxy.js-401- .alert(null, this.getMessage("foxyproxy"), str);
- components/foxyproxy.js-402- },
- components/foxyproxy.js-403-
- components/foxyproxy.js:404: getDefaultPath : function() {
- components/foxyproxy.js-405- //var file = CC["@mozilla.org/file/local;1"].createInstance(CI.nsILocalFile);
- components/foxyproxy.js-406- //var dir = CC["@mozilla.org/file/directory_service;1"].getService(CI.nsIProperties).get("ProfD", CI.nsILocalFile);
- components/foxyproxy.js-407- var f = settingsDir.clone();
- components/foxyproxy.js-408- f.append("foxyproxy.xml");
- components/foxyproxy.js-409- //dump("settings file: " + f.path + "\n");
- --
- components/foxyproxy.js-423- // - "uri-string"
- components/foxyproxy.js-424- // - "file-string"
- components/foxyproxy.js-425- // - Components.interfaces.nsIFile
- components/foxyproxy.js-426- // - Components.interfaces.nsIURI
- components/foxyproxy.js-427- transformer : function(o, desiredType) {
- components/foxyproxy.js:428: o == this.PFF && (o = this.getDefaultPath());
- components/foxyproxy.js-429- const handler = CC["@mozilla.org/network/io-service;1"].
- components/foxyproxy.js-430- getService(CI.nsIIOService).getProtocolHandler("file").
- components/foxyproxy.js-431- QueryInterface(CI.nsIFileProtocolHandler);
- components/foxyproxy.js-432-
- components/foxyproxy.js-433- switch(desiredType) {
- --
- components/foxyproxy.js-493- try {
- components/foxyproxy.js-494- o = gFP.getPrefsService("extensions.foxyproxy.").getCharPref("settings");
- components/foxyproxy.js-495- }
- components/foxyproxy.js-496- catch(e) {
- components/foxyproxy.js-497- this.alert(null, this.getMessage("preferences.read.error.warning", ["extensions.foxyproxy.settings", "writeSettings()"]));
- components/foxyproxy.js:498: o = this.getDefaultPath();
- components/foxyproxy.js-499- }
- components/foxyproxy.js-500- }
- components/foxyproxy.js-501- try {
- components/foxyproxy.js-502- var o2 = gFP.transformer(o, CI.nsIFile);
- components/foxyproxy.js-503- var foStream = CC["@mozilla.org/network/file-output-stream;1"].
SHARE
TWEET
sasa
a guest
Dec 16th, 2008
46
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
RAW Paste Data
