Live data from Hacker News

Show HN: Favicons for HN

gist.github.com

21–30 of 73 posts

Re: Show HN: Favicons for HN

#23
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.

Re: Show HN: Favicons for HN

#24
Tangent: try to make sure your websites serve the right favicon regardless of whether the user is logged in or not. Its honestly no big deal, but something I noticed writing the favicon service for synth.app (for tabs and such before we can calculate the favicon using the HTML).

For example, the google domains (gmail/cal/drive/etc) all show the same google accounts favicon [1] and we had to special case a few more.

[1] https://icons.duckduckgo.com/ip3/mail.google.com.ico

Re: Show HN: Favicons for HN

#26
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.

Yeah, appears XHR/fetches are similarly blocked – was looking into data URIs. Good job HN for getting a decent CSP set up!

Re: Show HN: Favicons for HN

#28
Is anyone who's good with CSS able to modify this to align the icon and text better? The current alignment where the baseline of the text is in line with the bottom of the favicon feels off.

Re: Show HN: Favicons for HN

#30

N.B. this is going to send a request to duck duck go for every link which (a) some people aren't going to like, and (b) DDG might not like (I couldn't find any explicit policy for using their favicon service).

Google have the same service[1] if that's your thing.

I've been using it on a links heavy dashboard page for a couple of years now, and it always worked.

I'll probably switch to DDG now tho.

---

[1] https://www.google.com/s2/favicons?domain=example.com

Post reply on HN