5 ms·
Fyi... if you're getting a bounceback... It seems the author doesn't want this on Hacker News. The webpage html source: <!DOCTYPE html> <html lang="en">
by jasode 4y ago
Fyi... if you're getting a bounceback... It seems the author doesn't want this on Hacker News.
The webpage html source:
<!DOCTYPE html>
<html lang="en">
...
<script async src="/assets/js/turnBack.js"></script>
...
which has this code to bounce you back:
const undesirables = [
"news.ycombinator.com/",
// "lobste.rs/" // does not work due to rel="noreferrer"
] ;
if (undesirables.find(site => document.referrer.includes(site))) {
window.location.replace(document.referrer);
}
(The https://jwz.org https://jwz.org domain by Jamie Zawinski is another example of a redirect when referred by Hacker News.)
EDIT to downvoters... I don't mind the downvotes but could you explain? If my information is inaccurate and doesn't contribute to the discussion, I'd like to learn what is wrong. Thank you.
- Ygg2 4y agoAs if HN people don't know how to copy a link... Or stop browser mid load... Also heavy disagree. [] for array access is better than array.get(0). I have list access like this in Java and it sucks.
- agumonkey 4y agoI was super confused by that, here's the network sequence https://imgur.com/E77sJj9.png https://imgur.com/E77sJj9.png
- Existenceblinks 4y agoTo simply stop it, just hit the browser's stop (refresh) button while it's firing network request. That will cancel it.
- stareatgoats 4y agoThe question is why: it won't stop the HN audience, all it does is add some piqued interest - which AFAICT goes unanswered.
- politelemon 4y agoTo be fair to them, we resemble that remark.
- deleted 4y ago[deleted]