From 6a7c3062aabb76dc0f12809c671e52270d850d13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Fri, 12 May 2017 13:50:32 +0200 Subject: Add support for SOCKS5 for conkeror --- conkerorrc | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) 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; + } + }); +///////////////////////////////////////////////////////////////////////////////// -- cgit v1.2.3