forked from deezertidal/stash-override
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcfw-parser.yaml
182 lines (182 loc) · 6.06 KB
/
cfw-parser.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
parsers:
- reg: ^.*$
code: |
module.exports.parse = (raw, { yaml }) => {
const rawObj = yaml.parse(raw)
const groups = []
const rules = []
return yaml.stringify({ ...rawObj, 'proxy-groups': groups, rules })
}
yaml:
prepend-proxy-groups:
- name: 🚀SELECT
type: select
proxies:
- ♻️URL-TEST
- ⚖FALL-BACK
- DIRECT
- 🇭🇰香港
- 🇨🇳台湾
- 🇯🇵日本
- 🇸🇬新加坡
- 🇰🇷韩国
- 🇺🇸美国
- 📍其他
- name: ♻️URL-TEST
type: url-test
url: http://www.gstatic.com/generate_204
interval: 600
lazy: true
tolerance: 0
- name: ⚖FALL-BACK
type: fallback
url: http://www.gstatic.com/generate_204
interval: 600
- name: 📹YouTube
type: select
proxies:
- ♻️URL-TEST
- ⚖FALL-BACK
- 🚀SELECT
- DIRECT
- 🇭🇰香港
- 🇨🇳台湾
- 🇯🇵日本
- 🇸🇬新加坡
- 🇰🇷韩国
- 🇺🇸美国
- 📍其他
- name: 📽Netflix
type: select
proxies:
- ♻️URL-TEST
- ⚖FALL-BACK
- 🚀SELECT
- DIRECT
- 🇭🇰香港
- 🇨🇳台湾
- 🇯🇵日本
- 🇸🇬新加坡
- 🇰🇷韩国
- 🇺🇸美国
- 📍其他
- name: 🤖OpenAI
type: select
proxies:
- ♻️URL-TEST
- ⚖FALL-BACK
- 🚀SELECT
- DIRECT
- 🇭🇰香港
- 🇨🇳台湾
- 🇯🇵日本
- 🇸🇬新加坡
- 🇰🇷韩国
- 🇺🇸美国
- 📍其他
- name: 🔍Bing
type: select
proxies:
- ♻️URL-TEST
- ⚖FALL-BACK
- 🚀SELECT
- DIRECT
- 🇭🇰香港
- 🇨🇳台湾
- 🇯🇵日本
- 🇸🇬新加坡
- 🇰🇷韩国
- 🇺🇸美国
- 📍其他
- name: 🇭🇰香港
type: url-test
url: http://www.gstatic.com/generate_204
interval: 600
- name: 🇨🇳台湾
type: url-test
url: http://www.gstatic.com/generate_204
interval: 600
- name: 🇯🇵日本
type: url-test
url: http://www.gstatic.com/generate_204
interval: 600
- name: 🇸🇬新加坡
type: url-test
url: http://www.gstatic.com/generate_204
interval: 600
- name: 🇰🇷韩国
type: url-test
url: http://www.gstatic.com/generate_204
interval: 600
- name: 🇺🇸美国
type: url-test
url: http://www.gstatic.com/generate_204
interval: 600
- name: 📍其他
type: url-test
url: http://www.gstatic.com/generate_204
interval: 600
commands:
- mixed-port=7890
- proxy-groups.(♻️URL-TEST).proxies=[]proxyNames
- proxy-groups.(⚖FALL-BACK).proxies=[]proxyNames
- proxy-groups.🇭🇰香港.proxies=[]proxyNames|港|香港|🇭🇰|HK|Hong Kong
- proxy-groups.🇨🇳台湾.proxies=[]proxyNames|台|台湾|新北|彰化|TW|Taiwan
- proxy-groups.🇯🇵日本.proxies=[]proxyNames|日|日本|🇯🇵|川日|东京|大阪|泉日|埼玉|沪日|深日|[^-]日|JP|Japan
- proxy-groups.🇰🇷韩国.proxies=[]proxyNames|韩|韓|韩国|🇰🇷|KR|Korea|KOR|首尔
- proxy-groups.🇸🇬新加坡.proxies=[]proxyNames|新加坡|🇸🇬|坡|狮城|SG|Singapore
- proxy-groups.🇺🇸美国.proxies=[]proxyNames|美|美国|🇺🇸|波特兰|达拉斯|俄勒冈|凤凰城|费利蒙|硅谷|拉斯维加斯|洛杉矶|圣何塞|圣克拉拉|西雅图|芝加哥|US|United States
- proxy-groups.📍其他.proxies=[]proxyNames|^[^香日台新韩美]*$
- proxy-groups.🇭🇰香港.proxies.0+REJECT
- proxy-groups.🇨🇳台湾.proxies.0+REJECT
- proxy-groups.🇯🇵日本.proxies.0+REJECT
- proxy-groups.🇰🇷韩国.proxies.0+REJECT
- proxy-groups.🇸🇬新加坡.proxies.0+REJECT
- proxy-groups.🇺🇸美国.proxies.0+REJECT
- proxy-groups.📍其他.proxies.0+REJECT
prepend-rules:
- RULE-SET,antiad,REJECT
- RULE-SET,youtube,📹YouTube
- RULE-SET,netflix,📽Netflix
- RULE-SET,openai,🤖OpenAI
- RULE-SET,bing,🔍Bing
- RULE-SET,global,🚀SELECT
- GEOIP,CN,DIRECT
- MATCH,🚀SELECT
mix-rule-providers:
antiad:
type: http
behavior: classical
url: "https://cdn.jsdelivr.net/gh/deezertidal/private@main/rule/AntiAD.rule"
path: ./ruleset/AntiAD.rule
interval: 21600
global:
type: http
behavior: classical
url: "https://cdn.jsdelivr.net/gh/deezertidal/private@main/rule/Global.rule"
path: ./ruleset/Global.rule
interval: 21600
netflix:
type: http
behavior: classical
url: "https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@release/rule/Clash/Netflix/Netflix.yaml"
path: ./ruleset/netflix.yaml
interval: 21600
bing:
type: http
behavior: classical
url: "https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@release/rule/Clash/Bing/Bing.yaml"
path: ./ruleset/bing.yaml
interval: 21600
openai:
type: http
behavior: classical
url: "https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@release/rule/Clash/OpenAI/OpenAI.yaml"
path: ./ruleset/openai.yaml
interval: 21600
youtube:
type: http
behavior: classical
url: "https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@release/rule/Clash/YouTube/YouTube.yaml"
path: ./ruleset/youtube.yaml
interval: 21600