Skip to content

YouTube - hide Shorts by wilx

Details

Authorwilx

LicenseNo License

Categorywww.youtube.com

Created

Updated

Size780 B

Statistics

Learn how we calculate statistics in the FAQ.

Failed to fetch stats.

Description

This style hides YouTube shorts.

Notes

Userstyle doesn't have notes.

Source code

/* ==UserStyle==
@name         YouTube - hide Shorts
@version      20230606.18.18
@namespace    userstyles.world/user/wilx
@description  This style hides YouTube shorts.
@author       wilx
@license      No License
==/UserStyle== */

@-moz-document domain("www.youtube.com") {
/*
* Set layout.css.has-selector.enabled=true for this to work in Firefox.
*/

/* Hide Youtube shorts. */
ytd-rich-section-renderer > div > ytd-rich-shelf-renderer[is-shorts] {
    visibility: hidden !important;
    height: 0px !important;
    margin: 0px !important;
}

/* Hide Youtube shorts in the grid. */
ytd-grid-video-renderer > div:has(ytd-thumbnail > a[href^="/shorts"]),
ytd-rich-item-renderer > div[id=content]:has(ytd-thumbnail > a[href^="/shorts"])
{
    visibility: hidden !important;
}


}

Reviews

No reviews yet.