var mo = new MutationObserver(records => {
records.forEach(record => {
Array.from(record.addedNodes).forEach(addedNode => {
if(addedNode.matches(".user-187246 .message")){
speechSynthesis.speak(new SpeechSynthesisUtterance(addedNode.textContent))
}
})
})
})
mo.observe(document.getElementById("chat"), {childList: true, subtree: true})