Created
August 28, 2018 03:11
-
-
Save yfdyh000/0a6cf2e3a49163560abfaec328e16e3e to your computer and use it in GitHub Desktop.
rules with https://github.com/FirefoxBar/HeaderEditor
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": 0, | |
"name": "zhwp with enwp 1", | |
"ruleType": "redirect", | |
"matchType": "regexp", | |
"pattern": "(https?:\\/\\/)zh(\\.m)?(\\.wikipedia\\.org)", | |
"exclude": "", | |
"isFunction": false, | |
"action": "redirect", | |
"to": "$1zh-en$2$3", | |
"id": 15 | |
} | |
], | |
"sendHeader": [ | |
{ | |
"enable": 0, | |
"name": "zhwp with enwp 2", | |
"ruleType": "modifySendHeader", | |
"matchType": "domain", | |
"pattern": "zh-en.wikipedia.org", | |
"exclude": "", | |
"isFunction": false, | |
"action": { | |
"name": "Host", | |
"value": "zh.wikipedia.org" | |
}, | |
"id": 42, | |
"code": "console.dir(val)" | |
}, | |
{ | |
"enable": 0, | |
"name": "zhwp with enwp 2-m", | |
"ruleType": "modifySendHeader", | |
"matchType": "domain", | |
"pattern": "zh-en.m.wikipedia.org", | |
"exclude": "", | |
"isFunction": false, | |
"action": { | |
"name": "Host", | |
"value": "zh.m.wikipedia.org" | |
}, | |
"id": 43 | |
} | |
], | |
"receiveHeader": [] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment