A Chrome and Brave extension that declutters YouTube: no Shorts, no recommendations, a denser grid and your own sidebar shortcuts. Every tweak can be switched off from a panel.
It started life as a pile of loose rules inside the User JavaScript and CSS extension. It ended up as this: a standalone extension, no dependencies, and no third party running code in your tabs.
| Option | What changes |
|---|---|
| Cards per row | Denser home grid. Anything from 3 to 8 |
| Flat layout | Removes the intermediate grid rows |
| Hide Shorts | Sidebar entry, shelves, search chip and results |
| Hide shelves | "For you" style blocks in Subscriptions |
| Compact playlists | Small, properly cropped thumbnails and tight rows |
| Hide recommendations | The right-hand column on video pages |
| Hide side rail | The fixed Description / Comments menu |
| Compact metadata | Less padding under titles |
| Custom shortcuts | Two configurable links in the sidebar |
Every option is toggled independently from the extension panel, and changes apply immediately in open tabs.
Two entries injected into the YouTube sidebar, one for the expanded menu and one for the collapsed one. For each of them you can set:
- Icon — star, clock, bookmark, list, heart or folder
- Name — the visible label
- URL — any YouTube link: a playlist, a channel, a saved search
A full URL or a relative path (/playlist?list=WL) both work. Anything that isn't a YouTube link is rejected with an inline warning and never saved. The expanded-menu shortcut ships with no URL on purpose: set your own and it appears.
It is not on the Chrome Web Store, so load it unpacked:
- Download the repository (
Code→Download ZIP) and unzip it somewhere permanent. Delete that folder and the extension stops loading. - Open
chrome://extensionsorbrave://extensions. - Turn on Developer mode, top right.
- Load unpacked → pick the folder.
After editing any file: hit Reload on the extension card, then refresh YouTube.
manifest.json Manifest V3
content.css All styles, each block gated by a class
content.js Shortcut injection and config application
settings.js Options, icons and defaults (single source of truth)
popup.html/css/js Configuration panel
Three decisions explain most of the code:
Options are gated by a class, not by editing CSS. Every rule is scoped to html:not(.ytdc-off-<option>). Everything is on by default and the content script adds the class when you switch something off. Numeric settings ride on CSS variables.
html:not(.ytdc-off-shorts) ytd-reel-shelf-renderer { display: none !important; }Injected elements avoid YouTube's own components. Clone a sidebar entry and the <yt-icon> arrives empty while <yt-formatted-string> rewrites its own content, so both icon and label vanish on the first re-render. The fix is to swap them for a plain <span> and an SVG built with createElementNS, which Polymer does not manage.
One observer. YouTube mutates the DOM constantly. There is a single MutationObserver, debounced through requestAnimationFrame, plus a repair pass that puts the icon and label back whenever the app tears them out.
Adding an option means touching two files:
settings.js— add an entry to theOPTIONSarray with itscssClass.content.css— write the rules scoped tohtml:not(.your-class).
The panel builds itself from OPTIONS.
A personal project, not affiliated with Google or YouTube. It leans on internal interface selectors, so something will break the next time YouTube reshuffles its HTML. When it does, open an issue with the new markup.
MIT.