Greasy Fork is available in English.

YouTube Hide Chat by Default

Hides chat on YouTube live streams by default

< Commentaires sur YouTube Hide Chat by Default

Question / commentaire

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

§
Posté le: 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.

skoshyAuteur
§
Posté le: 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.

§
Posté le: 2024-03-16

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

Poster une réponse

Connectez-vous pour poster une réponse.