zlacker

[parent] [thread] 5 comments
1. devmun+(OP)[view] [source] 2021-01-15 01:41:06
I wrote a user script that compares each entry to a blacklist and removes the post from the page. Just by blacklisting the top 15-20 news sites I've been happier.
replies(2): >>lesder+3g >>raunak+Xs1
2. lesder+3g[view] [source] 2021-01-15 03:56:22
>>devmun+(OP)
Would you mind sharing this?
replies(1): >>devmun+uq
◧◩
3. devmun+uq[view] [source] [discussion] 2021-01-15 05:51:03
>>lesder+3g
https://pastebin.com/Q8EKifEw

I'm using the Userscripts Extension in Safari for reference. But the code should work in any browser. https://github.com/quoid/userscripts#readme

replies(1): >>lesder+jJ4
4. raunak+Xs1[view] [source] 2021-01-15 14:42:57
>>devmun+(OP)
Do you know of any already-established scripts that do something like this? I was contemplating introducing a block site extension, but I don't know how much self control I'd have to not just remove it when I see a juicy article I just have to read.
replies(1): >>devmun+lq2
◧◩
5. devmun+lq2[view] [source] [discussion] 2021-01-15 19:29:42
>>raunak+Xs1
no sorry. but the code I shared is really short and sweet. I don't even see the entries on the homepage on the blacklist so there's no temptation to "just remove it".

Try pasting my snippet into your JS console on the homepage to see what i mean (code is short, no HTTP calls)

Humans are tormented by choice/options. The hardest time for someone on a diet is when they have the option to choose junk food. My user script removes it from your HN homepage.

◧◩◪
6. lesder+jJ4[view] [source] [discussion] 2021-01-16 18:10:53
>>devmun+uq
Thanks!
[go to top]