我正在开发Google Chrome扩展程序。在这里,我想获取缓存的topsite缩略图。
当我访问chrome://thumb/http://www.google.com/
之类的网址时,我可以看到缩略图。但在我的扩展中,它表明
Not allowed to load local resource: chrome://thumb/https://www.google.com/
有没有办法从Chrome扩展程序访问这些缩略图?
最佳答案
在清单文件的权限部分添加“ chrome:// favicon /”,然后您就可以从扩展脚本中获取访问图标。它可以与Browser Action,,Page Action一起正常工作,但不能与您注入到其他页面的内容脚本一起工作。
让我们看一下my extension。我也使用该功能。