Skip to content

Hide YouTube Shorts in the Subscriptions Feed by pabli

Screenshot of Hide YouTube Shorts in the Subscriptions Feed

Details

Authorpabli

LicenseMIT

Categoryyoutube

Created

Updated

Size1.0 kB

Statistics

Learn how we calculate statistics in the FAQ.

Failed to fetch stats.

Description

Hide YouTube Shorts in the Subscriptions Feed

Notes

☕ Support me on ko-fi

Chrome/Edge 105+, Opera 91+ or your browser has to support :has() selector.

How to enable :has() in Firefox:

  • go to about:config
  • search for layout.css.has-selector.enabled
  • set it to True and restart the browser

Source code

/* ==UserStyle==
@name         Hide YouTube Shorts in Subscriptions
@namespace    https://github.com/pabli24
@version      1.0.1
@description  Hide YouTube Shorts in the Subscriptions Feed. Chrome/Edge 105+, Opera 91+ or your browser has to support ':has()' selector.
@author       Pabli (https://github.com/pabli24)
@homepageURL  https://userstyles.world/style/8375/
@supportURL   https://userstyles.world/style/8375/
@license      MIT

@preprocessor stylus
@var          checkbox shorts   "Hide Shorts"   1
@var          checkbox upcoming "Hide Upcoming" 0
@var          checkbox live     "Hide Live"     0

==/UserStyle== */

@-moz-document url-prefix("https://www.youtube.com/feed/subscriptions") {
if shorts {
	ytd-item-section-renderer:has([href*="/shorts/"]) {
		display: none
	}
}
if upcoming {
	ytd-item-section-renderer:has([overlay-style="UPCOMING"]) {
		display: none
	}
}
if live {
	ytd-item-section-renderer:has(.badge-style-type-live-now-alternate) {
		display: none
	}
}
}

Reviews

No reviews yet.