mirror of
				https://codeberg.org/crimeflare/cloudflare-tor
				synced 2025-10-31 16:46:54 +01:00 
			
		
		
		
	
		
			
				
	
	
	
	
		
			1.1 KiB
		
	
	
	
	
	
	
	
			
		
		
	
	
			1.1 KiB
		
	
	
	
	
	
	
	
How to use Chromium with Tor
- Install Tor.
- Linux: apt install tor
- Windows: e.g. tor --service install -options -f C:\tor\torrc
- 
Download " set-pac-from-file.zip" from Issue 839566: Remove support for PAC file to be loaded from files
- 
Open your Chromium directory and create a folder named " pac-loader" (anything)
- 
Extract the zip to " pac-loader"
- 
Open " my_pac_script.js" file
- 
Change it like this. 
function FindProxyForURL(url, host){
    if (shExpMatch(host,"*.onion")){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";
}
- 
Open Chromium > 3 dots > More Tools>Extensions
- 
Enable " Developer mode"
- 
Click " Load unpacked"
- 
Select your " pac-loader" directory
- 
Click " Details" of "Set PAC from file"
- 
Enable " Allow in incognito"
- 
Close and reopen your browser