by jasode · 4y ago · 0 comments
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 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.
Also heavy disagree. [] for array access is better than array.get(0). I have list access like this in Java and it sucks.