From a788813383213ac1257d47f0e9f566dc72750bcb Mon Sep 17 00:00:00 2001 From: Vendicated Date: Wed, 16 Nov 2022 16:23:52 +0100 Subject: VencordWeb: Migrate to manifest v3 --- browser/modifyResponseHeaders.json | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 browser/modifyResponseHeaders.json (limited to 'browser/modifyResponseHeaders.json') 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/*" + } + } +] -- cgit