From 4a79a7c9b7663b41bbaac7bd057590ccda84dabc Mon Sep 17 00:00:00 2001 From: Els Shek <0e9382a3df1c04a5f3c1c8388a6aaced762850f8@cloudflare.com> Date: Thu, 2 Jul 2020 01:05:22 +0200 Subject: [PATCH] chromium_tor.md --- subfiles/chromium_tor.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/subfiles/chromium_tor.md b/subfiles/chromium_tor.md index 828517442..1e2cdd7e1 100644 --- a/subfiles/chromium_tor.md +++ b/subfiles/chromium_tor.md @@ -2,6 +2,8 @@ 0. Install Tor. + - Linux: `apt install tor` + - Windows: [e.g.](https://2019.www.torproject.org/docs/tor-manual.html.en) `tor --service install -options -f C:\tor\torrc` 1. Download "`set-pac-from-file.zip`" from [Issue 839566: Remove support for PAC file to be loaded from files](https://bugs.chromium.org/p/chromium/issues/detail?id=839566#c40) @@ -12,12 +14,13 @@ 4. Open "`my_pac_script.js`" file 5. Change it like this. + - [Example PAC File](https://findproxyforurl.com/example-pac-file/) ``` function FindProxyForURL(url, host){ if (shExpMatch(host,"*.onion")){return "SOCKS5 127.0.0.1:9050";} - if (shExpMatch(host,"www.cloudflare.com")||shExpMatch(host,"www.nsa.gov")){return "SOCKS5 0.0.0.0:7";} - return "SOCKS5 127.0.0.1:9050"; + if (shExpMatch(host,"*.cloudflare.com")){return "SOCKS5 0.0.0.0:7";} + return "SOCKS4 127.0.0.1:9050"; } ```