Chrome, Firefox, Safari的Web扩展(浏览器插件)标准参考和工具(2021年)



据我所知,我们今天使用的浏览器插件的正确名称实际上是"Web扩展"。在每个浏览器都有自己的api之前,然后是Chrome和Firefox,现在是Safari (v14与macOS 11在2021年)见

  • https://developer.apple.com/documentation/safariservices/safari_web_extensions
  • https://sixcolors.com/post/2021/01/safari-14-added-webextensions-support-so-where-are-the-extensions/

然而,我找不到确切的标准参考和示例,可以在所有三个主要浏览器中工作。

也许我们可以深入挖掘许多相关的链接

  • https://en.wikipedia.org/wiki/Browser_extension
  • https://extensionworkshop.com/documentation/develop/porting-a-google-chrome-extension/
  • https://developer.chrome.com/docs/extensions/reference/

但是是否有工具/库可以跟踪兼容性并确保


请确认使用什么术语,指出规范和工具来加强兼容性。

截至2021年7月30日

Mozilla MDN有小提示浏览器API差异https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API#browser_api_differences
和兼容性摘要浏览器对JavaScript api的支持https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/Browser_support_for_JavaScript_APIs,
manifest.json浏览器兼容性https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json browser_compatibility

W3C webeextensions Community Group (WECG)的规范只是作为Pull Request的第一稿https://github.com/w3c/webextensions

最新更新