feat: implement browser extension for media publishing and add backend support for media management

This commit is contained in:
2026-04-03 00:39:15 +08:00
parent 8958cb44c0
commit 32d6a462cd
60 changed files with 8268 additions and 26 deletions
+48
View File
@@ -0,0 +1,48 @@
[
{
"id": 4,
"priority": 1,
"action": {
"type": "modifyHeaders",
"requestHeaders": [
{
"header": "Referer",
"operation": "set",
"value": "https://zhuanlan.zhihu.com"
},
{
"header": "origin",
"operation": "set",
"value": "https://zhuanlan.zhihu.com"
}
]
},
"condition": {
"urlFilter": "https://zhuanlan.zhihu.com/*",
"resourceTypes": ["xmlhttprequest"]
}
},
{
"id": 5,
"priority": 1,
"action": {
"type": "modifyHeaders",
"requestHeaders": [
{
"header": "Referer",
"operation": "set",
"value": "https://zhuanlan.zhihu.com"
},
{
"header": "origin",
"operation": "set",
"value": "https://zhuanlan.zhihu.com"
}
]
},
"condition": {
"urlFilter": "*://*.zhimg.com/*",
"resourceTypes": ["xmlhttprequest"]
}
}
]