Last active
August 31, 2023 03:42
-
-
Save yuhangch/9abc4220af46a1f4a7fc97393e2f040e to your computer and use it in GitHub Desktop.
cn.bing redirect to www.bing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"request": [ | |
{ | |
"enable": true, | |
"name": "bing-cn-to-www", | |
"ruleType": "redirect", | |
"matchType": "prefix", | |
"pattern": "https://cn.bing.com", | |
"exclude": "", | |
"group": "bing-redirect", | |
"isFunction": false, | |
"action": "redirect", | |
"to": "https://www.bing.com" | |
} | |
], | |
"sendHeader": [ | |
{ | |
"enable": true, | |
"name": "bing", | |
"ruleType": "modifySendHeader", | |
"matchType": "regexp", | |
"pattern": "^http(s?)://www\\.bing\\.com/(.*)", | |
"exclude": "", | |
"group": "bing-direct", | |
"isFunction": false, | |
"action": { | |
"name": "x-forwarded-for", | |
"value": "8.8.8.8" | |
} | |
} | |
], | |
"receiveHeader": [], | |
"receiveBody": [] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Using regex in request redirect to make search bar work.
Not redirect when go to next page by add
(?!.*first=.*$)