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

  • arc@lemm.ee
    link
    fedilink
    English
    arrow-up
    13
    ·
    1 year ago

    Yup. Ad blockers work on pattern matching rules. Countering them might take some work but it’s not impossible - make the URLs that do the bad shit indistinguishable from the ones that make the video works and likewise html elements. Randomise everything, make the paths to things unpredictable. I’m sure YouTube could even merge the ads into the content stream so they are unavoidable.

    • abcxyz@lemm.ee
      link
      fedilink
      English
      arrow-up
      10
      ·
      1 year ago

      “I’m sure YouTube could even merge the ads into the content stream so they are unavoidable.”

      Who is going to tell him?

      • m12421k@iusearchlinux.fyi
        link
        fedilink
        English
        arrow-up
        2
        ·
        1 year ago

        aren’t they already? It’s been some time since I worked in video. but I remember HLS manifest had ad insertion built-in.

    • Karyoplasma@discuss.tchncs.de
      link
      fedilink
      English
      arrow-up
      8
      ·
      1 year ago

      Last part is already done. Ads are delivered by the same DNS as the video, which is why DNS-based blocking methods like Pihole don’t work for YouTube video ads.

      If you meant that Google will re-encode every video on their platform and insert ads like the sponsor segments, that’s not feasible. Ads ads served on a bidding basis and the advertiser who pays most, gets their ad delivered. That would be Impossible unless you keep multiple copies of the video with different ad segments.

      • cozycosmic@lemmy.world
        link
        fedilink
        English
        arrow-up
        6
        ·
        1 year ago

        You don’t need to re-encode the video. Look up HLS segments, which is the standard for streaming video and I assume YouTube uses it.

        Each video is split into many segments, like 10 seconds long (though the duration doesn’t matter). The browser first fetches a “playlist” which is just a list of these segments. Then the video player plays each segment in order. So Google could just insert ad-segments into the video stream, and if they did it cleverly, there would be no way to determine that they were ads.

        • 1984@lemmy.today
          link
          fedilink
          English
          arrow-up
          1
          ·
          edit-2
          1 year ago

          Yeah they are sooner or later going to do something like this. But then we can download videos and use Ai to remove the ads.

          Will probably pop up YouTube proxys that does this on request so we don’t even have to download.