From c02719f258d02970f27b1d50b38ceef1e41d9675 Mon Sep 17 00:00:00 2001 From: zouhang <1102639563@qq.com> Date: Sat, 16 Nov 2024 00:28:01 +0800 Subject: [PATCH] chore: update logic --- public/rules/figma.json | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/public/rules/figma.json b/public/rules/figma.json index 06c8d31..be97ba9 100644 --- a/public/rules/figma.json +++ b/public/rules/figma.json @@ -1,17 +1,19 @@ [ { "id": 1, - "priority": 1, + "priority": 10, "action": { - "type": "redirect", - "redirect": { - "extensionPath": "/figma.js" - } + "type": "modifyHeaders", + "responseHeaders": [ + { + "header": "Content-Security-Policy", + "operation": "remove" + } + ] }, "condition": { - "regexFilter": "/\\d+-[0-9a-f]+\\.min\\.js\\.br$", "resourceTypes": [ - "script" + "main_frame" ] } }, @@ -19,17 +21,15 @@ "id": 2, "priority": 1, "action": { - "type": "modifyHeaders", - "responseHeaders": [ - { - "header": "Content-Security-Policy", - "operation": "remove" - } - ] + "type": "redirect", + "redirect": { + "extensionPath": "/figma.js" + } }, "condition": { + "regexFilter": "/\\d+-[0-9a-f]+\\.min\\.js\\.br$", "resourceTypes": [ - "main_frame" + "script" ] } }