Live data from Hacker News

I created an ephemeral group chat app for strangers

commonroom.chat

31–39 of 39 posts

Re: I created an ephemeral group chat app for strangers

#33

Earlier quoted context omitted.

Wow. It was working great at the start before people started spamming nsfw content and injecting html and css into the page. Will be taking down the site in the morning and working on version 2. I guess from this I can say there’s some demand?

Easy fix: In your script.js in the appendMessage function do this: const chatMessage = document.createElement("div"); chatMessage.classList.add("chat-message"); chatMessage.innerHTML = ` ${username}: `; const userMessage = document.createElement('span'); span.innerText = message; chatMessage.appendChild(userMessage); chatContainer.appendChild(chatMessage); chatContainer.scrollTop = chatContainer.scrollHeight;

I love how people here actually check the source code of a website. So HN

Re: I created an ephemeral group chat app for strangers

#36
post #21

Beyond broken and unsuitable for public release. Take it down and fix it.

Wow. It was working great at the start before people started spamming nsfw content and injecting html and css into the page. Will be taking down the site in the morning and working on version 2. I guess from this I can say there’s some demand?

It's unfortunate, though anything you make online now will be abused readily and should thus be hardened. By leaving it in the state it was, regular users were endangered.

Re: I created an ephemeral group chat app for strangers

#37
post #36

Earlier quoted context omitted.

Wow. It was working great at the start before people started spamming nsfw content and injecting html and css into the page. Will be taking down the site in the morning and working on version 2. I guess from this I can say there’s some demand?

It's unfortunate, though anything you make online now will be abused readily and should thus be hardened. By leaving it in the state it was, regular users were endangered.

Don't be dramatic, there was no danger.

Re: I created an ephemeral group chat app for strangers

#38
post #36

Earlier quoted context omitted.

It's unfortunate, though anything you make online now will be abused readily and should thus be hardened. By leaving it in the state it was, regular users were endangered.

Don't be dramatic, there was no danger.

Folks were spamming porn and posting your IP address to chat on your behalf. Being able to execute code in someone else’s browser is dangerous.

Re: I created an ephemeral group chat app for strangers

#39
post #38

Earlier quoted context omitted.

Don't be dramatic, there was no danger.

Folks were spamming porn and posting your IP address to chat on your behalf. Being able to execute code in someone else’s browser is dangerous.

No it's not. Literally every website you visit can do that. It's called JavaScript and it's sandboxed.

You really think some rando that spins up a web server is significantly more trustworthy that a rando in a chat channel? Of course not, they're the same people.

Post reply on HN