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

  • Illuminostro@lemmy.world
    link
    fedilink
    English
    arrow-up
    115
    arrow-down
    1
    ·
    1 year ago

    I could tolerate ONE ad per video, at the beginning, but 3 or 4 ads in a less than ten minute video? Fuck that.

    • credit crazy@lemmy.world
      link
      fedilink
      English
      arrow-up
      45
      arrow-down
      2
      ·
      1 year ago

      You see YouTube is a American company and in America every thing is extreme you ether have a lot of ads or no ads you can have a extremely massive car or a cat that’s soo small it doesn’t exist

    • raubarno@lemmy.ml
      link
      fedilink
      English
      arrow-up
      19
      ·
      1 year ago

      I could only tolerate ElectroBoom-style “This video is sponsored by oscilloscope company” ads.

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

      That’s the thing.

      You’re already proud to lower your standards, why not lower them further?

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

      The whole reason is to either make it so annoying that you switch to their paid service or get as many ad dollars into the shortest amount of time possible either way. This is just greed to squeeze as much out of the consumer before they break us.

    • 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).

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

    I had this code saved and had suggested it to others before but now I didn’t take my own advice and had been struggling with those pop-ups for the past few days. I hope this solves it.

    EDIT: Doesn’t work. Still got the popup despite having all other extensions disabled and uBlock on default settings

    • Azzu@lemm.ee
      link
      fedilink
      English
      arrow-up
      2
      arrow-down
      1
      ·
      1 year ago

      I mean I’m pretty sure it is, I’m only using ublock and have no problems.

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

      There’s a popup that YouTube has started showing these days that tells you “AdBlockers are illegal. Stop using them” or something to that effect. This blocks that popup from appearing.

      • Ragdoll X@lemmy.world
        link
        fedilink
        English
        arrow-up
        2
        ·
        1 year ago

        Somehow I still haven’t seen that message despite also using uBlock and Firefox. Perhaps I’m just further down the line and Google will eventually come for me too, but I wonder if my DuckDuckGo and Privacy Badger extensions may also have something to do with it.

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

        I keep getting that pop-up, I have had ublock installed for years. I haven’t done anything special to unlock and just refresh the page and it goes away.

  • Mandy@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    2
    ·
    1 year ago

    and the code doesnt work, cause the thing just appeared while im trying to listen to music with my gf

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

      Got to try disabling all other addons/blockers. Some interfere or trigger the ad blocker detection.

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

        I followed those instructions to the letter aswell as cleared all the cookies and I’m still getting the popup. I first came up with this code more than 3 months ago so it’s probably outdated by now.

      • Mandy@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        1
        ·
        1 year ago

        i never use normal youtube otherwise and i shouldnt have to play detective for this to work

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

      YouTube filtering is fairly unique to YouTube since they serve ads so aggressively so it’s unlikely to help on other sites.