Live data from Hacker News

Show HN: Favicons for HN

gist.github.com

41–50 of 73 posts

Re: Show HN: Favicons for HN

#41
post #6

Doesn’t work (at least for me in Chrome with Tampermonkey) due to Hacker News’s Content-Security-Policy header. > Refused to load the image ' ' because it violates the following Content Security Policy directive: "img-src data: 'self' ". Overriding this would probably require an extension with a Service Worker that edits the CSP header.

This modification works for me: https://greasyfork.org/en/scripts/443687-hn-favicons . It uses GM.addElement to bypass CSP restrictions.

Ha, I literally just re-wrote the original code essentially identically to this.

Unfortunately, it still doesn't help in Tamper Monkey in Safari.

Re: Show HN: Favicons for HN

#42
post #32

I made https://hn.hsblhsn.me which loads Opengraph data of the linked page as a preview of the content inside.

I was greeted by a blank page:

> Loading module from “https://hn.hsblhsn.me/assets/index.c8baae85.js” was blocked because of a disallowed MIME type (“text/plain”).

> The resource from “https://hn.hsblhsn.me/assets/index.49215043.css” was blocked due to MIME type (“text/plain”) mismatch (X-Content-Type-Options: nosniff).

Re: Show HN: Favicons for HN

#43
post #39

Oh please don't. I don't want HN to turn into something like slack that is filled with emojis and animated gifs. It's just too much noise.

Did you know: This happens for each and every user individually, so no danger for the pure design of HN. I like the way it helps me orient where the links lead. I'll keep it for a week to see what changes. Hat tip to the author!

Re: Show HN: Favicons for HN

#44
Links usually don't display a favicon next to them only when you open the page the browser tab title does. It'd be pretty cluttered imo if random images were shown in an otherwise text-based environment.

Re: Show HN: Favicons for HN

#46
post #33

As an aside, there's Refined Hacker News[0] which seems like it would be a great option for this to be built into. It has lots of great features while keeping things minimal. [0] https://github.com/plibither8/refined-hacker-news

Thanks for extensions.

But I think there's no need to integrate its functionality to the site. This way one can choose how to customize the site without increasing complexity of the site itself.

Re: Show HN: Favicons for HN

#48

Cool idea but I generally like the text-based meritocracy that exists now. I mostly go by post title rather than source. I would bet that I’d be influenced by sources more if I saw the source’s favicon. Just a hypothesis.

I've barely given it any thought, but I am more likely to click into submissions from particular domains already. That said, it's more of a secondary influence to the title.

Re: Show HN: Favicons for HN

#50
I personally have no desire to use it, but I appreciate that it's a significantly more efficient way of providing more info compared to a thumbnail.

This is one of the few places on the web where I'm not utterly overwhelmed by visual clutter, and I genuinely wish more sites had a 'no images/thumbnails' mode like HN.

Post reply on HN