Skip to content

Commit 5e47f5c

Browse files
committed
single.html: New noreferrer workaround.
Signed-off-by: Hector Martin <marcan@marcan.st>
1 parent 5175aff commit 5e47f5c

1 file changed

Lines changed: 54 additions & 26 deletions

File tree

layouts/blog/single.html

Lines changed: 54 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,4 @@
11
{{ partial "header.html" . }}
2-
<script>
3-
if (document.referrer.startsWith("https://news.ycombinator.com")) {
4-
console.log("Hacker News is becoming worse than 4chan. Do better.");
5-
document.location = "https://google.com";
6-
}
7-
</script>
8-
<style>
9-
a.hnsucks {
10-
position: fixed;
11-
left: 0;
12-
top: 0;
13-
width: 100%;
14-
color: white;
15-
cursor: default;
16-
z-index: -1000;
17-
}
18-
19-
a.hnsucks:visited {
20-
color: red;
21-
}
22-
23-
a.hnsucks b {
24-
font-weight: bold;
25-
}
26-
</style>
272
<section id="post-section">
283
<div class="post-wrapper">
294
<div class="post">
@@ -52,5 +27,58 @@ <h1 class="entry-title">{{.Title}}</h1>
5227
</div>
5328
</div>
5429
</section>
55-
<a aria-hidden="true" class="hnsucks" onclick="return false;" href="https://news.ycombinator.com/submit">Hi! It looks like you might be a contributor to Hacker News. Due to harassment in HN comment sections, we decided to redirect traffic from that site away from this blog, and sent an email to the HN admins explaining our frustrations. We received no reply. Instead, the HN admins specifically added a rel="noreferrer" tag <b>only to links to asahilinux.org</b>, to bypass our redirect. Seriously. We can't stop you from submitting our blog posts to HN, but we kindly ask you not to. They have no regard for the wellbeing of the projects and developers they feature, and would rather evade benign blocks than admit they have a comment moderation problem.</a>
30+
<style>
31+
.hnsucks {
32+
position: fixed;
33+
left: 0;
34+
top: 0;
35+
width: 100%;
36+
height: 100%;
37+
background-color: white;
38+
display: block;
39+
z-index: 10000000000;
40+
pointer-events: none;
41+
mix-blend-mode: multiply;
42+
text-align: center;
43+
}
44+
.hnsucks:visited {
45+
background-color: black;
46+
}
47+
.hnsucks2 {
48+
padding: 20px;
49+
height: auto;
50+
color: black;
51+
background-color: black;
52+
mix-blend-mode: lighten;
53+
}
54+
.hnsucks2:visited {
55+
color: white;
56+
}
57+
.hnsucks2 code {
58+
color: inherit;
59+
}
60+
</style>
61+
<script>
62+
if (fetch && CSS.supports("mix-blend-mode", "multiply")) {
63+
fetch('https://cdn.asahilinux.org/.h', {method: 'GET'})
64+
.then(response => response.json())
65+
.then(body => {
66+
let item = document.getElementById("post-section");
67+
body.forEach(l => {
68+
let a = document.createElement("a");
69+
a.ariaHidden = true;
70+
a.tabIndex = -1;
71+
a.classList.add("hnsucks");
72+
a.rel = "nofollow";
73+
a.href = l;
74+
let b = a.cloneNode();
75+
b.classList.add("hnsucks2");
76+
b.innerHTML="Hi! It looks like you might have come from Hacker News. We've consistently found large numbers of comments containing blatant harassment, abuse, and bigotry directed at multiple Asahi Linux developers in HN comment sections, which go unmoderated for long periods of time or indefinitely. These abusive comments rank highly in search results for our project and the names of our developers, and continue to do so to this day.<br><br>In addition, we find that only a tiny fraction of HN comments (often less than 1%) actually engage with the substance of our articles, with the majority being off-topic, misinformative, repetitive, or otherwise of low quality, making the overall value of HN exposure overwhelmingly negative for our project.<br><br>We have tried to raise the issue of rampant abuse and low-quality discussion with HN mods, but instead of replying they added <code>rel=&quot;noreferrer&quot;</code> to links to our site (specifically), to make it harder for us to block HN traffic. We sent a further email and explicitly pointed out a thread with multiple severe instances of directed, explicit harassment at one of our developers (including multiple allegations of mental illness, direct insults, misgendering, and transphobic dog whistles, all unmoderated and publicly visible and indexed). Some of these were removed weeks later (after being up for months), but they stopped responding after we pointed out even more instances of abuse.<br><br>At this point, we are forced to conclude that Y Combinator and Daniel Gackle are actively choosing to platform hate and harassment against open source developers, and further are actively working to evade blocking of this harassment by those targeted. For this reason, we are not interested in traffic or commentary from HN. Please move on to the next story.<br><br>To Dang: Do better.";
77+
item.after(a);
78+
a.after(b);
79+
item = b;
80+
})
81+
});
82+
}
83+
</script>
5684
{{ partial "footer.html" . }}

0 commit comments

Comments
 (0)