Player sizing fixex

This commit is contained in:
goodtube4u
2025-10-23 12:23:44 +10:00
parent 71f52fa056
commit a8a68c8ae2

View File

@@ -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) {