From a8a68c8ae2def9b93c6f7a68ae1d954f5d072fbb Mon Sep 17 00:00:00 2001 From: goodtube4u Date: Thu, 23 Oct 2025 12:23:44 +1000 Subject: [PATCH] Player sizing fixex --- goodtube.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/goodtube.js b/goodtube.js index b419a5a..bab0279 100644 --- a/goodtube.js +++ b/goodtube.js @@ -672,6 +672,11 @@ background: #000000; border-radius: 0; } + + /* Fix size of Youtube player (this has to do with us setting the aspect ratio inside "goodTube_youtube_setAspectRatio") */ + body:not(.goodTube_fallback) #primary.ytd-watch-flexy { + max-width: 9999px !important; + } `; document.head.appendChild(style); @@ -724,7 +729,7 @@ goodTube_clearedPlayer = false; // Get the Youtube player - let youtubePlayer = document.querySelector('#ytd-player, .player-size'); + let youtubePlayer = document.querySelector('#player.ytd-watch-flexy'); // If we found the Youtube player if (youtubePlayer && youtubePlayer.offsetHeight > 0) {