aboutsummaryrefslogtreecommitdiff
path: root/browser/modifyResponseHeaders.json
diff options
context:
space:
mode:
authorVendicated <vendicated@riseup.net>2022-11-16 16:23:52 +0100
committerVendicated <vendicated@riseup.net>2022-11-16 16:23:52 +0100
commita788813383213ac1257d47f0e9f566dc72750bcb (patch)
treef763f98466400401389b73619a719841631d7cdd /browser/modifyResponseHeaders.json
parente1de6f88fe1db5276cee3df2ef4feeca7fcab850 (diff)
downloadVencord-a788813383213ac1257d47f0e9f566dc72750bcb.tar.gz
Vencord-a788813383213ac1257d47f0e9f566dc72750bcb.tar.bz2
Vencord-a788813383213ac1257d47f0e9f566dc72750bcb.zip
VencordWeb: Migrate to manifest v3
Diffstat (limited to 'browser/modifyResponseHeaders.json')
-rw-r--r--browser/modifyResponseHeaders.json38
1 files changed, 38 insertions, 0 deletions
diff --git a/browser/modifyResponseHeaders.json b/browser/modifyResponseHeaders.json
new file mode 100644
index 0000000..ed39075
--- /dev/null
+++ b/browser/modifyResponseHeaders.json
@@ -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/*"
+ }
+ }
+]