Hides chat on YouTube live streams by default
< Feedback on YouTube Hide Chat by Default
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.
I've patched the script for the new layout; it should generally work, but I haven't completely battle tested it yet.
Version 0.7.1 works for me. Thank you for the update!
Seems to have stopped working in the last few days (Chrome 121.0.6167.160/TamperMonkey)