Skip to content

Commit b0d96d7

Browse files
committed
layouts/blog/single.html: Back to referrers.
Signed-off-by: Hector Martin <[email protected]>
1 parent 7fcbbb6 commit b0d96d7

File tree

1 file changed

+10
-37
lines changed

1 file changed

+10
-37
lines changed

layouts/blog/single.html

Lines changed: 10 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -36,50 +36,23 @@ <h1 class="entry-title">{{.Title}}</h1>
3636
top: 0;
3737
width: 100%;
3838
height: 100%;
39-
background-color: white;
39+
color: white;
40+
background-color: black;
4041
display: block;
4142
z-index: 10000000000;
4243
pointer-events: none;
43-
mix-blend-mode: multiply;
4444
text-align: center;
4545
}
46-
.hnsucks:visited {
47-
background-color: black;
48-
}
49-
.hnsucks2 {
50-
padding: 20px;
51-
height: auto;
52-
color: black;
53-
background-color: black;
54-
mix-blend-mode: lighten;
55-
}
56-
.hnsucks2:visited {
57-
color: white;
58-
}
59-
.hnsucks2 code {
60-
color: inherit;
61-
}
6246
</style>
6347
<script>
64-
if (fetch && CSS.supports("mix-blend-mode", "multiply")) {
65-
fetch('https://cdn.asahilinux.org/.h?' + Math.random(), {method: 'GET'})
66-
.then(response => response.json())
67-
.then(body => {
68-
let container = document.getElementById("hnwrapper");
69-
body.forEach(l => {
70-
let a = document.createElement("a");
71-
a.ariaHidden = true;
72-
a.tabIndex = -1;
73-
a.classList.add("hnsucks");
74-
a.rel = "nofollow";
75-
a.href = l;
76-
let b = a.cloneNode();
77-
b.classList.add("hnsucks2");
78-
b.innerHTML = "Hi! It looks like you might have come from Hacker News (if you didn't, try turning off dark mode).<br><br>We're going to be blunt: Hacker News is increasingly a haven for alt-right trolls and hateful abusers, and the administrators have demonstrated that they have no interest in improving the situation despite repeated pleas by multiple people, in public and in private, even going as far as deploying countermeasures to prevent us from blocking HN traffic. A significant number of Hacker News commenters have repeatedly directed harassment, abuse, doxxing, and bigotry at multiple Asahi Linux developers, and much of this content remains available and not flagged or downvoted.<br><br>The open source community cannot stand to accept this kind of conduct. Many of us are members of minorities and regularly subject to abuse by these kinds of online communities. Without diverse developers, there would be no Asahi Linux.<br><br>These abusers may not use curse words or blatant slurs as often in HN as they do in other communities, but the messages they spread and brigade on the site are just as hateful and damaging as what you will find in other darker corners of the web, and anyone familiar with such conduct will have no trouble noticing the prevalence of dog whistling, bad faith arguments, and discourse aimed at marginalizing minorities under the guise of polite discussion in many HN threads. We understand that not all Hacker News users are like this. However, by letting these vocal users run undeterred, Y Combinator and Daniel Gackle are tacitly approving of this abuse and hurting the reputation of the entire site and its userbase. If you want to support us and what we do and you are a Hacker News user, please bring this up and demand change within the community.<br><br>As things stand today, we consider Hacker News traffic to be a net negative for the project (yes, it's that bad), and we kindly ask you to move on to the next story.";
79-
container.appendChild(a);
80-
container.appendChild(b);
81-
})
82-
});
48+
if (document.referrer.match("//news.ycombinator.com")) {
49+
let container = document.getElementById("hnwrapper");
50+
let a = document.createElement("div");
51+
a.ariaHidden = true;
52+
a.tabIndex = -1;
53+
a.classList.add("hnsucks");
54+
a.innerHTML = "Hi! It looks like you might have come from Hacker News.<br><br>We're going to be blunt: Hacker News is increasingly a haven for alt-right trolls and hateful abusers, and the administrators have demonstrated that they have no interest in improving the situation despite repeated pleas by multiple people, in public and in private, even going as far as deploying countermeasures to prevent us from blocking HN traffic. A significant number of Hacker News commenters have repeatedly directed harassment, abuse, doxxing, and bigotry at multiple Asahi Linux developers, and much of this content remains available and not flagged or downvoted.<br><br>The open source community cannot stand to accept this kind of conduct. Many of us are members of minorities and regularly subject to abuse by these kinds of online communities. Without diverse developers, there would be no Asahi Linux.<br><br>These abusers may not use curse words or blatant slurs as often in HN as they do in other communities, but the messages they spread and brigade on the site are just as hateful and damaging as what you will find in other darker corners of the web, and anyone familiar with such conduct will have no trouble noticing the prevalence of dog whistling, bad faith arguments, and discourse aimed at marginalizing minorities under the guise of polite discussion in many HN threads. We understand that not all Hacker News users are like this. However, by letting these vocal users run undeterred, Y Combinator and Daniel Gackle are tacitly approving of this abuse and hurting the reputation of the entire site and its userbase. If you want to support us and what we do and you are a Hacker News user, please bring this up and demand change within the community.<br><br>As things stand today, we consider Hacker News traffic to be a net negative for the project (yes, it's that bad), and we kindly ask you to move on to the next story.";
55+
container.appendChild(a);
8356
}
8457
</script>
8558
{{ partial "footer.html" . }}

0 commit comments

Comments
 (0)