Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 8 additions & 17 deletions js&css/extension/www.youtube.com/appearance/player/player.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ html[it-ambient-lighting='false'] #cinematics {display: none !important;}
# ALWAYS SHOW PROGRESS BAR
--------------------------------------------------------------*/


html[it-always-show-progress-bar='true'] .html5-video-player:not(.it-mini-player).ytp-autohide .ytp-chrome-bottom {
opacity: 1 !important;
}
Expand All @@ -39,22 +38,14 @@ html[it-always-show-progress-bar='true'] .html5-video-player:not(.it-mini-player

/*--------------------------------------------------------------
# FIX: hide full control strip in native miniplayer
--------------------------------------------------------------*/
ytd-miniplayer .ytp-chrome-bottom,
.html5-video-player.ytp-player-minimized .ytp-chrome-bottom,
.html5-video-player.ytp-small-mode .ytp-chrome-bottom {
opacity: 0 !important;
pointer-events: none !important;
}

ytd-miniplayer .ytp-chrome-bottom .ytp-progress-bar-container,
.html5-video-player.ytp-player-minimized .ytp-chrome-bottom .ytp-progress-bar-container,
.html5-video-player.ytp-small-mode .ytp-chrome-bottom .ytp-progress-bar-container,
ytd-miniplayer .ytp-chrome-bottom .ytp-scrubber-button,
.html5-video-player.ytp-player-minimized .ytp-chrome-bottom .ytp-scrubber-button,
.html5-video-player.ytp-small-mode .ytp-chrome-bottom .ytp-scrubber-button {
display: none !important;
}
# Note: Exclude embedded players (it-pathname starts with /embed) to fix issue #3594
--------------------------------------------------------------*/
html[it-always-show-progress-bar=true]:not([it-pathname^="/embed"])
:is( ytd-miniplayer, .html5-video-player.ytp-player-minimized, .html5-video-player.ytp-small-mode) .ytp-chrome-bottom
{ opacity:0!important; pointer-events:none!important; }
html[it-always-show-progress-bar=true]:not([it-pathname^="/embed"])
:is( ytd-miniplayer, .html5-video-player.ytp-player-minimized, .html5-video-player.ytp-small-mode) .ytp-chrome-bottom:is(.ytp-progress-bar-container,.ytp-scrubber-button)
{ display:none!important; }

/*--------------------------------------------------------------
# COLOR
Expand Down
3 changes: 3 additions & 0 deletions js&css/web-accessible/functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,9 @@ ImprovedTube.ytElementsHandler = function (node) {
ImprovedTube.pageType = function () {
if (/\/watch\?|\/live\//.test(location.href)) {
document.documentElement.dataset.pageType = 'video';
} else if (/\/embed\//.test(location.href)) {
// Embedded YouTube players (e.g., on third-party sites like Discogs) - treat as video for features like seekbar
document.documentElement.dataset.pageType = 'embed';
} else if (location.pathname === '/') {
document.documentElement.dataset.pageType = 'home';
} else if (/\/subscriptions\?/.test(location.href)) {
Expand Down