This commit is contained in:
xixu-me committed 2025-07-12 18:19:30 +08:00
commit a4c5a681d5
2 files changed
+22 -12

No files matched your search

+20 -10
View File
@@ -1,10 +1,10 @@
{ {
"action": { "action": {
"default_icon": { "default_icon": {
"128": "icons/icon128.png",
"16": "icons/icon16.png", "16": "icons/icon16.png",
"32": "icons/icon32.png", "32": "icons/icon32.png",
"48": "icons/icon48.png" "48": "icons/icon48.png",
"128": "icons/icon128.png"
}, },
"default_popup": "popup.html", "default_popup": "popup.html",
"default_title": "Xget for Chrome" "default_title": "Xget for Chrome"
@@ -14,7 +14,9 @@
}, },
"content_scripts": [ "content_scripts": [
{ {
"js": ["content.js"], "js": [
"content.js"
],
"matches": [ "matches": [
"https://github.com/*", "https://github.com/*",
"https://gitlab.com/*", "https://gitlab.com/*",
@@ -30,19 +32,27 @@
"https://huggingface.co/*" "https://huggingface.co/*"
], ],
"icons": { "icons": {
"128": "icons/icon128.png",
"16": "icons/icon16.png", "16": "icons/icon16.png",
"32": "icons/icon32.png", "32": "icons/icon32.png",
"48": "icons/icon48.png" "48": "icons/icon48.png",
"128": "icons/icon128.png"
}, },
"manifest_version": 3, "manifest_version": 3,
"name": "Xget for Chrome", "name": "Xget for Chrome",
"permissions": ["downloads", "storage", "activeTab"], "permissions": [
"version": "1.1.0", "downloads",
"storage",
"activeTab"
],
"version": "1.2.0",
"web_accessible_resources": [ "web_accessible_resources": [
{ {
"matches": ["<all_urls>"], "matches": [
"resources": ["icons/*"] "<all_urls>"
],
"resources": [
"icons/*"
]
} }
] ]
} }
+2 -2
View File
@@ -35,5 +35,5 @@
"test": "在 Chrome 开发者模式下加载扩展进行测试", "test": "在 Chrome 开发者模式下加载扩展进行测试",
"validate": "node -e \"JSON.parse(require('fs').readFileSync('manifest.json', 'utf8')); console.log('✅ manifest.json 格式有效')\"" "validate": "node -e \"JSON.parse(require('fs').readFileSync('manifest.json', 'utf8')); console.log('✅ manifest.json 格式有效')\""
}, },
"version": "1.1.0" "version": "1.2.0"
} }