Comment by ackyshake

16 days ago

Oh this is amazing, thank you! I tried to make my own but youtube's CSS is so complex, I gave up. I have no idea why they push shorts to me when I'm on my computer. But then again, I really cannot stand them, even on my phone.

I also just discovered a way[1] to just get real videos from my youtube RSS feeds, free from shorts. Honestly it's been a joy to not have my RSS reader notify me for a old video republished as vertical.

[1]: https://blog.amen6.com/blog/2025/01/no-shorts-please-hidden-...

The CSS is complex indeed. Moreover, the page renders the Shorts widgets after the page has completed loading, so JavaScript-based solutions need to exercise a little care in ensuring that it can hide the distracting elements after the page has loaded. Despite the complexity, I've found that just hiding all elements with the 'ytd-rich-shelf-renderer' class just works fine. For example:

  .ytd-rich-shelf-renderer { display: none }

This single line of CSS seems to just work fine for me.