Skip to content

Commit 7b93d2e

Browse files
committed
feat: 移除microsoft_cn
1 parent a699642 commit 7b93d2e

5 files changed

Lines changed: 16 additions & 40 deletions

File tree

Config/mihomoConfig.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -192,11 +192,6 @@ rule-providers:
192192
format: mrs
193193
url: 'https://fastly.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@meta/geo/geosite/microsoft.mrs'
194194
path: './ruleset/microsoft.mrs'
195-
microsoft_cn:
196-
<<: *rp_domain
197-
format: mrs
198-
url: 'https://fastly.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@meta/geo/geosite/microsoft@cn.mrs'
199-
path: './ruleset/microsoft@cn.mrs'
200195
telegram:
201196
<<: *rp_domain
202197
format: mrs
@@ -598,7 +593,6 @@ rules:
598593
- RULE-SET,games_cn,直连
599594
- RULE-SET,epicgames,直连
600595
- RULE-SET,nvidia_cn,直连
601-
- RULE-SET,microsoft_cn,直连
602596
- RULE-SET,cloudflare_cn,直连
603597
- RULE-SET,apple_cn,直连
604598
- DOMAIN,fsend.cn,直连

Script/Script.js

Lines changed: 16 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ const rules = [
1212
'RULE-SET,games_cn,直连',
1313
'RULE-SET,epicgames,直连',
1414
'RULE-SET,nvidia_cn,直连',
15-
'RULE-SET,microsoft_cn,直连',
1615
'DOMAIN,fsend.cn,直连',
1716

1817
// 进程规则
@@ -123,24 +122,6 @@ const baseRuleProviders = {
123122
url: 'https://fastly.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@meta/geo/geoip/google.mrs',
124123
path: './ruleset/google_ip.mrs',
125124
},
126-
microsoft: {
127-
...ruleProviderCommonDomain,
128-
...ruleProviderFormatMrs,
129-
url: 'https://fastly.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@meta/geo/geosite/microsoft.mrs',
130-
path: './ruleset/microsoft.mrs',
131-
},
132-
microsoft_cn: {
133-
...ruleProviderCommonDomain,
134-
...ruleProviderFormatMrs,
135-
url: 'https://fastly.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@meta/geo/geosite/microsoft@cn.mrs',
136-
path: './ruleset/microsoft@cn.mrs',
137-
},
138-
steam: {
139-
...ruleProviderCommonDomain,
140-
...ruleProviderFormatMrs,
141-
url: 'https://fastly.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@meta/geo/geosite/steam.mrs',
142-
path: './ruleset/steam.mrs',
143-
},
144125
games_cn: {
145126
...ruleProviderCommonDomain,
146127
...ruleProviderFormatMrs,
@@ -252,6 +233,21 @@ const serviceConfigs = [
252233
icon: 'https://fastly.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/GitHub.png',
253234
rules: ['RULE-SET,github,GitHub'],
254235
},
236+
{
237+
key: 'microsoft',
238+
name: 'Microsoft',
239+
proxyMode: 'direct',
240+
providers: {
241+
microsoft: {
242+
...ruleProviderCommonDomain,
243+
...ruleProviderFormatMrs,
244+
url: 'https://fastly.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@meta/geo/geosite/microsoft.mrs',
245+
path: './ruleset/microsoft.mrs',
246+
},
247+
},
248+
icon: 'https://fastly.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/Microsoft.png',
249+
rules: ['RULE-SET,microsoft,Microsoft'],
250+
},
255251
{
256252
key: 'telegram',
257253
name: 'Telegram',
@@ -408,6 +404,7 @@ function main(config) {
408404
// 定义分流策略组对应的策略组成员
409405
const proxyModes = {
410406
default: ['代理', ...groupNamesOfSelect],
407+
direct: ['代理', '直连', ...groupNamesOfSelect],
411408
reject: ['REJECT', 'REJECT-DROP', 'PASS'],
412409
};
413410

@@ -572,7 +569,6 @@ function main(config) {
572569
'RULE-SET,youtube,代理',
573570
'RULE-SET,google,代理',
574571
'RULE-SET,google_ip,代理,no-resolve',
575-
'RULE-SET,microsoft,代理',
576572
'RULE-SET,twitter,代理',
577573
'RULE-SET,twitter_ip,代理,no-resolve',
578574

Script/mihomoScript.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ const rules = [
6969
'RULE-SET,games_cn,直连',
7070
'RULE-SET,epicgames,直连',
7171
'RULE-SET,nvidia_cn,直连',
72-
'RULE-SET,microsoft_cn,直连',
7372
'RULE-SET,cloudflare_cn,直连',
7473
'RULE-SET,apple_cn,直连',
7574
'DOMAIN,fsend.cn,直连',
@@ -162,12 +161,6 @@ const baseRuleProviders = {
162161
url: 'https://fastly.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@meta/geo/geosite/nvidia@cn.mrs',
163162
path: './ruleset/nvidia@cn.mrs',
164163
},
165-
microsoft_cn: {
166-
...ruleProviderCommonDomain,
167-
...ruleProviderFormatMrs,
168-
url: 'https://fastly.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@meta/geo/geosite/microsoft@cn.mrs',
169-
path: './ruleset/microsoft@cn.mrs',
170-
},
171164
games_cn: {
172165
...ruleProviderCommonDomain,
173166
...ruleProviderFormatMrs,

src/config/ruleProviders.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,6 @@ const baseRuleProviders = {
4545
url: 'https://fastly.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@meta/geo/geosite/nvidia@cn.mrs',
4646
path: './ruleset/nvidia@cn.mrs',
4747
},
48-
microsoft_cn: {
49-
...ruleProviderCommonDomain,
50-
...ruleProviderFormatMrs,
51-
url: 'https://fastly.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@meta/geo/geosite/microsoft@cn.mrs',
52-
path: './ruleset/microsoft@cn.mrs',
53-
},
5448
games_cn: {
5549
...ruleProviderCommonDomain,
5650
...ruleProviderFormatMrs,

src/config/rules.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ const rules = [
1111
'RULE-SET,games_cn,直连',
1212
'RULE-SET,epicgames,直连',
1313
'RULE-SET,nvidia_cn,直连',
14-
'RULE-SET,microsoft_cn,直连',
1514
'RULE-SET,cloudflare_cn,直连',
1615
'RULE-SET,apple_cn,直连',
1716
'DOMAIN,fsend.cn,直连',

0 commit comments

Comments
 (0)