Re:I created an ephemeral group chat app for strangers
by tejitopia on Thursday December 28, 2023 @06:33AM
(#38792401)
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?
[ Parent
| on HN ]
Re:I created an ephemeral group chat app for strangers
by beeboobaa on Thursday December 28, 2023 @07:00AM
(#38792582)
Easy fix: In your script.js in the appendMessage function do this:
const chatMessage = document.createElement("div");
chatMessage.classList.add("chat-message");
chatMessage.innerHTML = `<span class="username" style="color: ${color};">${username}:</span> `;
const userMessage = document.createElement('span');
span.innerText = message;
chatMessage.appendChild(userMessage);
chatContainer.appendChild(chatMessage);
chatContainer.scrollTop = chatContainer.scrollHeight;
Re:I created an ephemeral group chat app for strangers
by bossyTeacher on Thursday December 28, 2023 @09:28AM
(#38793769)
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
by nusl on Friday December 29, 2023 @04:36AM
(#38803183)
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
by beeboobaa on Friday December 29, 2023 @09:05AM
(#38804971)
Don't be dramatic, there was no danger.
Re:I created an ephemeral group chat app for strangers
by nusl on Monday January 01, 2024 @02:25AM
(#38830235)
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
by beeboobaa on Monday January 01, 2024 @01:11PM
(#38833862)
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.