• _dev_null@lemmy.zxcvn.xyz
    link
    fedilink
    arrow-up
    37
    ·
    edit-2
    1 year ago

    Here’s my uBlock origin custom rules for blocking youtube shorts:

    ! Block Youtube Shorts on front page
    youtube.com##ytd-rich-section-renderer > .ytd-rich-section-renderer > .ytd-rich-section-renderer[is-shorts=""]
    youtube.com##yt-formatted-string:has-text(/#shorts/):upward(ytd-rich-item-renderer.ytd-rich-grid-row)
     
    ! Block Youtube Shorts on the subscriptions page
    youtube.com##ytd-thumbnail-overlay-time-status-renderer[overlay-style=SHORTS]:upward(ytd-grid-video-renderer.ytd-grid-renderer)
     
    ! Remove Shorts on sidebar menu
    youtube.com##a.yt-simple-endpoint.ytd-guide-entry-renderer[title=Shorts]:upward(ytd-guide-entry-renderer.ytd-guide-section-renderer)
     
    ! Block Youtube Shorts on the search results page
    youtube.com##ytd-thumbnail-overlay-time-status-renderer[overlay-style=SHORTS]:upward(ytd-video-renderer.ytd-item-section-renderer)
    youtube.com##span.ytd-reel-shelf-renderer:has-text(/Shorts/):upward(ytd-reel-shelf-renderer.ytd-item-section-renderer)
    

    I am much happier having this real estate back. Fuck yt shorts!