This update introduces full Firefox support using a new manifest-firefox.json (Manifest V2), adds a webext-compat.js compatibility layer for unified API usage, and refactors all extension scripts (background.js, content.js, popup.js) to use the new webext API. The build and development process is automated with new Python scripts (build.py, dev.py), and GitHub Actions workflows are updated to support multi-platform build, test, and release. Platform detection and capability abstraction are added, and all relevant files and manifests are updated for cross-browser compatibility.
93 lines
2.7 KiB
JSON
93 lines
2.7 KiB
JSON
{
|
|
"action": {
|
|
"default_icon": {
|
|
"16": "icons/icon16.png",
|
|
"32": "icons/icon32.png",
|
|
"48": "icons/icon48.png",
|
|
"128": "icons/icon128.png"
|
|
},
|
|
"default_popup": "popup.html",
|
|
"default_title": "Xget Now"
|
|
},
|
|
"background": {
|
|
"service_worker": "background.js"
|
|
},
|
|
"content_scripts": [
|
|
{
|
|
"js": ["webext-compat.js", "content.js"],
|
|
"matches": [
|
|
"https://github.com/*",
|
|
"https://gitlab.com/*",
|
|
"https://gitea.com/*",
|
|
"https://codeberg.org/*",
|
|
"https://sourceforge.net/*",
|
|
"https://android.googlesource.com/*",
|
|
"https://huggingface.co/*",
|
|
"https://registry.npmjs.org/*",
|
|
"https://pypi.org/*",
|
|
"https://files.pythonhosted.org/*",
|
|
"https://repo.anaconda.com/*",
|
|
"https://conda.anaconda.org/*",
|
|
"https://repo1.maven.org/*",
|
|
"https://downloads.apache.org/*",
|
|
"https://plugins.gradle.org/*",
|
|
"https://rubygems.org/*",
|
|
"https://cran.r-project.org/*",
|
|
"https://www.cpan.org/*",
|
|
"https://tug.ctan.org/*",
|
|
"https://proxy.golang.org/*",
|
|
"https://api.nuget.org/*",
|
|
"https://crates.io/*",
|
|
"https://repo.packagist.org/*",
|
|
"https://arxiv.org/*",
|
|
"https://f-droid.org/*"
|
|
],
|
|
"run_at": "document_end"
|
|
}
|
|
],
|
|
"description": "为 Chromium 浏览器提供的 Xget 下载加速扩展,支持 GitHub、GitLab、npm、PyPI 等众多平台的文件下载加速",
|
|
"host_permissions": [
|
|
"https://github.com/*",
|
|
"https://gitlab.com/*",
|
|
"https://gitea.com/*",
|
|
"https://codeberg.org/*",
|
|
"https://sourceforge.net/*",
|
|
"https://android.googlesource.com/*",
|
|
"https://huggingface.co/*",
|
|
"https://registry.npmjs.org/*",
|
|
"https://pypi.org/*",
|
|
"https://files.pythonhosted.org/*",
|
|
"https://repo.anaconda.com/*",
|
|
"https://conda.anaconda.org/*",
|
|
"https://repo1.maven.org/*",
|
|
"https://downloads.apache.org/*",
|
|
"https://plugins.gradle.org/*",
|
|
"https://rubygems.org/*",
|
|
"https://cran.r-project.org/*",
|
|
"https://www.cpan.org/*",
|
|
"https://tug.ctan.org/*",
|
|
"https://proxy.golang.org/*",
|
|
"https://api.nuget.org/*",
|
|
"https://crates.io/*",
|
|
"https://repo.packagist.org/*",
|
|
"https://arxiv.org/*",
|
|
"https://f-droid.org/*"
|
|
],
|
|
"icons": {
|
|
"16": "icons/icon16.png",
|
|
"32": "icons/icon32.png",
|
|
"48": "icons/icon48.png",
|
|
"128": "icons/icon128.png"
|
|
},
|
|
"manifest_version": 3,
|
|
"name": "Xget Now",
|
|
"permissions": ["downloads", "storage", "activeTab"],
|
|
"version": "2.0.0",
|
|
"web_accessible_resources": [
|
|
{
|
|
"matches": ["<all_urls>"],
|
|
"resources": ["icons/*"]
|
|
}
|
|
]
|
|
}
|