• Dmian@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    11 months ago

    There’s no need for an extension. Actually, all you need in Safari to get rid of YT’s ads is a CSS stylesheet. Chrome removed the possibility of using a user stylesheet because “reasons”, but Safari allows it, and not only you can get rid of the ads without an extension or javascript or anything else, but you can also personalize the interface (removing, for example, all “Shorts”, etc).

    • skeezix@lemmy.nz
      link
      fedilink
      arrow-up
      1
      ·
      11 months ago

      Where can I get more info on this? I’m comfortable with CSS and stylesheets but don’t want to discern all the classes and IDs myself

      • Dmian@lemmy.world
        link
        fedilink
        English
        arrow-up
        1
        ·
        edit-2
        11 months ago

        Ok, do this: download this stylesheet: http://damianvila.com/external/fuckyoutube/hider.css Save it somewhere where you can find it easily. Open Safari and go to Safari > Settings > Advanced. In the “Style sheet” dropdown, select “Other” and navigate to the style sheet. For maximum effect, do this while you have YouTube open… :D

        The stylesheet is organized in a way that you can comment/uncomment blocks to customize what you want/don’t want to see on YouTube. Right now it has my preferences, but if you want to keep something, or hide something I had viewable, just comment/uncomment as you wish. The ads part is clearly marked, and the rest is menu things and navigation elements (I don’t need most of those). I also hate Shorts with a passion, so I hide those too. Keep in mind that this can only be used in the desktop version. It doesn’t work for mobile or any of the apps. Sadly, you’ll have to suffer with the shitty ads there. But at least, you can have a decent experience while watching on your Mac. And since it’s a user stylesheet, and has no Javascript whatsoever, YT has no way ob detecting or blocking it, so they can do nothing (other than changing the names of the titles, but that is easily fixed).

        Have fun.

        P.S: you’ll notice that sometimes, where there should be an ad, you’ll see like a blink in the video. Don’t worry, it’s normal. The video will continue without problems, and you won’t see the ad.

        P.S.2: This stylesheet sometimes blocks shitty Google (or other sites) pages (because people are assholes and put things there that shouldn’t be there). If you happen to find yourself in this situation (a page that is suspiciously blank, or don’t allow to scroll, or behaves oddly) you can temporarily change the sylesheet to “None Selected”, and see if the problem is fixed. When you’re finished, remember to switch back to the stylesheet, or you’ll have a shock when you go to YouTube… XDDDDD