google-chrome-extension - 如何将 Chrome 扩展移植到 Firefox 插件?
问题描述
我在 Firefox 中收到此错误:
There was an error during the temporary add-on installation.
Error details ▼
File red_apples.zip does not contain a valid manifest
这是我要移植的扩展。这是清单:
{
"manifest_version": 2,
"name": "Red Apples",
"permissions": [
"tabs", "activeTab"
],
"background": {
"persistent": false,
"scripts": [
"background.js"
]
},
"version": "0.0.0.2",
"icons": {
"16": "icon16.png",
"48": "icon48.png",
"128": "icon128.png"
},
"browser_action": {
"default_icon": "icon16.png",
"default_title": "Red Apples",
"default_popup": "popup.html"
},
"content_scripts": [
{
"matches": [
"<all_urls>"
],
"js": [
"script.js"
]
}
]
}
在本教程的底部,它说如果通过这里的测试,它有 99% 的机会无需修改即可工作。但它通过了测试,仍然无法正常工作。
对于带有 Chrome 的版本和刚刚压缩为.zip
.
解决方案
推荐阅读
- javascript - 删除ajax响应中的引号
- python - 使用 Python 提取数据包头
- chart.js - Chart.js 框注解填充整个图表
- amazon-web-services - 从 Secrets Manager 中检索 Firehose Redshift 目标用户名/密码
- c# - 如何允许从动态生成的表中下载 asp.net 中的文件
- azure - 如何使用应用程序标识符添加 Azure AD 应用程序
- html - 在 HTML 中对齐文本框
- python - Python 可以对 R 进行函数调用吗?
- r - 将 SeatGeek API 数据(JSON 格式)导入平面数据框的最简单方法是什么?
- javascript - 如何在不更改 html 字体大小的情况下使文本框变大?