Skip to content

Block YouTube Shorts by mumvock

Mirrored from https://github.com/mumvock/block-youtube-shorts/raw/master/block-youtube-shorts.user.css

Details

Authormumvock

LicenseMIT

Categoryyotube.com

Created

Updated

Size1.6 kB

Statistics

Learn how we calculate statistics in the FAQ.

Failed to fetch stats.

Description

Hide all content related to YouTube Shorts on YouTube website in your web browser.

Notes

Installation

  1. If you don't already have Stylus, install for Google Chrome, Mozilla Firefox or Opera.

  2. Open Block YouTube Shorts UserCSS installation tab by clicking in below button:

    Install directly with Stylus

  3. In the newly opened tab, click in Install style button (upper left corner).

  4. Enjoy YouTube without Shorts.

Source code

/* ==UserStyle==
@name           Block YouTube Shorts
@namespace      github.com/openstyles/
@description    Hide all content related to YouTube Shorts on YouTube website in your web browser.
@version        1.0.0
@author         Vinycius Oliveira
@homepageURL    https://github.com/mumvock/block-youtube-shorts
@supportURL     https://github.com/mumvock/block-youtube-shorts/issues
@license        MIT | https://github.com/mumvock/block-youtube-shorts/raw/master/LICENSE
@preprocessor   stylus
==/UserStyle== */

@-moz-document domain("www.youtube.com") {
    ytd-guide-entry-renderer:has(a[title^="Shorts"]),
    ytd-mini-guide-entry-renderer:has(a[title^="Shorts"]),
    ytd-reel-shelf-renderer:has(a[href^="/shorts/"]),
    ytd-rich-section-renderer:has(a[href^="/shorts/"]),
    ytd-video-renderer:has(a[href^="/shorts/"]) {
        display: none !important;
    }

    ytd-rich-grid-row,
    #contents.ytd-rich-grid-row {
        display: contents !important
    }
}
@-moz-document domain("m.youtube.com") {
    ytm-pivot-bar-item-renderer:has(.pivot-shorts),
    ytm-reel-shelf-renderer:has(a[href^="/shorts/"]),
    ytm-rich-section-renderer:has(a[href^="/shorts/"]),
    ytm-video-renderer:has(a[href^="/shorts/"]),
    ytm-video-with-context-renderer:has(a[href^="/shorts/"]) {
        display: none !important;
    }
}
@-moz-document domain("youtube.com") {
    yt-chip-cloud-chip-renderer:has(yt-formatted-string[title^="Shorts"]),
    yt-tab-shape[tab-title^="Shorts"] {
        display: none !important;
    }
}

Reviews

No reviews yet.