Skip to content

Commit

Permalink
Merge pull request #42 from komiblog/fix/audio-errer-referer
Browse files Browse the repository at this point in the history
Update rules.json
  • Loading branch information
kenmingwang authored Dec 16, 2023
2 parents 1fdf5cf + d163a5e commit cc5c2ae
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions public/rules.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"action": {
"type": "modifyHeaders",
"requestHeaders": [
{ "header": "referer", "operation": "set", "value": "https://www.bilibili.com/" }
{ "header": "referer", "operation": "set", "value": "https://www.bilibili.com/" },
{ "header": "User-Agent", "operation": "set", "value": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36 Edg/111.0.1661.62" }
]
},
"condition": { "urlFilter" : "bilivideo" }
Expand All @@ -20,5 +21,17 @@
]
},
"condition": { "urlFilter" : "y.qq.com" }
}
]
},
{
"id": 3,
"priority": 1,
"action": {
"type": "modifyHeaders",
"requestHeaders": [
{ "header": "referer", "operation": "set", "value": "https://www.bilibili.com/" },
{ "header": "User-Agent", "operation": "set", "value": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36 Edg/111.0.1661.62" }
]
},
"condition": { "urlFilter" : "akamaized.net" }
}
]

0 comments on commit cc5c2ae

Please sign in to comment.