VencordWeb: Migrate to manifest v3
This commit is contained in:
parent
e1de6f88fe
commit
a788813383
4 changed files with 66 additions and 44 deletions
38
browser/modifyResponseHeaders.json
Normal file
38
browser/modifyResponseHeaders.json
Normal file
|
@ -0,0 +1,38 @@
|
|||
[
|
||||
{
|
||||
"id": 1,
|
||||
"action": {
|
||||
"type": "modifyHeaders",
|
||||
"responseHeaders": [
|
||||
{
|
||||
"header": "content-security-policy",
|
||||
"operation": "remove"
|
||||
},
|
||||
{
|
||||
"header": "content-security-policy-report-only",
|
||||
"operation": "remove"
|
||||
}
|
||||
]
|
||||
},
|
||||
"condition": {
|
||||
"resourceTypes": ["main_frame"]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"action": {
|
||||
"type": "modifyHeaders",
|
||||
"responseHeaders": [
|
||||
{
|
||||
"header": "content-type",
|
||||
"operation": "set",
|
||||
"value": "text/css"
|
||||
}
|
||||
]
|
||||
},
|
||||
"condition": {
|
||||
"resourceTypes": ["stylesheet"],
|
||||
"urlFilter": "https://raw.githubusercontent.com/*"
|
||||
}
|
||||
}
|
||||
]
|
Loading…
Add table
Add a link
Reference in a new issue