Are you lonely and want to do something? Flag those spam comments.
Yeah, I was surprised by the amount, it feels like an attack rather than spam.
I hope this didn't interrupt Dang from something more important.
Yeah, I was surprised by the amount, it feels like an attack rather than spam.
I hope this didn't interrupt Dang from something more important.
I'm honestly perplexed that HN doesn't have any kind of string filtering facility considering its centrality in the tech ecosystem.
The temporary solution is to shadow ban the comments, the usernames seems to follow 2 naming schemas. Banning them completely will alert the attacker to change the naming schema, or to make it more random, which will make stopping them even more difficult.
function modifyElements(pSel, cSel, rxStr) {
const regex = new RegExp(rxStr, 'i');
const pEls = document.querySelectorAll(pSel);
pEls.forEach(pEl => {
const fEl = pEl.querySelector(cSel);
if (fEl && regex.test(fEl.textContent)) {
pEl.style.display = 'none';
}
});
}
let rx = /(hi are u lonely|want (an )?ai gf?)/i;
modifyElements(".athing.comtr", ".comment", rx);
People can add onto the regex as needed, I guess. I haven't seen enough of the comments to be more specific since that seemed to get them. :-/Is a certain threshold of users required to flag a comment before it's removed?