For technical reasons(*) I'm following a chat room by reading the transcript rather than visiting the chat room itself.
The problem is, there is this one user who keeps disrupting any conversation with unsolicited comments, for example when he enters the chat, when other users enter the chat, when he has stomachache, when he leaves for the bathroom, when he comes back from the bathroom, etc. - to put it mildly, it is disgusting, I don't need these images in my head...
Unfortunately the ignore user option only works for the chatroom itself and not for the transcript.
Is there a way to hide the messages of one user from the transcript, maybe with a userscript?
(*) On a slow Internet connection I often get stuck at the "Loading the room. Please wait"-screen. The chat is loaded in the background, I can interact with it via keyboard shortcuts, write messages etc., but the semi-transparent foreground message does not go away which makes it really hard to read anything, so I use the transcript for reading messages.
<div>
that matches the selector.monologue.user-[user ID #]
. You could adddisplay:none;
as CSS to the page for that selector, using either a userscript or an extension that allows you to add arbitrary CSS. (On Firefox, you also have the option to add the CSS to your "userContent.css" file for that profile). I haven't looked at where SE Chat stores the list of users you've ignored, but it's likely that a userscript could be created that fetches that information and automatically hides messages from ignored users.document.documentElement.insertAdjacentHTML('beforeend', '<style type="text/css">.monologue.user-[user ID #] {display:none;}</style>');