diff --git a/js/main.js b/js/main.js index 3652daa0..d152a572 100644 --- a/js/main.js +++ b/js/main.js @@ -299,11 +299,11 @@ if (buttonsInChat.length > 0) { menu.appendChild(thisButton); // Only apply transformations to button elements - if (thisButton.tagName.toLowerCase() === 'button') { + if (thisButton.tagName.toLowerCase() === "button") { thisButton.addEventListener("click", () => { hideMenu(); }); - + const buttonText = thisButton.textContent; const matches = buttonText.match(/(\(.*?\))/);