40 ms·
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.
by st_goliath 9mo 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 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".
- mechazawa 9mo agoWhy are they undesirable though
- self_awareness 9mo agoGit history doesn't explain it unfortunately https://github.com/soc/soc.me/blame/main/assets/js/turnBack.js 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 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.
- colejohnson66 9mo agoLast comment was just over 5 years ago. https://news.ycombinator.com/user?id=soc https://news.ycombinator.com/user?id=soc
- self_awareness 9mo agoAuthor has said that development is moved to codeberg, but github version was good enough for the "turnBack.js" analysis.
- self_awareness 9mo agoUh, 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.