Skip to content

Commit 9a97f15

Browse files
committed
2 parents 648db32 + cc5c2ae commit 9a97f15

File tree

1 file changed

+69
-32
lines changed

1 file changed

+69
-32
lines changed

public/rules.json

Lines changed: 69 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,72 @@
11
[
2-
{
3-
"id": 1,
4-
"priority": 1,
5-
"action": {
6-
"type": "modifyHeaders",
7-
"requestHeaders": [
8-
{ "header": "referer", "operation": "set", "value": "https://www.bilibili.com/" }
9-
]
10-
},
11-
"condition": { "urlFilter" : "bilivideo" }
12-
},
13-
{
14-
"id": 2,
15-
"priority": 1,
16-
"action": {
17-
"type": "modifyHeaders",
18-
"requestHeaders": [
19-
{ "header": "referer", "operation": "set", "value": "https://y.qq.com/" }
20-
]
2+
{
3+
"id": 1,
4+
"priority": 1,
5+
"action": {
6+
"type": "modifyHeaders",
7+
"requestHeaders": [
8+
{
9+
"header": "referer",
10+
"operation": "set",
11+
"value": "https://www.bilibili.com/"
2112
},
22-
"condition": { "urlFilter" : "y.qq.com" }
23-
},
24-
{
25-
"id": 3,
26-
"priority": 1,
27-
"action": {
28-
"type": "modifyHeaders",
29-
"requestHeaders": [
30-
{ "header": "referer", "operation": "set", "value": "https://www.bilibili.com/" }
31-
]
13+
{
14+
"header": "User-Agent",
15+
"operation": "set",
16+
"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"
17+
}
18+
]
19+
},
20+
"condition": { "urlFilter": "bilivideo" }
21+
},
22+
{
23+
"id": 2,
24+
"priority": 1,
25+
"action": {
26+
"type": "modifyHeaders",
27+
"requestHeaders": [
28+
{
29+
"header": "referer",
30+
"operation": "set",
31+
"value": "https://y.qq.com/"
32+
}
33+
]
34+
},
35+
"condition": { "urlFilter": "y.qq.com" }
36+
},
37+
{
38+
"id": 3,
39+
"priority": 1,
40+
"action": {
41+
"type": "modifyHeaders",
42+
"requestHeaders": [
43+
{
44+
"header": "referer",
45+
"operation": "set",
46+
"value": "https://www.bilibili.com/"
47+
}
48+
]
49+
},
50+
"condition": { "urlFilter": "akamaized" }
51+
},
52+
{
53+
"id": 4,
54+
"priority": 1,
55+
"action": {
56+
"type": "modifyHeaders",
57+
"requestHeaders": [
58+
{
59+
"header": "referer",
60+
"operation": "set",
61+
"value": "https://www.bilibili.com/"
3262
},
33-
"condition": { "urlFilter" : "akamaized" }
34-
}
35-
]
63+
{
64+
"header": "User-Agent",
65+
"operation": "set",
66+
"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"
67+
}
68+
]
69+
},
70+
"condition": { "urlFilter": "akamaized.net" }
71+
}
72+
]

0 commit comments

Comments
 (0)