Live data from Hacker News

Show HN: Favicons for HN

gist.github.com

1–10 of 73 posts

Re: Show HN: Favicons for HN

#5
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).

Re: Show HN: Favicons for HN

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

Re: Show HN: Favicons for HN

#10

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).

This - an alternative approach could be to create the images with a URL of '{domain}/favicon.ico' and then add an onError event to switch the URL to the DDG URL only for instances where the site's favicon isn't in the default location.
Post reply on HN