Last active
November 30, 2025 14:55
-
-
Save malisipi/e8f4d4635a580f1f038a4c69e20235f3 to your computer and use it in GitHub Desktop.
YouTube compact mode for new ui
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* Author: https://github.com/malisipi */ | |
| * { | |
| --yt-delhi-pill-height: 40px !important; | |
| --yt-delhi-pill-top-height: 2px !important; | |
| --yt-delhi-bottom-controls-height: 36px !important; | |
| --yt-delhi-bottom-controls-height-xsmall-width-mode: 36px !important; | |
| --yt-delhi-big-mode-pill-height: 40px !important; | |
| --yt-delhi-big-mode-pill-top-height: 2px !important; | |
| --yt-delhi-big-mode-bottom-controls-height: 36px !important; | |
| } | |
| .ytp-chrome-controls, .ytp-chrome-controls * { | |
| padding: 0 !important; | |
| margin: 0 !important; | |
| border-radius: 0 !important; | |
| /*filter: none !important;*/ | |
| & .ytp-button:not(.ytp-efyt-button) svg { | |
| height: 24px !important; | |
| } | |
| } | |
| .ytp-chrome-controls * { | |
| &, &:hover { | |
| background: none !important; | |
| } | |
| } | |
| .ytp-fullscreen-grid-expand-button.ytp-button { | |
| top: 4px !important; | |
| &, &:hover { | |
| background: none !important; | |
| } | |
| } | |
| .ytp-button { | |
| &, &:hover, &:focus { | |
| height: 36px !important; | |
| width: unset !important; | |
| min-width: unset !important; | |
| } | |
| } | |
| .ytp-button:not([data-tooltip-target-id="ytp-autonav-toggle-button"]) * { | |
| padding: 0 !important; | |
| margin: 0 !important; | |
| width: unset !important; | |
| } | |
| .ytp-chrome-controls .ytp-button[data-tooltip-target-id="ytp-autonav-toggle-button"] { | |
| height: 24px !important; | |
| transform: translate(0,-11px); | |
| & * { | |
| background: #444 !important; | |
| border-radius: 12px !important; | |
| } | |
| } | |
| .ytp-chrome-controls .ytp-left-controls .ytp-button:not(.ytp-efyt-button) { | |
| padding: 6px 4px !important; | |
| } | |
| .ytp-chrome-controls .ytp-right-controls .ytp-button:not(.ytp-efyt-button) { | |
| padding: 1px 4px !important; | |
| } | |
| .ytp-chrome-controls .ytp-volume-slider { | |
| height: 26px !important; | |
| min-height: unset !important; | |
| } | |
| .ytp-panel { | |
| max-width: 300px !important; | |
| background: black !important; | |
| } | |
| * { | |
| --ytd-watch-flexy-sidebar-width: 200px !important; | |
| } | |
| :root:not(:fullscreen){ /* not in video fullscreen */ | |
| & .ytd-watch-flexy[theater] #player-wide-container.ytd-watch-flexy, | |
| & .ytd-watch-flexy:not([theater]) #player-wide-container.ytd-watch-flexy { | |
| width: 100% !important; | |
| max-width: none !important; | |
| } | |
| & .html5-video-container { | |
| position: relative !important; | |
| width: 100% !important; | |
| height: auto !important; | |
| } | |
| & .video-stream.html5-main-video { | |
| position: relative !important; | |
| width: 100% !important; | |
| height: auto !important; | |
| max-height: calc(100dvh - 220px) !important; | |
| left: 0 !important; | |
| top: 0 !important; | |
| } | |
| & .html5-video-player { | |
| width: 100% !important; | |
| height: auto !important; | |
| } | |
| & .ytd-watch-flexy #player-container { | |
| height: auto !important; | |
| } | |
| & video::-webkit-media-controls { | |
| width: 100% !important; | |
| } | |
| & #movie_player { | |
| width: 100% !important; | |
| height: auto !important; | |
| } | |
| & .html5-video-player:fullscreen .html5-video-container, | |
| & div.html5-video-player:fullscreen .video-stream { | |
| width: 100% !important; | |
| height: 100% !important; | |
| object-fit: contain !important; | |
| } | |
| & .ytp-chrome-bottom { | |
| width: 100% !important; | |
| left: 0 !important; | |
| } | |
| & .ytp-progress-bar-container { | |
| width: 100% !important; | |
| } | |
| & .html5-video-player .video-stream { | |
| object-fit: contain !important; | |
| } | |
| & .ytp-miniplayer .video-stream, | |
| & div.ytp-miniplayer .html5-video-container { | |
| width: 100% !important; | |
| height: 100% !important; | |
| } | |
| & .ytp-miniplayer-scroll { | |
| width: 100% !important; | |
| } | |
| } |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I love you and I hate you, YouTube. Please don't make things harder for me