While I've found the PCRE regex searching on MS with MariaDB to be very helpful and it has resulted in saving me significant time and effort (even though regex searches are not currently working on MS), the priority is having MS be more stable than it currently is. If we don't have the ability to determine and fix the problems with MariaDB, then we should switch back (assuming MariaDB is the actual problem).
@JohnDvorak It only checks once per page load. If your style changes more often than that, then no, it does not handle it. Does it need to handle it more often than that?
Is it something that changes across all messages, or different message background colors on a per message basis? What actually changes? Message background color? Message text color? ???
It assigns each user a background color, trying to spread them out, taking into account how much they spoke recently (= whatever messages are visible in the viewport)
@JohnDvorak Well, the easy way would be to modify that script to have it apply the background-color to AIM's ai-information class. I'm not thrilled with the idea of running the color-choice on a periodic basis to look for times when the color might have changed. At most, I'd think that once per posted message, or posted SD report, would be the most that's appropriate. OTOH, if you provided a link to that script, it might be possible to have something that deals with it specifically.
The only other colors that are adapted are the color of the ai-feedback-info-tpu, ai-feedback-info-fp, and ai-feedback-info-naa classes, which are given somewhat lighter green, red, and brown colors if the background-color is "light" or "dark", based on the effective color of the messagesbackground-color, including alpha channel, but excluding background image color (assumes the base background-color is set to be an appropriate matching color for the average of the image).
All theses color assignments are done with adding a single <style> element.
@JohnDvorak The use of the alpha channel in the background-color of a parent element was the primary problem. Using a background-color with a relatively small value for the alpha channel on this element doesn't work well, because it is often overlaying text. Thus, it shows text merged on top of text, which ends up not very readable.
@Makyen That pattern looks like it's already caught by Potentially bad keyword in body and Potentially bad keyword in answer; append -force if you really want to do that.