From d56ff757ead70e7443da18662ad5bcd2a3bf3d0f Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Sun, 10 Aug 2025 05:52:24 +0000 Subject: [PATCH] =?UTF-8?q?chore:=20=E6=9B=B4=E6=96=B0=E7=89=88=E6=9C=AC?= =?UTF-8?q?=E5=88=B0=202.0.0=20[skip=20ci]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- manifest-firefox.json | 24 ++++++++++++------------ manifest.json | 21 ++++++++++++++++----- 2 files changed, 28 insertions(+), 17 deletions(-) diff --git a/manifest-firefox.json b/manifest-firefox.json index eceffc1..48e2e80 100644 --- a/manifest-firefox.json +++ b/manifest-firefox.json @@ -3,14 +3,12 @@ "name": "Xget Now", "version": "2.0.0", "description": "为 Firefox 浏览器提供的 Xget 下载加速扩展,支持 GitHub、GitLab、npm、PyPI 等众多平台的文件下载加速", - "applications": { "gecko": { "id": "xget-now@xixu.me", "strict_min_version": "109.0" } }, - "browser_action": { "default_icon": { "16": "icons/icon16.png", @@ -21,15 +19,19 @@ "default_popup": "popup.html", "default_title": "Xget Now" }, - "background": { - "scripts": ["webext-compat.js", "background.js"], + "scripts": [ + "webext-compat.js", + "background.js" + ], "persistent": false }, - "content_scripts": [ { - "js": ["webext-compat.js", "content.js"], + "js": [ + "webext-compat.js", + "content.js" + ], "matches": [ "https://github.com/*", "https://gitlab.com/*", @@ -60,7 +62,6 @@ "run_at": "document_end" } ], - "permissions": [ "downloads", "storage", @@ -91,20 +92,19 @@ "https://arxiv.org/*", "https://f-droid.org/*" ], - "icons": { "16": "icons/icon16.png", "32": "icons/icon32.png", "48": "icons/icon48.png", "128": "icons/icon128.png" }, - - "web_accessible_resources": ["icons/*"], - + "web_accessible_resources": [ + "icons/*" + ], "browser_specific_settings": { "gecko": { "id": "xget-now@xixu.me", "strict_min_version": "109.0" } } -} +} \ No newline at end of file diff --git a/manifest.json b/manifest.json index ed09a6b..0ebf9f8 100644 --- a/manifest.json +++ b/manifest.json @@ -14,7 +14,10 @@ }, "content_scripts": [ { - "js": ["webext-compat.js", "content.js"], + "js": [ + "webext-compat.js", + "content.js" + ], "matches": [ "https://github.com/*", "https://gitlab.com/*", @@ -81,12 +84,20 @@ }, "manifest_version": 3, "name": "Xget Now", - "permissions": ["downloads", "storage", "activeTab"], + "permissions": [ + "downloads", + "storage", + "activeTab" + ], "version": "2.0.0", "web_accessible_resources": [ { - "matches": [""], - "resources": ["icons/*"] + "matches": [ + "" + ], + "resources": [ + "icons/*" + ] } ] -} +} \ No newline at end of file