diff --git a/public/rules.json b/public/rules.json index 56139503..8a920818 100644 --- a/public/rules.json +++ b/public/rules.json @@ -1,35 +1,72 @@ [ - { - "id": 1, - "priority": 1, - "action": { - "type": "modifyHeaders", - "requestHeaders": [ - { "header": "referer", "operation": "set", "value": "https://www.bilibili.com/" } - ] - }, - "condition": { "urlFilter" : "bilivideo" } - }, - { - "id": 2, - "priority": 1, - "action": { - "type": "modifyHeaders", - "requestHeaders": [ - { "header": "referer", "operation": "set", "value": "https://y.qq.com/" } - ] + { + "id": 1, + "priority": 1, + "action": { + "type": "modifyHeaders", + "requestHeaders": [ + { + "header": "referer", + "operation": "set", + "value": "https://www.bilibili.com/" }, - "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": "bilivideo" } + }, + { + "id": 2, + "priority": 1, + "action": { + "type": "modifyHeaders", + "requestHeaders": [ + { + "header": "referer", + "operation": "set", + "value": "https://y.qq.com/" + } + ] + }, + "condition": { "urlFilter": "y.qq.com" } + }, + { + "id": 3, + "priority": 1, + "action": { + "type": "modifyHeaders", + "requestHeaders": [ + { + "header": "referer", + "operation": "set", + "value": "https://www.bilibili.com/" + } + ] + }, + "condition": { "urlFilter": "akamaized" } + }, + { + "id": 4, + "priority": 1, + "action": { + "type": "modifyHeaders", + "requestHeaders": [ + { + "header": "referer", + "operation": "set", + "value": "https://www.bilibili.com/" }, - "condition": { "urlFilter" : "akamaized" } - } - ] \ No newline at end of file + { + "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" } + } +]