Comment by st_goliath
18 days ago
If you have JavaScript enabled, that is. JWZ at least does the redirect on the server side.
The following is pulled in from `https://soc.me/assets/js/turnBack.js`:
const undesirables = [
"news.ycombinator.com/",
// "reddit.com/", // disable temporaily
"lobste.rs/"
] ;
if (undesirables.find(site => document.referrer.includes(site))) {
window.location.replace(document.referrer);
}
I wonder why Reddit is "temporarily not undesirable".
Git history doesn't explain it unfortunately
https://github.com/soc/soc.me/blame/main/assets/js/turnBack....
Although, when we inspect author's profile on lobste.rs, we'll see that he's banned:
https://lobste.rs/~soc [Banned 4 years ago by pushcx: Troll.]
Maybe he's banned from HN as well. And this 'undesirables' is a method of taking some kind of revenge.
Last comment was just over 5 years ago.
https://news.ycombinator.com/user?id=soc
Author has said that development is moved to codeberg, but github version was good enough for the "turnBack.js" analysis.
Uh, before I wrote my sibling comment I read 'comment' as 'commit' and because of it I somehow assumed it was a github link... not sure how that happened.
Anyway, the user named 'soc' on HN has "listbite" in the description. I saw this profile, but I think it's not the same guy. But also I wasn't sure so I didn't paste the link to HN at all.
Why are they undesirable though