From b4043e24026b121137eb5139b55339fd7aeaa7a7 Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 11 Sep 2025 16:47:33 +1000 Subject: [PATCH] Shortcuts in fullscreen fix --- goodtube.js | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/goodtube.js b/goodtube.js index 13e1c48..55963b3 100644 --- a/goodtube.js +++ b/goodtube.js @@ -2771,15 +2771,15 @@ } /* Show video title in fullscreen */ - body .ytp-fullscreen .ytp-gradient-top, - body .ytp-fullscreen .ytp-show-cards-title { + :fullscreen .ytp-gradient-top, + :fullscreen .ytp-show-cards-title { display: block !important; } - body .ytp-fullscreen .ytp-show-cards-title .ytp-button, - body .ytp-fullscreen .ytp-show-cards-title .ytp-title-channel { + :fullscreen .ytp-show-cards-title .ytp-button, + :fullscreen .ytp-show-cards-title .ytp-title-channel { display: none !important; } - body .ytp-fullscreen .ytp-show-cards-title .ytp-title-text { + :fullscreen .ytp-show-cards-title .ytp-title-text { padding-left: 36px !important; } @@ -2788,9 +2788,15 @@ display: inline-block !important; } - /* Hide theater button in fullscreen */ + /* Hide theater button in fullscreen (don't use display none, it causes issues with keyboard shortcuts if this was the last focused element) */ body .ytp-fullscreen .ytp-size-button { - display: none !important; + position: fixed !important; + top: -9999px !important; + left: -9999px !important; + bottom: auto !important; + right: auto !important; + opacity: 0 !important; + pointer-events: none !important; } /* Style autoplay button */