I created a Tampermonkey script to highlight one's own point messages in chat

I wanted a way to easier find messages in chat that say how many points I have earned, so I quickly threw together a userscript for the Tampermonkey browser extension that highlights such messages. The script works for any user as it gets the account name from the top right and compares chat messages against that.
I have tested this with the Firefox, Google Chrome, and Vivaldi browsers using the Tampermonkey extension. I don’t know if Greasemonkey or other browsers work. The color cannot be changed via a setting in the UI, however you can edit the script to change the color (line 18).
I’d like to add, that due to the way the message detection works (if the message starts with the user’s name, highlight it), achievement messages are affected as well. I don’t think, that that’s a big deal, but if wanted, I can of course adjust the script to ignore certain messages.

Source code and installation how-to can be found here: https://github.com/bl4ckscor3/HighlightMyPoints

Maybe this is useful to some of you :slight_smile:

Images:
2020-05-25_15-51-22 2020-05-25_16-01-00

3 Likes

I just updated the script to be more performant. It now no longer checks every single chat message, but only new ones.