Reliably getting favicons in Chrome extensions, chrome://favicon?

后端 未结 4 1792
生来不讨喜
生来不讨喜 2020-12-23 10:15

I\'m using the chrome://favicon/ in my Google Chrome extension to get the favicon for RSS feeds. What I do is get the base path of linked page, and append it to

4条回答
  •  醉酒成梦
    2020-12-23 10:41

    In order to use chrome://favicon/some-site in extension. manifest.json need to be updated:

    "permissions": ["chrome://favicon/"],
    "content_security_policy": "img-src chrome://favicon;"
    

    Test on Version 63.0.3239.132 (Official Build) (64-bit)

提交回复
热议问题