A style rule for dbbasic-browser: YouTube without Shorts

7 downloads

youtube-no-shorts/youtube-no-shorts.css
Download zip
Clone
Clone with git
git clone https://gitstable.com/git/askrobots/youtube-no-shorts.git
HTTPS
https://gitstable.com/git/askrobots/youtube-no-shorts.git
SSH
ssh://git@gitstable.com:2222/askrobots/youtube-no-shorts.git

Cloning needs no sign-in. Pushing over HTTPS asks for your username and an access token. SSH needs your key under SSH keys.

danq9 YouTube without Shorts, 2026.11v1 e0bfc51 1 week, 3 days ago History
youtube-no-shorts.css · 1.3 KB · 30 lines
1/* YouTube without Shorts: hides Shorts shelves, Shorts among other videos, and the Shorts entries in the menus.
2 Finds Shorts by their links (/shorts/) and YouTube's own element names, so it works in any language
3 (except the channel tab, below). */
4
5/* the Shorts shelf on Home, Subscriptions, channel pages and search */
6ytd-rich-shelf-renderer[is-shorts],
7ytd-rich-section-renderer:has(ytd-rich-shelf-renderer[is-shorts]),
8ytd-reel-shelf-renderer,
9grid-shelf-view-model:has(ytm-shorts-lockup-view-model, ytm-shorts-lockup-view-model-v2),
10
11/* a Short among ordinary videos: search results, grids, the list beside a video */
12ytd-video-renderer:has(a[href^="/shorts/"]),
13ytd-rich-item-renderer:has(a[href^="/shorts/"]),
14ytd-grid-video-renderer:has(a[href^="/shorts/"]),
15ytd-compact-video-renderer:has(a[href^="/shorts/"]),
16yt-lockup-view-model:has(a[href^="/shorts/"]),
17
18/* the Shorts entry in the side menus */
19ytd-guide-entry-renderer:has(a[href^="/shorts"]),
20ytd-mini-guide-entry-renderer:has(a[href^="/shorts"]),
21
22/* the Shorts tab on a channel: it has no link to go by, so this one matches YouTube's English name only */
23yt-tab-shape[tab-title="Shorts"],
24
25/* the mobile site */
26ytm-reel-shelf-renderer,
27ytm-shorts-lockup-view-model,
28ytm-pivot-bar-item-renderer:has(a[href^="/shorts"]) {
29 display: none !important;
30}