Comment plugin: image preview and clickable link
Comment plugin: image preview and clickable link
perchance.org
Just a moment...
message = message.replace(/(https?:\/\/[^\s]+)/g, url => /\.(png|webp|jpeg|jpg|gif)$/i.test(url) ? `<a href="${url}" target="_blank" rel="noopener noreferrer"><img src="${url}" style="height:100px; display:block; cursor:pointer;"></a>` : `<a href="${url}" target="_blank" rel="noopener noreferrer">${url}</a>`
I believe it's not added due to moderation and safety reason.
But those unmoderated chat are always and already chaos and sometimes NSFW in nature.
A better option is made those optional choice for gen owners.
I believe that could be a huge chat experience boost in moderated gens.