Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Hide Chat" hides the chat but leaves unused space #52

Open
felixfoertsch opened this issue Sep 7, 2024 · 2 comments
Open

"Hide Chat" hides the chat but leaves unused space #52

felixfoertsch opened this issue Sep 7, 2024 · 2 comments
Labels
bug Something isn't working youtube-change

Comments

@felixfoertsch
Copy link

felixfoertsch commented Sep 7, 2024

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 felixfoertsch changed the title " "Hide Chat" hides the chat but leaves unused Space Sep 7, 2024
@felixfoertsch felixfoertsch changed the title "Hide Chat" hides the chat but leaves unused Space "Hide Chat" hides the chat but leaves unused space Sep 7, 2024
@felixfoertsch
Copy link
Author

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();

@insin
Copy link
Owner

insin commented Sep 8, 2024

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

@insin insin added bug Something isn't working youtube-change labels Sep 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working youtube-change
Projects
None yet
Development

No branches or pull requests

2 participants