askrobots / youtube-no-shorts
Public
A style rule for dbbasic-browser: YouTube without Shorts
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 */ |
| 6 | ytd-rich-shelf-renderer[is-shorts], |
| 7 | ytd-rich-section-renderer:has(ytd-rich-shelf-renderer[is-shorts]), |
| 8 | ytd-reel-shelf-renderer, |
| 9 | grid-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 */ |
| 12 | ytd-video-renderer:has(a[href^="/shorts/"]), |
| 13 | ytd-rich-item-renderer:has(a[href^="/shorts/"]), |
| 14 | ytd-grid-video-renderer:has(a[href^="/shorts/"]), |
| 15 | ytd-compact-video-renderer:has(a[href^="/shorts/"]), |
| 16 | yt-lockup-view-model:has(a[href^="/shorts/"]), |
| 17 | |
| 18 | /* the Shorts entry in the side menus */ |
| 19 | ytd-guide-entry-renderer:has(a[href^="/shorts"]), |
| 20 | ytd-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 */ |
| 23 | yt-tab-shape[tab-title="Shorts"], |
| 24 | |
| 25 | /* the mobile site */ |
| 26 | ytm-reel-shelf-renderer, |
| 27 | ytm-shorts-lockup-view-model, |
| 28 | ytm-pivot-bar-item-renderer:has(a[href^="/shorts"]) { |
| 29 | display: none !important; |
| 30 | } |