Skip to content

Instantly share code, notes, and snippets.

@yfdyh000
Created August 28, 2018 03:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yfdyh000/0a6cf2e3a49163560abfaec328e16e3e to your computer and use it in GitHub Desktop.
Save yfdyh000/0a6cf2e3a49163560abfaec328e16e3e to your computer and use it in GitHub Desktop.
{
"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