document.addEventListener("click", ({ target }) => { if (target = target.closest('.KIDE_msg_hour')) { target = target.closest('.KIDE_msg_top') let text = target.textContent; kide.insertSmile(text) } });