• teatowel@lemmy.world
    link
    fedilink
    arrow-up
    3
    ·
    9 months ago

    Ublock has direct access to the DOM and so can modify what the browser renders. For example, YouTube ads are hosted on the same domains as their videos and so PiHole cannot block them, but Ublock can.

    • madcaesar@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      9 months ago

      I don’t understand why tho, what is it that let’s unblock distinguish ad video vs real video?

      • RippleEffect@lemm.ee
        link
        fedilink
        English
        arrow-up
        1
        ·
        9 months ago

        Unlock can read the code being sent to your browser and act accordingly. It’s much more granular.

        Pihole can only see you’re going to YouTube.com. It cannot see what YouTube is sending you.