Skip to content

Instantly share code, notes, and snippets.

View Fndroid's full-sized avatar
🌴
On vacation

Fndroid Fndroid

🌴
On vacation
View GitHub Profile
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
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
@Fndroid
Fndroid / fake_dns.yml
Last active September 14, 2019 02:30
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
function FindProxyForURL(url, host) {
if (shExpMatch(host, "127.*")) {
return "DIRECT";
}
return "PROXY 127.0.0.1:7890; SOCKS5 127.0.0.1:7891; DIRECT";
}
{
"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",
{
"list": [
{
"enable": true,
"url": "https://gist.githubusercontent.com/Fndroid/58106962a852aa5c45bd1803b34b8651/raw/aa4649d63190a909a22e1c44fc23bfda382809dc/LAN.list",
"note": "LAN",
"policy": "DIRECT"
},
{
"enable": true,
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
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
// 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
@Fndroid
Fndroid / quanx.js
Last active November 22, 2019 09:41
if ($response.statusCode != 200) {
$done(Null);
}
// test
const body = $response.body;
const bodyJson = JSON.parse(body)