To get rid of the annoying YouTube message (ad blocker are not allowed on Youtube) use this custom filter in uBlock extension
- Open uBlock extension dashboard
- Open my filters tab
- Copy & Paste this code into my filter
- Apply changes and close all tabs
via: enderman
Is the any way to add something like this to my pihole to block all this shit network wide?
Pihole, if i understand correctly, works by blocking DNS requests and YouTube ads are not DNS based the way ads usually are. You’re stuck blocking them by uBO on each device or use Invidious.