aboutsummaryrefslogtreecommitdiff
path: root/conkerorrc
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2017-05-12 13:50:32 +0200
committerKarel Kočí <cynerd@email.cz>2017-05-12 13:50:32 +0200
commit6a7c3062aabb76dc0f12809c671e52270d850d13 (patch)
tree4d451e4481957765147be4facd4d9aeedf71f7c9 /conkerorrc
parentd629402949674c9b3d51d90e5a5b76f9c53d1ea6 (diff)
downloadmyconfigs-6a7c3062aabb76dc0f12809c671e52270d850d13.tar.gz
myconfigs-6a7c3062aabb76dc0f12809c671e52270d850d13.tar.bz2
myconfigs-6a7c3062aabb76dc0f12809c671e52270d850d13.zip
Add support for SOCKS5 for conkeror
Diffstat (limited to 'conkerorrc')
-rw-r--r--conkerorrc18
1 files changed, 18 insertions, 0 deletions
diff --git a/conkerorrc b/conkerorrc
index 58fe928..5e85572 100644
--- a/conkerorrc
+++ b/conkerorrc
@@ -187,3 +187,21 @@ function pass_get_name(I) {
interactive("pass-get-name", "Choses account for to be loged as. As result name of account is outputed.", pass_get_name);
interactive("pass-get-password", "Receives password from pass for currently selected account.", pass_get_password);
/////////////////////////////////////////////////////////////////////////////////
+// Local SOCKS5 proxy
+var proxy_session_enabled = false;
+interactive("proxy-session-toggle",
+ "Toggle the SOCKS proxy server",
+ function (I) {
+ if (proxy_session_enabled) {
+ session_pref('network.proxy.type', 0); //direct connection
+ I.window.minibuffer.message("SOCKS5 proxy is now disabled.");
+ proxy_session_enabled = false;
+ } else {
+ session_pref('network.proxy.socks', '127.0.0.1');
+ session_pref('network.proxy.socks_port', 8123);
+ session_pref('network.proxy.type', 1);
+ I.window.minibuffer.message("SOCKS5 proxy 127.0.0.1:8123 is now enabled.");
+ proxy_session_enabled = true;
+ }
+ });
+/////////////////////////////////////////////////////////////////////////////////