0
0
mirror of https://codeberg.org/crimeflare/cloudflare-tor synced 2024-11-16 22:32:43 +00:00
cloudflare-tor/subfiles/chromium_tor.md

41 lines
1.1 KiB
Markdown
Raw Normal View History

2020-07-01 14:29:10 +00:00
# How to use Chromium with Tor
0. Install Tor.
2020-07-01 23:05:22 +00:00
- 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`
2020-07-01 14:29:10 +00:00
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)
2. Open your Chromium directory and create a folder named "`pac-loader`" (_anything_)
3. Extract the zip to "`pac-loader`"
4. Open "`my_pac_script.js`" file
5. Change it like this.
2020-07-01 23:05:22 +00:00
- [Example PAC File](https://findproxyforurl.com/example-pac-file/)
2020-07-01 14:29:10 +00:00
2020-07-01 14:29:39 +00:00
```
2020-07-01 14:29:10 +00:00
function FindProxyForURL(url, host){
if (shExpMatch(host,"*.onion")){return "SOCKS5 127.0.0.1:9050";}
2020-07-01 23:05:22 +00:00
if (shExpMatch(host,"*.cloudflare.com")){return "SOCKS5 0.0.0.0:7";}
return "SOCKS4 127.0.0.1:9050";
2020-07-01 14:33:09 +00:00
}
2020-07-01 14:29:10 +00:00
```
6. Open Chromium > 3 dots > `More Tools` > `Extensions`
7. Enable "`Developer mode`"
8. Click "`Load unpacked`"
9. Select your "`pac-loader`" directory
2020-07-01 14:29:49 +00:00
10. Click "`Details`" of "`Set PAC from file`"
2020-07-01 14:29:10 +00:00
11. Enable "`Allow in incognito`"
12. Close and reopen your browser