Qwertiy
Qwertiy

Reputation: 21380

Get favicon from chrome cache

Some site have updated favicon.ico and file served by old url gives the new icon.

But Chrome in most of tabs still shows the old icon. How can I get the old icon and save it as an image?

Some time ago the was chrome://cache/ url allowing to save cached files, but now it is removed from Chrome. Is there any replacement?

Upvotes: 2

Views: 4434

Answers (1)

Qwertiy
Qwertiy

Reputation: 21380

According to this answer favicons are stored in file

win:   %LocalAppData%\Google\Chrome\User Data\Default\Favicons
mac:   ${user.home}/Library/Application Support/Google/Chrome/Default/Favicons

This file is sqlite database and you can copy and open it using DB Browser for SQLite.

The query to get icons is

select f.url, b.*
from favicons f inner join favicon_bitmaps b on f.id = b.icon_id
where f.url like '%domain-of-the-site%'

Column image_data will contain blob with the icon. You can see preview in the right panel and can save it to file using toolbar above it:

screenshot

Upvotes: 5

Related Questions