msr-mod/public/manifest.json
Astrian Zheng a6ab9aacb5
feat: 添加 API 模块并更新项目配置
- 新增 `src/apis/index.ts` 文件,用于管理与塞壬唱片官网 API 的交互
- 在 `Home.vue` 中添加 API 调用逻辑,获取并打印专辑数据
- 更新 `vite.config.ts`,添加路径别名配置
- 在 `package.json` 中添加 `@types/node` 依赖
- 调整 `Playing.vue` 和 `App.vue` 的布局样式
- 更新 `manifest.json` 中的安全策略,允许连接到 API
2025-05-24 10:52:32 +10:00

28 lines
786 B
JSON

{
"manifest_version": 3,
"name": "MSR Mod",
"version": "0.0.1",
"description": "A Vue-based browser extension.",
"content_scripts": [
{
"matches": ["https://monster-siren.hypergryph.com/"],
"js": ["content.js"],
"run_at": "document_end"
}
],
"host_permissions": ["https://monster-siren.hypergryph.com/*", "http://localhost:5173/*"],
"icons": {
"16": "vite.svg",
"48": "vite.svg",
"128": "vite.svg"
},
"background": {
"service_worker": "background.js"
},
"permissions": ["tabs", "webRequest"],
"content_security_policy": {
"extension_pages": "default-src 'self'; script-src 'self' http://localhost:5173; style-src 'self' 'unsafe-inline'; connect-src 'self' ws://localhost:5173 https://monster-siren.hypergryph.com;",
"sandbox": "sandbox"
}
}