4 ms·
No, I've not thought about favicons. That's a really interesting challenge. I wonder if there's a way to detect favicons just using JavaScript that runs agains
by simonw 5y ago
No, I've not thought about favicons. That's a really interesting challenge.
I wonder if there's a way to detect favicons just using JavaScript that runs against a page? Not sure if it's easy to detect /favicon.ico v.s. the various meta tags.
- simonw 5y agoWould be kind of fun to write JavaScript that runs against the page that first looks for the meta tags, then tries to fetch("/favicon.ico") and returns either the URL or a base64 encoded copy of the image (since the "shot-scraper javascript" command requires you to return JSON).
- marginalia_nu 5y agoThere's a lot of weird edge cases for favicons, most browsers fall back to just looking for /favicon.ico if you don't explicitly specify it in the meta tags, and if you do, there's sometimes different versions. Yeah, maybe it's a pipe dream :-/ But even without them, it looks really useful!
- Freeboots 5y agoI've found some fairly reliable repos in the past, or https://t1.gstatic.com/faviconV2?client=SOCIAL&type=FAVICON&fallback_opts=TYPE,SIZE,URL&url=http://news.ycombinator.com&size=64 https://t1.gstatic.com/faviconV2?client=SOCIAL&type=FAVICON&... still works (but for how long)