|
@@ -1,21 +1,20 @@
|
|
|
{
|
|
{
|
|
|
- "manifest_version": 2,
|
|
|
|
|
|
|
+ "manifest_version": 3,
|
|
|
"name": "脚本助手",
|
|
"name": "脚本助手",
|
|
|
- "version": "1.2.4",
|
|
|
|
|
|
|
+ "version": "2.0.0",
|
|
|
"description": "脚本助手",
|
|
"description": "脚本助手",
|
|
|
"icons": {
|
|
"icons": {
|
|
|
- "16": "./img/16.png",
|
|
|
|
|
- "48": "./img/48.png",
|
|
|
|
|
- "128": "./img/128.png"
|
|
|
|
|
|
|
+ "16": "img/16.png",
|
|
|
|
|
+ "48": "img/48.png",
|
|
|
|
|
+ "128": "img/128.png"
|
|
|
},
|
|
},
|
|
|
- "browser_action": {
|
|
|
|
|
|
|
+ "action": {
|
|
|
"default_icon": "img/48.png",
|
|
"default_icon": "img/48.png",
|
|
|
"default_title": "脚本助手",
|
|
"default_title": "脚本助手",
|
|
|
"default_popup": "popup.html"
|
|
"default_popup": "popup.html"
|
|
|
},
|
|
},
|
|
|
"background": {
|
|
"background": {
|
|
|
- "persistent": true,
|
|
|
|
|
- "scripts": ["background.js"]
|
|
|
|
|
|
|
+ "service_worker": "background.js"
|
|
|
},
|
|
},
|
|
|
"content_scripts": [
|
|
"content_scripts": [
|
|
|
{
|
|
{
|
|
@@ -26,21 +25,26 @@
|
|
|
}
|
|
}
|
|
|
],
|
|
],
|
|
|
"permissions": [
|
|
"permissions": [
|
|
|
|
|
+ "scripting",
|
|
|
"storage",
|
|
"storage",
|
|
|
"activeTab",
|
|
"activeTab",
|
|
|
"webRequest",
|
|
"webRequest",
|
|
|
- "webRequestBlocking",
|
|
|
|
|
- "notifications",
|
|
|
|
|
|
|
+ "notifications"
|
|
|
|
|
+ ],
|
|
|
|
|
+ "host_permissions": [
|
|
|
"http://*/*",
|
|
"http://*/*",
|
|
|
- "https://*/*"
|
|
|
|
|
|
|
+ "https://*/*"
|
|
|
],
|
|
],
|
|
|
"externally_connectable": {
|
|
"externally_connectable": {
|
|
|
- "matches": []
|
|
|
|
|
|
|
+ "matches": [
|
|
|
|
|
+ "https://demos.run/*",
|
|
|
|
|
+ "https://cunchu.site/*"
|
|
|
|
|
+ ]
|
|
|
},
|
|
},
|
|
|
"homepage_url": "https://github.com/PUGE",
|
|
"homepage_url": "https://github.com/PUGE",
|
|
|
"options_page": "options.html",
|
|
"options_page": "options.html",
|
|
|
"options_ui": {
|
|
"options_ui": {
|
|
|
"page": "options.html",
|
|
"page": "options.html",
|
|
|
- "chrome_style": true
|
|
|
|
|
|
|
+ "open_in_tab": true
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|