Skip to content

YouTube - Remove Shorts by tsyron

Screenshot of YouTube - Remove Shorts

Details

Authortsyron

LicenseAGPLv3

Categoryyoutube

Created

Updated

Code size1.6 kB

Code checksuma85f6a95

Statistics

Learn how we calculate statistics in the FAQ.

Failed to fetch stats.

Description

This removes shorts from the homepage, search, sidebar and channel

Notes

Userstyle doesn't have notes.

Source code

    /* ==UserStyle==
@name           YouTube - Remove Shorts
@namespace      github.com/
@version        1.0.6
@description    Hiding Shorts from all over YouTube
@license        AGPLv3
@author         Tsyron
@preprocessor   stylus

@var            checkbox checkbox-homepage "Homepage" 1
@var            checkbox checkbox-sidebar "Sidebar" 1
@var            checkbox checkbox-search "Search" 1
@var            checkbox checkbox-subscriptions "Subscriptions" 1
@var            checkbox checkbox-channel "Channel" 1
@var            checkbox checkbox-hashtags "Hashtags" 1

==/UserStyle== */
@-moz-document domain("youtube.com") {

    if checkbox-homepage {
        [page-subtype='home'] ytd-rich-shelf-renderer[is-shorts] {
            display: none !important; } }

    if checkbox-sidebar {
        a[title="Shorts"],
        .style-scope .ytd-mini-guide-renderer:nth-child(2),
        #sections .ytd-guide-renderer:first-child ytd-guide-entry-renderer:nth-child(2), {
            display: none !important; } }

    if checkbox-search {
        ytd-reel-shelf-renderer, grid-shelf-view-model {
            display: none !important; } }
            
    if checkbox-subscriptions {
        [page-subtype="subscriptions"] ytd-rich-shelf-renderer[is-shorts] {
            display: none !important; } }

    if checkbox-channel {
        [page-subtype="channels"] .yt-tab-shape-wiz--host-clickable[tab-title="Shorts"] {
            display: none !important; } }
            
    if checkbox-hashtags {
        [page-subtype="hashtag-landing-page"] .yt-tab-shape-wiz--host-clickable[tab-title="Shorts"] {
            display: none !important; } } }

Reviews

No reviews yet.