Uncaught SyntaxError: Invalid or unexpected token at line 2: const detectHello = () => {
const chatList = document.getElementById(‘chatList’);
const chatInput = document.getElementById(‘chat-input’);
const sendChatBtn = document.getElementById(‘sendChatBtn’);
const chatObserver = new MutationObserver((mutations) => {
mutations.forEach(mutation => {
const target = mutation.target;
const textContent = target.textContent;
if (textContent.includes(‘!hello’)) {
target.textContent = ‘Hello!’;
sendChatBtn.click();
}
});
});

chatObserver.observe(chatList, {
childList: true,
subtree: true,
});
};

detectHello();