Hi,
I’m trying to create a content script that allows me to add predefined content quickly to chat textbox.
Here is my code for the moment:
img.addEventListener('click', function() {
const textBox = document.querySelector('div[role="textbox"]');
const currentText = textBox.textContent.trim();
textBox.textContent = currentText ? currentText + ' ' + emote.name : emote.name;
});
but the problem is that the text seems not to be a the right place as you can see:
Does anyone know how to do it the right way ? as 7TV does it