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
      10
      ·
      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
        8
        ·
        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?

    • ipkpjersi@lemmy.ml
      link
      fedilink
      English
      arrow-up
      8
      ·
      1 year ago

      Of course they are, for example when targeting HTML elements you generally need to target text not vars or function names.

    • XTornado@lemmy.ml
      link
      fedilink
      English
      arrow-up
      5
      ·
      edit-2
      1 year ago

      At the end there will always be some way since to the user the text should be similar or the UI should be similar… So there will be always a way… But yeah it can get more complex.

      The only exception is the case they implement the web integrity thing at browser level or equivalent.

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

      The point being that if one can find the domain through which they push said script/the script itself, they can disable it (I use NoScript).