diff --git a/js&css/extension/www.youtube.com/appearance/player/player.css b/js&css/extension/www.youtube.com/appearance/player/player.css index f0a1ad6b4..3a4ef528c 100644 --- a/js&css/extension/www.youtube.com/appearance/player/player.css +++ b/js&css/extension/www.youtube.com/appearance/player/player.css @@ -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; } @@ -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 diff --git a/js&css/web-accessible/functions.js b/js&css/web-accessible/functions.js index e37a42008..08534e696 100644 --- a/js&css/web-accessible/functions.js +++ b/js&css/web-accessible/functions.js @@ -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)) {