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
DOMAIN-SUFFIX,local | |
IP-CIDR,192.168.0.0/16 | |
IP-CIDR,10.0.0.0/8 | |
IP-CIDR,172.16.0.0/12 | |
IP-CIDR,127.0.0.0/8 | |
IP-CIDR,100.64.0.0/10 |
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
port: 7890 | |
socks-port: 7891 | |
redir-port: 7892 | |
allow-lan: false | |
mode: Rule | |
log-level: info | |
external-controller: '127.0.0.1:9090' | |
secret: '' | |
Proxy: | |
- name: Shadowsocks |
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
Rule: | |
- DOMAIN-SUFFIX,lbyczf.com,DIRECT | |
dns: | |
enable: true | |
listen: 127.0.0.1:53 | |
enhanced-mode: fake-ip | |
nameserver: | |
- 192.168.50.1 | |
- 223.5.5.5 | |
- 114.114.114.114 |
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
function FindProxyForURL(url, host) { | |
if (shExpMatch(host, "127.*")) { | |
return "DIRECT"; | |
} | |
return "PROXY 127.0.0.1:7890; SOCKS5 127.0.0.1:7891; DIRECT"; | |
} |
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
{ | |
"createdBy": "Redirector v3.2", | |
"createdAt": "2019-05-23T08:36:00.194Z", | |
"redirects": [ | |
{ | |
"description": "clash_dev", | |
"exampleUrl": "https://github.com/Dreamacro/clash", | |
"exampleResult": "https://github.com/Dreamacro/clash/tree/dev", | |
"error": null, | |
"includePattern": "https://github.com/Dreamacro/clash", |
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
{ | |
"list": [ | |
{ | |
"enable": true, | |
"url": "https://gist.githubusercontent.com/Fndroid/58106962a852aa5c45bd1803b34b8651/raw/aa4649d63190a909a22e1c44fc23bfda382809dc/LAN.list", | |
"note": "LAN", | |
"policy": "DIRECT" | |
}, | |
{ | |
"enable": true, |
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
hostname=api.zhihu.com | |
https://api.zhihu.com/(topstory/follow|moments) url script-response-body https://raw.githubusercontent.com/onewayticket255/Surge-Script/master/surge%20zhihu%20feed.js | |
https://api.zhihu.com/topstory/recommend url script-response-body https://raw.githubusercontent.com/onewayticket255/Surge-Script/master/surge%20zhihu%20recommend.js | |
https://api.zhihu.com/v4/questions url script-response-body https://raw.githubusercontent.com/onewayticket255/Surge-Script/master/surge%20zhihu%20answer.js | |
https://api.zhihu.com/market/header url script-response-body https://raw.githubusercontent.com/onewayticket255/Surge-Script/master/surge%20zhihu%20market.js |
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
hostname=api.zhihu.com | |
https://api.zhihu.com/(topstory/follow|moments) url script-response-body https://raw.githubusercontent.com/onewayticket255/Surge-Script/master/surge%20zhihu%20feed.js | |
https://api.zhihu.com/topstory/recommend url script-response-body https://raw.githubusercontent.com/onewayticket255/Surge-Script/master/surge%20zhihu%20recommend.js | |
https://api.zhihu.com/v4/questions url script-response-body https://raw.githubusercontent.com/onewayticket255/Surge-Script/master/surge%20zhihu%20answer.js | |
https://api.zhihu.com/market/header url script-response-body https://raw.githubusercontent.com/onewayticket255/Surge-Script/master/surge%20zhihu%20market.js |
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
// var body = $response.body; | |
// console.log(body.slice(0, 20)) | |
let body = JSON.stringify({}) | |
// var obj = JSON.parse(body); | |
// obj['data'] = obj['data'].filter(c => c['type'] === 'common_card') | |
// body = JSON.stringify(obj); | |
11122 |
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
if ($response.statusCode != 200) { | |
$done(Null); | |
} | |
// test | |
const body = $response.body; | |
const bodyJson = JSON.parse(body) |
OlderNewer