3
Copyright (C) 2006-2008 Eric H. Jung and LeahScape, Inc.
4
http://foxyproxy.mozdev.org/
7
This source code is released under the GPL license,
8
available in the LICENSE file at the root of this installation
9
and also online at http://www.gnu.org/licenses/gpl.txt
11
window.onload=function(){
12
// works with ff 1.5, 2.x, and 3.x
13
var e = document.getElementById("catProxiesButton") || document.getElementById("connectionSettings");
14
if (e) e.setAttribute("oncommand", "onConnectionSettings();");
17
gAdvancedPane && (gAdvancedPane.showConnections = onConnectionSettings);
19
catch (e) {dump(e);/*wtf*/}
22
function onConnectionSettings() {
23
var fp = Components.classes["@leahscape.org/foxyproxy/service;1"]
24
.getService(Components.interfaces.nsISupports).wrappedJSObject;
26
if (fp.mode == "disabled")
27
document.documentElement.openSubDialog("chrome://browser/content/preferences/connection.xul", "", null);
29
var win = foxyproxy_common.getMostRecentWindow();
30
if (win && win.foxyproxy)
31
win.foxyproxy.onOptionsDialog();
33
alert("FoxyProxy Error");
34
document.documentElement.openSubDialog("chrome://browser/content/preferences/connection.xul", "", null);