diff options
author | Karel Kočí <cynerd@email.cz> | 2017-05-12 13:50:32 +0200 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2017-05-12 13:50:32 +0200 |
commit | 6a7c3062aabb76dc0f12809c671e52270d850d13 (patch) | |
tree | 4d451e4481957765147be4facd4d9aeedf71f7c9 | |
parent | d629402949674c9b3d51d90e5a5b76f9c53d1ea6 (diff) | |
download | myconfigs-6a7c3062aabb76dc0f12809c671e52270d850d13.tar.gz myconfigs-6a7c3062aabb76dc0f12809c671e52270d850d13.tar.bz2 myconfigs-6a7c3062aabb76dc0f12809c671e52270d850d13.zip |
Add support for SOCKS5 for conkeror
-rw-r--r-- | conkerorrc | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -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; + } + }); +///////////////////////////////////////////////////////////////////////////////// |