From bd218d86740d342e987857f9a9b7b243e7b59fba Mon Sep 17 00:00:00 2001 From: Dounford-Felipe <92835771+Dounford-Felipe@users.noreply.github.com> Date: Sun, 3 Dec 2023 00:17:50 -0300 Subject: [PATCH] Update auto.js --- auto.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/auto.js b/auto.js index f0e6a43..0ef15f4 100644 --- a/auto.js +++ b/auto.js @@ -2327,13 +2327,16 @@ window.sendChat = chatSend const showMessage = (msg, sender) => { if (msg.startsWith('https') || msg.startsWith('www')) {msg = ''+msg+''} - if (msg.includes('@'+username)) {ding.play()} var messageContainer = document.createElement('div'); var senderElement = document.createElement('strong'); senderElement.innerText = sender + ": "; messageContainer.appendChild(senderElement); var message = document.createElement('span'); message.innerHTML = msg; + if (msg.includes('@'+username)) { + message.style.backgroundColor = 'gold'; + ding.play() + }; messageContainer.style.wordWrap = "break-word"; messageContainer.appendChild(message); var messageArea = document.getElementById('messages');