General
: K-Meleon Web Browser Forum
General discussion about K-Meleon
Go to:
Forum List
•
Message List
•
Search
•
Log In
Your Name:
Subject:
Help information
BBcode help
Smileys help
Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
[Please, enable JavaScript to see the code]
Enter code:
[quote=Yogi] Back up your Proxy.kmm and replace it with this one: [code] # K-Meleon Macros (http://kmeleon.sourceforge.net/wiki/index.php?id=MacroLanguage) # ---------- Custom Proxies ---------------------------------------------------------------------------------------- # # Dependencies : main.kmm ($macroPrefBranch, kmPrefs, ExecMacros) # Resources : - # Preferences : kmeleon.plugins.macros.proxy.configs # kmeleon.plugins.macros.proxy.current # kmeleon.plugins.macros.proxy0.http.proxy.keep-alive # kmeleon.plugins.macros.proxy0.http.proxy.pipelining # kmeleon.plugins.macros.proxy0.http.proxy.version # kmeleon.plugins.macros.proxy<n>... (set by kmPrefs) # # ------------------------------------------------------------------------------------------------------------------ Proxy_None{ macroinfo=_("Connect directly to the Internet"); menuchecked=(getpref(INT,$_Proxy_Type)==0); setpref(INT,$_Proxy_Type,0); statusbar(_("Connecting directly")); getpref(INT,$_Proxy_Type)==0 ? $_z="1" : $_z="0"; pluginmsg(toolbars,"CheckButton", "&Privacy Bar,macros(Proxy_Toggle),".$_z); } Proxy_Auto{ macroinfo=_("Connect to the Internet over any detected proxy"); menuchecked=(getpref(INT,$_Proxy_Type)==4); setpref(BOOL,"network.http.proxy.keep-alive",getpref(BOOL,$macroPrefBranch."proxy0.http.proxy.keep-alive")); setpref(BOOL,"network.http.proxy.pipelining",getpref(BOOL,$macroPrefBranch."proxy0.http.proxy.pipelining")); setpref(STRING,"network.http.proxy.version",getpref(STRING,$macroPrefBranch."proxy0.http.proxy.version")); setpref(INT,$_Proxy_Type,4); statusbar(_("Connecting over any detected proxy")); getpref(INT,$_Proxy_Type)==0 ? $_z="1" : $_z="0"; pluginmsg(toolbars,"CheckButton", "&Privacy Bar,macros(Proxy_Toggle),".$_z); } Proxy_Custom{ macroinfo=_("Connect to the Internet over the specified proxy"); menuchecked=(getpref(STRING,$_Proxy_Current)==$ARG)*(getpref(INT,$_Proxy_Type)!=0)*(getpref(INT,$_Proxy_Type)!=4); menugrayed=!getpref(STRING,$macroPrefBranch.$ARG.".name"); $_proxy=$ARG; getpref(STRING,$macroPrefBranch.$ARG.".name")==""?0:&_Proxy_Custom; } # ----- PRIVATE $_Proxy_Type="network.proxy.type"; $_Proxy_Current=$macroPrefBranch."proxy.current"; $_Proxy_PrefBool=".http.proxy.keep-alive;.http.proxy.pipelining;.proxy.socks_remote_dns;"; $_Proxy_PrefInt=".proxy.type;.proxy.socks_version;.proxy.http_port;.proxy.ssl_port;.proxy.ftp_port;.proxy.gopher_port;.proxy.socks_port;"; $_Proxy_PrefStr=".http.proxy.version;.proxy.autoconfig_url;.proxy.http;.proxy.ssl;.proxy.ftp;.proxy.gopher;.proxy.socks;.proxy.no_proxies_on;"; _Proxy_Custom{ setpref(STRING,$_Proxy_Current,$_proxy); $ExecMacros="_Proxy_SetPref"; $_type=BOOL; $List=$_Proxy_PrefBool; &ExecMacros_List; $_type=INT; $List=$_Proxy_PrefInt; &ExecMacros_List; $_type=STRING; $List=$_Proxy_PrefStr; &ExecMacros_List; statusbar(sub("%s",getpref(STRING,$macroPrefBranch.$_proxy.".name"),_("Connecting over proxy '%s'"))); getpref(INT,$_Proxy_Type)==0 ? $_z="1" : $_z="0"; pluginmsg(toolbars,"CheckButton", "&Privacy Bar,macros(Proxy_Toggle),".$_z); } _Proxy_SetPref{ setpref($_type,"network".$ListItem,getpref($_type,$macroPrefBranch.$_proxy.$ListItem)); } Proxy_Toggle{ menuchecked=(getpref(INT,$_Proxy_Type)!=0); getpref(INT,$_Proxy_Type) == 0 ? &_Proxy_Custom : &Proxy_None; getpref(INT,$_Proxy_Type)==0 ? $_z="1" : $_z="0"; pluginmsg(toolbars,"CheckButton", "&Privacy Bar,macros(Proxy_Toggle),".$_z); } _Proxy_BuildMenu{ # tools menu $_p="Pro&xy"; setmenu(PrivacySecurity,popup,$_p); setmenu($_p,macro,"&Direct Connection",Proxy_None); setmenu($_p,macro,"&Auto Detect",Proxy_Auto); setmenu($_p,inline,_Custom_Proxies); setmenu($_p,macro,"Con&figure...","kmPrefs(proxy)"); setmenu($_p,separator,"Con&figure..."); $List=getpref(STRING,$macroPrefBranch."proxy.configs"); $ExecMacros="_Proxy_BuildMenuItem"; &ExecMacros_List; $_proxy=getpref(STRING,$_Proxy_Current); } _Proxy_BuildMenuItem{ setmenu(_Custom_Proxies,macro,getpref(STRING,$macroPrefBranch.$ListItem.".name"),"Proxy_Custom(".$ListItem.")"); } $OnInit=$OnInit."_Proxy_BuildMenu;"; # ------------------------------------------------------------------------------------------------------------------ $macroModules=$macroModules."Proxy;"; [/code] Add this to toolbars.cfg of the default (AuraAlpha) skin: [code] !Proxy{ macros(Proxy_Toggle)|Pro&xy Toggle proxy|Menu. check.png[0,32,32] } [/code] In case you are using another skin you'll have to add to the PrivBars the images for the proxy button and you'll have to make minor changes to the above code. Let me know if you need some help.[/quote]
[Please Enable JavaScript]
K-Meleon forum is powered by
Phorum
.
Home/News
Screenshots
Download
Documentation
Resources
Get Involved
Forum
FAQ
English