YouTube Hide Chat by Default

Hides chat on YouTube live streams by default

< Feedback op YouTube Hide Chat by Default

Vraag/Reactie

§
Geplaatst: 29-02-2024

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

§
Geplaatst: 12-03-2024

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.

skoshyMaker
§
Geplaatst: 15-03-2024

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

§
Geplaatst: 16-03-2024

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

Reactie plaatsen

Log in om antwoord te geven.