Fixed scrollbar being wrong color
Minor optimizations

Don't call getField inside a for-loop when we can just do it once at the
start
Don't rebuild the regex each time
Break out of for each if user found

Could potentially make the code run a tiny bit faster
Make sure user menu is not overdrawn
debug can be const, so lets make that the case
Removed unnecessary whitespace
Disable warning that debug code is unreachable
Whitespace and comment changes
Add a cache to improve performance

This does seem to sacrifice some performance for short chat logs, but
for long chats the performance drop is much lower than before.