The Computer Oracle

Grab favicon.ico using Google Chrome dev tools

--------------------------------------------------
Hire the world's top talent on demand or became one of them at Toptal: https://topt.al/25cXVn
and get $2,000 discount on your first invoice
--------------------------------------------------

Music by Eric Matyas
https://www.soundimage.org
Track title: Breezy Bay

--

Chapters
00:00 Grab Favicon.Ico Using Google Chrome Dev Tools
00:25 Answer 1 Score 18
00:46 Accepted Answer Score 21
01:02 Answer 3 Score 14
01:26 Answer 4 Score 14
01:41 Thank you

--

Full question
https://superuser.com/questions/532616/g...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#googlechrome #favicon

#avk47



ACCEPTED ANSWER

Score 21


It can sometimes be a little bit tedious to find the “shortcut icon” link in the HTML.  Another approach is to create an Internet shortcut (i.e., a “Favorite” in IE, a.k.a. a “Bookmark”) and open it with Notepad:

    [DEFAULT]
    BASEURL=http://superuser.com/questions/532616/grab-favicon-ico-…
    [{000214A0-0000-0000-C000-000000000046}]
    Prop3=19,2
    [InternetShortcut]
    URL=http://superuser.com/questions/532616/grab-favicon-ico-using-google-…
    IDList=
->  IconFile=http://cdn.sstatic.net/superuser/img/favicon.ico
    IconIndex=1

The IconFile and IconIndex are usually at the end.




ANSWER 2

Score 18


You can click Ctrl+U to view source and look for the favicon in the code (<link rel="shortcut icon"). It's usually in the top of the HTML source file, since it's inside the <head>.

For this page, it's in the 7th line:

<!DOCTYPE html>
<html>

<head>

    <title>Grab favicon.ico using Google Chrome dev tools - Super User</title>
    <link rel="shortcut icon" href="http://cdn.sstatic.net/superuser/img/favicon.ico">



ANSWER 3

Score 14


You can use the power of google to do this:

http://www.google.com/s2/favicons?domain=www.google.de

Replacing the domain name above will grab the favicon for that given domain.


You can also use this variant:

http://www.google.com/s2/favicons?domain_url=http%3A%2F%2Fwww.google.de%2F

that will get the favicon for any url.




ANSWER 4

Score 14


Use Chrome Dev Tools Network tab. Filter by favicon Reload the page with Shift+F5 You will get the icon regardless it was loaded with link or from default location