• AphoticDev@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    77
    arrow-down
    9
    ·
    1 year ago

    It doesn’t matter if YouTube can detect uBlock. The great thing about uBlock is you can just block the anti-adblock script. Since Javascript is executed on the user’s computer, it’s trivial to just tell your computer to ignore it. And moving it to server side would cost them too much money in processing power.

    That’s why they want everyone to adopt their DRM, so they don’t have to worry about it.

    • PeachMan@lemmy.one
      link
      fedilink
      English
      arrow-up
      49
      arrow-down
      6
      ·
      1 year ago

      This logic is so flawed lol. It’s also completely trivial for them to detect when their anti-adblock script has been blocked. If it gets blocked, then they can just stop serving you videos.

      There are websites that already do this; it’s not theoretical. The website just doesn’t work if it detects an adblocker.

      • Zikeji@programming.dev
        link
        fedilink
        English
        arrow-up
        26
        arrow-down
        1
        ·
        1 year ago

        Whether or not it’s trivial to detect depends on the method used to block it. It already is an arms race, and said race will continue.

      • AeroLemming@lemm.ee
        link
        fedilink
        English
        arrow-up
        9
        ·
        1 year ago

        Those sites aren’t popular enough for people to actively develop custom scripts to get around them.

        • Draconic NEO@lemmy.world
          link
          fedilink
          English
          arrow-up
          8
          ·
          1 year ago

          Didn’t Spotify do this a while back, they made threats of account bans as well. In the end it was bypassed and you can still use Adblock in the browser or adfree clients on desktop (or just block ads across device with Adguard or Portmaster), though honestly Spotify kind of sucks in my opinion (usually doesn’t have the music I want and has UI unresponsiveness).

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

            The only one that kind of worked was Twitch, and the Alternative Player plugin for Firefox still bypasses the ads, you just have to wait while Twitch thinks the ad is playing because they inject it into the stream directly and you can’t access the stream without waiting out the timer.

      • AphoticDev@lemmy.dbzer0.com
        link
        fedilink
        English
        arrow-up
        1
        arrow-down
        1
        ·
        1 year ago

        OK, show us an example. I’ve never run across a website that adblockers just didn’t work on, but maybe you know of one. Give us an example, and we’ll see if we can bypass that. Then we’ll know which of us understands how Javascript works, and which doesn’t.