Instantly share code, notes, and snippets.

Embed
What would you like to do?
{
"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