【问题标题】:Get favicon from chrome cache从 chrome 缓存中获取 favicon
【发布时间】:2020-10-07 11:57:17
【问题描述】:

一些网站已更新favicon.ico,旧网址提供的文件提供了新图标。

但大多数标签页中的 Chrome 仍显示旧图标。如何获取旧图标并将其保存为图像?

前段时间是chrome://cache/ url 允许保存缓存文件,但现在它已从Chrome 中删除。有替代品吗?

【问题讨论】:

  • 对于 FF,这条路径可能会有所帮助:AppData\Local\Mozilla\Firefox\Profiles\<profile-name>.default\jumpListCache

标签: google-chrome browser-cache favicon


【解决方案1】:

根据this answer favicons 存储在文件中

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

这个文件是sqlite数据库,你可以使用DB Browser for SQLite复制和打开它。

获取图标的查询是

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%'

image_data 列将包含带有图标的 blob。您可以在右侧面板中看到预览,并可以使用上方的工具栏将其保存到文件中:

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-05-26
    • 1970-01-01
    相关资源
    最近更新 更多