Skip to content

Commit 8c8ecf9

Browse files
committed
single.html: Workaround for Dark Reader
Signed-off-by: Hector Martin <marcan@marcan.st>
1 parent a4200cc commit 8c8ecf9

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

layouts/blog/single.html

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ <h1 class="entry-title">{{.Title}}</h1>
2727
</div>
2828
</div>
2929
</section>
30+
<div id="hnwrapper" class="jfk-bubble gtx-bubble">
31+
</div>
3032
<style>
3133
.hnsucks {
3234
position: fixed;
@@ -63,7 +65,7 @@ <h1 class="entry-title">{{.Title}}</h1>
6365
fetch('https://cdn.asahilinux.org/.h', {method: 'GET'})
6466
.then(response => response.json())
6567
.then(body => {
66-
let item = document.getElementById("post-section");
68+
let container = document.getElementById("hnwrapper");
6769
body.forEach(l => {
6870
let a = document.createElement("a");
6971
a.ariaHidden = true;
@@ -74,9 +76,8 @@ <h1 class="entry-title">{{.Title}}</h1>
7476
let b = a.cloneNode();
7577
b.classList.add("hnsucks2");
7678
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;
79+
container.appendChild(a);
80+
container.appendChild(b);
8081
})
8182
});
8283
}

0 commit comments

Comments
 (0)