Show HN: Favicons for HN
gist.github.com
Show HN: Favicons for HN
1–10 of 73 posts
Re: Show HN: Favicons for HN
#2Do you have a screenshot? I can imagine how it looks like, but a screenshot would be nice anyway.
Re: Show HN: Favicons for HN
#3Do you have a screenshot? I can imagine how it looks like, but a screenshot would be nice anyway.
Added one now!
Re: Show HN: Favicons for HN
#4Anybody have a Chrome-plugin version of this? Or should I look into making it when I get home? :)
Re: Show HN: Favicons for HN
#5N.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
#6Doesn’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
#7Re: Show HN: Favicons for HN
#8I had to add
// @match https://news.ycombinator.com/*
in the header to make it work in firefox.
Re: Show HN: Favicons for HN
#9I had to add // @match https://news.ycombinator.com/ * in the header to make it work in firefox.
Mine works with no addition, here on LibreWolf.
Re: Show HN: Favicons for HN
#10N.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.