火狐安装 xpi 必须有 browser_specific_settings.gecko.id,缺失时 AMO/临时加载 都直接拒绝并把原因笼统地报成「the add-on is corrupt / 插件损坏」。 用户实测装不上,zip 本身 CRC 完好、文件齐全,根因就是这一项缺失。 顺手把 strict_min_version 定到 102(contentScripts.register 需要的最低线)。
43 lines
909 B
JSON
43 lines
909 B
JSON
{
|
|
"manifest_version": 2,
|
|
"name": "JianF Nav Sync",
|
|
"version": "1.1.1",
|
|
"description": "同步浏览历史到自建导航门户,按访问频次自动排序显示常用服务",
|
|
"browser_specific_settings": {
|
|
"gecko": {
|
|
"id": "nav-sync@jianf.local",
|
|
"strict_min_version": "102.0"
|
|
}
|
|
},
|
|
"permissions": [
|
|
"history",
|
|
"storage",
|
|
"alarms",
|
|
"<all_urls>"
|
|
],
|
|
"background": {
|
|
"scripts": [
|
|
"background.js"
|
|
],
|
|
"persistent": true
|
|
},
|
|
"browser_action": {
|
|
"default_title": "JianF Nav Sync 设置",
|
|
"default_popup": "options.html",
|
|
"default_icon": {
|
|
"16": "icons/icon16.png",
|
|
"48": "icons/icon48.png"
|
|
}
|
|
},
|
|
"options_ui": {
|
|
"page": "options.html",
|
|
"open_in_tab": true
|
|
},
|
|
"icons": {
|
|
"16": "icons/icon16.png",
|
|
"48": "icons/icon48.png",
|
|
"96": "icons/icon96.png",
|
|
"128": "icons/icon128.png"
|
|
}
|
|
}
|