From 55da8fea6bf58f91d4f5152bca6e46969f2a39cb Mon Sep 17 00:00:00 2001 From: goodtube4u Date: Fri, 19 Sep 2025 11:00:43 +1000 Subject: [PATCH] Sidebar related videos hiding fix --- goodtube.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/goodtube.js b/goodtube.js index 101505e..a5df7a6 100644 --- a/goodtube.js +++ b/goodtube.js @@ -318,7 +318,13 @@ // Hide suggested videos if they're not enabled if (goodTube_hideSuggestedVideos === 'true') { cssOutput += ` - ytd-watch-flexy #secondary { + /* Hide suggested videos */ + ytd-watch-flexy #secondary #related { + display: none !important; + } + + /* Hide full sidebar if not playlist */ + ytd-watch-flexy #secondary:not(:has(ytd-playlist-panel-video-renderer)) { display: none !important; } `;