Skip to content

Commit

Permalink
fix: adjust rule for t.bilibili.com page (BewlyBewly#653)
Browse files Browse the repository at this point in the history
  • Loading branch information
starknt committed Apr 24, 2024
1 parent 5f455ca commit 3ad5f73
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions assets/rules.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,30 @@
"resourceTypes": ["xmlhttprequest"],
"requestMethods": ["post"]
}
},
{
"id": 3,
"priority": 2,
"action": {
"type": "modifyHeaders",
"requestHeaders": [
{
"header": "origin",
"operation": "set",
"value": "https://t.bilibili.com"
},
{
"header": "referer",
"operation": "set",
"value": "https://t.bilibili.com"
}
]
},
"condition": {
"domainType": "thirdParty",
"urlFilter": "||api.bilibili.com",
"resourceTypes": ["xmlhttprequest"],
"initiatorDomains": ["t.bilibili.com"]
}
}
]

0 comments on commit 3ad5f73

Please sign in to comment.