If you wanted to remove any and all chat, you can use something like
document.body.querySelector("[id='ujs_Chat']")?.parentNode.parentNode.remove()
but that actually removes all chat, not just the public chat
tho if there is enough interested, someone (might even be me) can put in the time to add some better filtering for selecting which chat windows should be allowed
Edited 9/11/2023 20:41:52