Iβm not actually sure if this works but If anyone else wants to try it out and give me feedback feel free.
Configure Tor to use only exit nodes from countries with few or no YouTube ads.
WARNING: Do not try this unless you understand the implications it has for your system wide tor setup. TorBrowser does way more than merely proxy Traffic through Tor, but also prevent #InformationLeakage and block tracking code. This is not a substitute for using the TorBrowser and does not improve your anonymity.
Edit /etc/tor/torrc:
ExitNodes {AL},{MD},{GE},{AM}{VN}
StrictNodes 1
Then restart Tor:
sudo systemctl restart tor
1. Add a new proxy:
| Field | Value |
|---|---|
| Host | 127.0.0.1 |
| Port | 9050 |
| Type | SOCKS5 |
2. Set proxy mode to: Proxy by Patterns
3. Add URL patterns and assign them to the proxy above:
| Pattern | Purpose |
|---|---|
*youtube.com/* | Main site |
*youtu.be/* | Short links |
*ytimg.com/* | Thumbnails and assets |
*googlevideo.com/* | Video stream data |
ytimg.comandgooglevideo.comare required β without them thumbnails and video playback will fail through the proxy.
StrictNodes 1 forces Tor to only use the listed countries β it will stall rather than fall backSo Far so good, I have run into the occasional βnot available in your countryβ, but not a single ad so far.
@gravitas Does running it through tor make it slow and lower quality? I have not used tor in ages, and it use to be painfully slow.
@gravitas I'd disrecommend manual @torproject / #Tor.configuration unless you know EXACTLY what you do.
So I do disrecommend doing this, and instead use if not #TorBrowser, then at least @Waterfox / #Waterfox with #SponsorBlock and #uBlockOrigin if not #NoScript in incognito mode...
@Fratm @gravitas obviously it will slow it down and it's disrecommended for that...
But outside of streaming Video, #Tor is decebtly fast.
@kkarhan @torproject @Waterfox Yes, Fair enough to say this is just not recommended in general, Its something iβm doing to test a specific use case and its easier then manually finding proxies for the given countries.
But hereβs an interesting fact: #TorBrowser doesnβt use the same tor connection as the one that uses the systemwide /etc/tor/torrc . So while Iβll again stress this is not recommended unless you know what youβre doing, it wonβt actually affect the standard Tor browser. (or at least this is the case when i test on my system, could differ on windows,mac, etc)
Itβs not that slow but even if it was Iβd use dial up before i put up with ads.
@gravitas yeah.
I just wanted to put this out so that "#TechIlliterates" don't think this is a valid substitute for @torproject / #TorBrowserβ¦
@Fratm So far my experience the worst its got was buffering for a second or 2 at the start which iβll take over an ad anyday. 1080p video streams fine one it gets started. Its always possible to get a slower exit node for one reason or another, but in general speeds on tor are normally fine for streaming video.
β¦which reminds me I neet to setup an onion address for my peertube instance.
@gravitas foxyproxy with tor is bussinnn the container tabs option with it is peak if ur on Firefox/librewolf