crowbartools / MixrElixr

Browser extension that enhances your Mixer viewing experience with custom emotes, new features, and a ton of options.
https://mixrelixr.com
GNU General Public License v3.0
23 stars 7 forks source link

Highlight Mentions #21

Closed itsjesski closed 6 years ago

itsjesski commented 6 years ago

Highlight messages that mention the logged in user with a different background color.

itsjesski commented 6 years ago

Highlights both direct @ mentions as well as just the name spelled out. Maybe there should be a toggle for non @ mentions for users with commonly written names? For example "T" was in the chat the other day. This would technically highlight all messages with the letter T in them.

image

ebiggz commented 6 years ago

This is awesome. I updated it to use a RegEx instead of raw string comparisons. I know you hate them, but this is a perfect use case for regexes. Now T could use this feature without issue because the regex requires that there is a "word boundary" on either side of the username. So the message will only get highlighted if there is a T by itself. But not when its within a word. This combined with #8 I think it will cover most, if not all, use cases.