本文阅读量 次
1. Chrome 扩展开发¶
1.1 基本概念¶
1.1.1 Content scripts¶
1.1.2 Storage API¶
浏览器插件中的 Extension Storage 不同于浏览器页面中的 Web Storage,虽然在插件的某些页面如 popup.html
也可以使用 Web Storage,但这会面临一些问题,如
- 插件的 service workder 不能使用 Web Storage
- Content scripts 将会和所在的宿主页面共享相同的存储空间
- 当用户清除浏览器数据时, Web Storage 中的数据也讲被清除
1.2 示例¶
1.3 工具¶
1.4 参考¶
- Manifest 文件详细定义 ⧉
- Browser Action ⧉
- Debugger API ⧉
- chrome.browsingData ⧉
- chrome.windows ⧉
- chrome.scripting ⧉
- chrome.webRequest ⧉
- chrome.identity ⧉
- chrome.declarativeNetRequest ⧉
- chrome.processes https://developer.chrome.com/docs/extensions/reference/processes/ ⧉
-
chrome.runtime https://developer.chrome.com/docs/extensions/reference/runtime/ ⧉
- Rich notifications API ⧉