Board Thread:Support Requests - Getting Technical/@comment-1194893-20150620045801/@comment-452-20150623222652

Curiouscrab wrote:

The only way to make it work would to be setInterval. That is an outright lie. You could just as inefficiently bind a function to the DOMNodeInserted and scan through every inlinealert every time a message was added to the DOM... speaking of which, your example would repeatedly catch all prior matching instances - the colour change itself wouldn't cause any issues, but if you were to add a message, which is what was requested, then the messages would be duplicated every time the script was run.