Board Thread:Support Requests - Getting Technical/@comment-5558012-20160826161142/@comment-24757753-20160827123557

> chat opening as a new tab

When any link to Special:Chat is clicked, it goes through the ChatWidget.onClickChatButton function. If you take a look the the  line there, you'll see that   controls how it opens.

Setting that variable to an empty string will cause it to open in a new tab (the default for   in most browsers), as opposed to a pop-up.

> when there's a new post having a side-scrolling or flashing message on the tab itself

There's ChatNotifications, for showing a notification when certain terms are mentioned, and PrivateMessageAlert, which shows a message on the tab when a new private message is received, but I'm not sure if something like what you're asking for currently exists.

The code by Penguin-Pal you've linked seems to be for showing wall/forum notifications inside the chat window, as opposed to showing chat notifications.