5df5fab875
- manifest.json 升级到 MV3:Service Worker + action,权限改用 declarativeNetRequest - background.js 重写为 Service Worker,用 DNR 动态/session 规则修改请求/响应头, 支持 URL 正则、资源类型过滤、Tab 锁、暂停;badge/右键菜单改用 chrome.action/onClicked - main.js 存储层从 localStorage 迁移到 chrome.storage.local(Proxy 同步适配 + 手动 bootstrap),并对旧 MV2 数据做一次性自动迁移;改动即时持久化 - popup.html 去掉 404 的 associate.js 与自动 ng-app;移除侧边栏无用入口 - 清理死代码与冗余资源:openCloudBackup、cloudbackupdialog 模板、推广 tips、 _DS_Store、8 个未引用图标 - README 用中文重写,说明项目来源、MV3 改造与使用方法
30 lines
580 B
JSON
30 lines
580 B
JSON
{
|
|
"name": "ModHeader",
|
|
"version": "3.0.0",
|
|
"manifest_version": 3,
|
|
"description": "Modify request and response headers",
|
|
"background": {
|
|
"service_worker": "background.js"
|
|
},
|
|
"action": {
|
|
"default_icon": "icon.png",
|
|
"default_title": "Modify Headers",
|
|
"default_popup": "popup.html"
|
|
},
|
|
"icons": {
|
|
"16": "icon_16.png",
|
|
"48": "icon_48.png",
|
|
"128": "icon_128.png"
|
|
},
|
|
"incognito": "spanning",
|
|
"permissions": [
|
|
"contextMenus",
|
|
"storage",
|
|
"tabs",
|
|
"declarativeNetRequest"
|
|
],
|
|
"host_permissions": [
|
|
"<all_urls>"
|
|
]
|
|
}
|