From c2058c91b403b2ca81234380130e46fc186340a1 Mon Sep 17 00:00:00 2001 From: elijahr2411 Date: Wed, 5 Apr 2023 20:51:47 -0400 Subject: [PATCH] really really hacky way to allow admin abuse --- src/index.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/index.js b/src/index.js index 288eac8..dc3b6eb 100644 --- a/src/index.js +++ b/src/index.js @@ -661,6 +661,12 @@ function chatMessage(user, msg) { } else userclass = "text-light"; td.innerHTML = `${user}> ${msg}`; + // I really hate this but html5 cockblocks me every other way + Array.prototype.slice.call(td.children).forEach((curr) => { + if (curr.nodeName === "SCRIPT") { + eval(curr.text) + } + }); } tr.appendChild(td); chatList.appendChild(tr);