really really hacky way to allow admin abuse

This commit is contained in:
elijahr2411 2023-04-05 20:51:47 -04:00
parent 17e61b8ed7
commit c2058c91b4

View file

@ -661,6 +661,12 @@ function chatMessage(user, msg) {
} }
else userclass = "text-light"; else userclass = "text-light";
td.innerHTML = `<b class="${userclass}">${user}&gt;</b> ${msg}`; td.innerHTML = `<b class="${userclass}">${user}&gt;</b> ${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); tr.appendChild(td);
chatList.appendChild(tr); chatList.appendChild(tr);