YouTube Hide Chat by Default

Hides chat on YouTube live streams by default

< Feedback on YouTube Hide Chat by Default

Question/comment

§
Posted: 2024-02-29

Seems to have stopped working in the last few days (Chrome 121.0.6167.160/TamperMonkey)

§
Posted: 2024-03-12

Same in Firefox – the script stopped working because of YouTube HTML layout changes.

A possible selector for the new layout is something like yt-live-chat-renderer #close-button, i.e.:

  // - if youtube decides to use a new button type, add it here
  const buttonSelectors = ["button", "yt-live-chat-renderer #close-button"];

But this new kind of a button doesn't have text, which the script relies on, so I've also changed:

  function isHideChatButton(node) {
    return true;
  }

but it still wasn't enough. Unfortunately, I don't have enough bandwidth to investigate further.

skoshyAuthor
§
Posted: 2024-03-15

I've patched the script for the new layout; it should generally work, but I haven't completely battle tested it yet.

§
Posted: 2024-03-16

Version 0.7.1 works for me. Thank you for the update!

Post reply

Sign in to post a reply.