control-panel-for-youtube icon indicating copy to clipboard operation
control-panel-for-youtube copied to clipboard

"Hide Chat" hides the chat but leaves unused space

Open felixfoertsch opened this issue 1 year ago • 2 comments

When going to a live stream or a live stream recording having the "Hide Chat" Option enabled, the chat is hidden, but a blank space remains.

On this screenshot you can see a black bar to the right. This is where the chat normally goes. Screenshot 2024-09-07 at 10 24 09

Here you can see the chat occupying this space: Screenshot 2024-09-07 at 10 24 34

Expected behavior: The chat should either 1) disappear completely and fully extend the video or 2) just start the chat toggled hidden, so the chat button still remains but can be shown when needed. I'd prefer version 2). Screenshot 2024-09-07 at 10 28 14

felixfoertsch avatar Sep 07 '24 08:09 felixfoertsch

I was so annoyed by the chat (I currently watch a lot of live streams because of the Dota 2 International... :D) that I now fixed it myself.

I use StopTheMadness and it can execute Javascript snippets. I use this code to press the close button automatically:

function clickCloseButton() {
    const closeButton = document.querySelector('button[aria-label="Close"]');
    
    if (closeButton) {
        closeButton.click();
        console.log('Close button clicked.');
    } else {
        console.log('Close button not found. Retrying...');
        setTimeout(clickCloseButton, 500);
    }
}

clickCloseButton();

felixfoertsch avatar Sep 07 '24 11:09 felixfoertsch

The way YouTube displays chat has changed since we implemented hiding it - we'll probably switch to clicking the close button instead.

insin avatar Sep 08 '24 08:09 insin