To get rid of the annoying YouTube message (ad blocker are not allowed on Youtube) use this custom filter in uBlock extension

  1. Open uBlock extension dashboard
  2. Open my filters tab
  3. Copy & Paste this code into my filter
  4. Apply changes and close all tabs

via: enderman

  • mouth_brood@lemmy.one
    link
    fedilink
    English
    arrow-up
    11
    arrow-down
    1
    ·
    1 year ago

    Is the any way to add something like this to my pihole to block all this shit network wide?

    • denny@feddit.de
      link
      fedilink
      English
      arrow-up
      17
      ·
      1 year ago

      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.

      • techgearwhips@lemmy.world
        link
        fedilink
        English
        arrow-up
        4
        ·
        edit-2
        1 year ago

        I just spun up my own invidious instance on docker today. I’m so mad that I haven’t done this sooner!

        • Swarfega@lemm.ee
          link
          fedilink
          English
          arrow-up
          3
          ·
          edit-2
          1 year ago

          I’ve run pihole for years. It works really well. The only problem I’ve seen is when you actually need a tracking URL to work. For example clicking a link in your emails to download a ticket for a concert. You just need to be mindful that when the browser fails to open a link it’s because of the PiHole. There’s no nice screen telling you. You just need to pop it into the whitelist to allow it although on a phone I just used to go to mobile data temporarily, click the link and then go back on WiFi.

          I recently switched to using NextDNS, as it means all my DNS queries are encrypted and I still get filtering when I’m away from home. I also have three kids to manage so it allows me to set timers on their devices to block certain traffic. Good for blocking adult sites too.