Skip to content

Commit

Permalink
chore: update logic
Browse files Browse the repository at this point in the history
  • Loading branch information
zouhangwithsweet committed Nov 15, 2024
1 parent 1a18dbb commit 151ba66
Showing 1 changed file with 31 additions and 3 deletions.
34 changes: 31 additions & 3 deletions public/rules/figma.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,35 @@
{
"id": 1,
"priority": 1,
"action": { "type": "redirect", "redirect": { "extensionPath": "/figma.js" } },
"condition": { "regexFilter": "/\\d+-[0-9a-f]+\\.min\\.js\\.br$", "resourceTypes": ["script"] }
"action": {
"type": "redirect",
"redirect": {
"extensionPath": "/figma.js"
}
},
"condition": {
"regexFilter": "/\\d+-[0-9a-f]+\\.min\\.js\\.br$",
"resourceTypes": [
"script"
]
}
},
{
"id": 2,
"priority": 1,
"action": {
"type": "modifyHeaders",
"responseHeaders": [
{
"header": "Content-Security-Policy",
"operation": "remove"
}
]
},
"condition": {
"resourceTypes": [
"main_frame"
]
}
}
]
]

0 comments on commit 151ba66

Please sign in to comment.