Improvement requests :  K-Meleon Web Browser Forum
Use this forum to talk about a feature you're missing. 
On/Off Button for Proxy
Posted by: pboserup
Date: March 14, 2003 10:53PM

As an IT pro, I really cound use an button to switch proxy on and off. Is this possible?
Paul
Sarasota, FL

Options: ReplyQuote
Re: On/Off Button for Proxy
Posted by: Ismo
Date: March 14, 2003 11:59PM

pboserup,

Look at Bojan's macros file
http://vuks.host.sk/km/km.zip

Options: ReplyQuote
Re: On/Off Button for Proxy
Posted by: pboserup
Date: March 15, 2003 01:14AM

Thanks, that's a start but having the proxy on\off on the main page next to the top level buttons ( File/Edit/View/Go/Favorites/Layer/Help) would be ideal.

Is there a detailed doc that explains the syntax?

pb

Options: ReplyQuote
Re: On/Off Button for Proxy
Posted by: Rayven
Date: March 15, 2003 07:22AM

In menus.cfg, under the Main section put macros(Proxyt, Proxy Toggle...)

Example:
Main {
...
:&Help
macros(Proxyt, Proxy Toggle...)
bmpmenu()
}

Options: ReplyQuote
Re: On/Off Button for Proxy
Posted by: pboserup
Date: March 16, 2003 02:15AM

Thanks Rayven - I got it to work.

Options: ReplyQuote
How can I switch proxies?
Posted by: istari
Date: June 03, 2003 03:30PM

I have a problem that would be very useful if solved..

My laptop has 3 internet connections, one via dial-up (for on the road), cable provider (at home) and local LAN/WAN (at work.) Annoyingly I have to change the damn proxies for each one when I connect (which I can do from memory now, but it's still a pain in the arse.)

Anybody know of a way I can have two (or more) proxy-configs and switch between them from a menu or toolbar button?

I've searched the forums and this topic seemed to come closest.

Cheers,
:-)

Options: ReplyQuote
Re: On/Off Button for Proxy
Posted by: alain.NOSPAM.aupeix@wanadoo.fr
Date: June 05, 2003 05:41PM

It seems to be easy with a menu entry and a submenu

In prefs.js, you can add three couples of lines like this:

user_pref("network1.proxy.http", "proxy1");
user_pref("network1.proxy.http_port", 8080);

user_pref("network2.proxy.http", "proxy2");
user_pref("network2.proxy.http_port", 80);

user_pref("network3.proxy.http", "proxy3");
user_pref("network3.proxy.http_port", 8080);

for exemple, and three macros called with buttons or menus

to put values in the real proxy lines

user_pref("network.proxy.http", "proxy2");
user_pref("network.proxy.http_port", 80);


in macros.def :

proxy1 {
menu = My first proxy;
$proxy = getpref(STRING, "network1.proxy.http");
$port = getpref(STRING, "network1.proxy.http_port");
setpref(STRING, "network.proxy.http", $proxy);
setpref(STRING, "network.proxy.http_port", $port);
}

proxy2 {
menu = My second proxy;
$proxy = getpref(STRING, "network1.proxy.http");
$port = getpref(STRING, "network1.proxy.http_port");
setpref(STRING, "network.proxy.http", $proxy);
setpref(STRING, "network.proxy.http_port", $port);
}

proxy3 {
menu = My third proxy;
$proxy = getpref(STRING, "network3.proxy.http");
$port = getpref(STRING, "network3.proxy.http_port");
setpref(STRING, "network.proxy.http", $proxy);
setpref(STRING, "network.proxy.http_port", $port);
}

in menus.def:

&Proxies {
macros(proxy1)
macros(proxy2)
macros(proxy3)
}

&Navigation {
....
....
....
%ifplugin history
macros(historique)
history()
%endif
macros(Proxies)
}

Options: ReplyQuote
Re: On/Off Button for Proxy
Posted by: alain.NOSPAM.aupeix@wanadoo.fr
Date: June 07, 2003 02:24PM

There were an error

in menus.cfg

this was not

macros(Proxies)

but

tongue sticking out smileyro&xies

Options: ReplyQuote
Re: On/Off Button for Proxy
Posted by: istari
Date: June 13, 2003 03:14PM

Sorry, was that in menus.def or menus.cfg?

Options: ReplyQuote
Re: On/Off Button for Proxy
Posted by: alain.NOSPAM.aupeix@wanadoo.fr
Date: June 13, 2003 06:37PM


menus.cfg obviously

:-))

Options: ReplyQuote
Re: On/Off Button for Proxy
Posted by: istari
Date: June 14, 2003 06:53PM

Schweet!

Thanks, it works great! :-)

Options: ReplyQuote
Re: On/Off Button for Proxy
Posted by: Jay
Date: December 25, 2003 03:51PM

very cool for those of us using some kind of anonymous proxy for example...

Options: ReplyQuote
HELP !
Posted by: Penang
Date: October 09, 2004 05:28PM

I went to http://vuks.host.sk/km/km.zip for Bojan's macros file but all I got is the "FORBIDDEN" thing !

HELP !!

Options: ReplyQuote
Re: On/Off Button for Proxy
Posted by: guenter
Date: October 09, 2004 05:53PM

the file has probably another name or location now - it is normal reaction for server to say forbidden - when try jump to place with wrong name.

standart procedure = shorten url to get on his (respective) home page:
i found this url maybe You find Your file from there or can contact him via his page.
http://vuks.host.sk/misc/km/

Options: ReplyQuote


K-Meleon forum is powered by Phorum.