Skip to content

Commit 2e78f93

Browse files
committed
update: rule-providers
1 parent 0d5985c commit 2e78f93

File tree

2 files changed

+250
-50
lines changed

2 files changed

+250
-50
lines changed

clash-script.js

Lines changed: 225 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -185,31 +185,231 @@ function main(config) {
185185

186186
// 3. 构建新的 Rule-Providers
187187
const ruleProviders = {
188-
"Apple-Site": { type: "http", behavior: "domain", format: "mrs", url: "mihomo/Apple/Apple-Site.mrs", path: "./ruleset/Apple-Site.mrs", proxy: "DIRECT", interval: 86400 },
189-
"Apple-IP": { type: "http", behavior: "ipcidr", format: "mrs", url: "mihomo/Apple/Apple-IP.mrs", path: "./ruleset/Apple-IP.mrs", proxy: "DIRECT", interval: 86400 },
190-
"Bahamut-Site": { type: "http", behavior: "domain", format: "mrs", url: "mihomo/Bahamut/Bahamut-Site.mrs", path: "./ruleset/Bahamut-Site.mrs", proxy: "DIRECT", interval: 86400 },
191-
"Bilibili-Site": { type: "http", behavior: "domain", format: "mrs", url: "mihomo/Bilibili/Bilibili-Site.mrs", path: "./ruleset/Bilibili-Site.mrs", proxy: "DIRECT", interval: 86400 },
192-
"Bilibili-IP": { type: "http", behavior: "ipcidr", format: "mrs", url: "mihomo/Bilibili/Bilibili-IP.mrs", path: "./ruleset/Bilibili-IP.mrs", proxy: "DIRECT", interval: 86400 },
193-
"China-Site": { type: "http", behavior: "domain", format: "mrs", url: "mihomo/China/China-Site.mrs", path: "./ruleset/China-Site.mrs", proxy: "DIRECT", interval: 86400 },
194-
"China-IP": { type: "http", behavior: "ipcidr", format: "mrs", url: "mihomo/China/China-IP.mrs", path: "./ruleset/China-IP.mrs", proxy: "DIRECT", interval: 86400 },
195-
"Discord-Site": { type: "http", behavior: "domain", format: "mrs", url: "mihomo/Discord/Discord-Site.mrs", path: "./ruleset/Discord-Site.mrs", proxy: "DIRECT", interval: 86400 },
196-
"GFWList-Site": { type: "http", behavior: "domain", format: "mrs", url: "mihomo/GFWList/GFWList-Site.mrs", path: "./ruleset/GFWList-Site.mrs", proxy: "DIRECT", interval: 86400 },
197-
"Google-Site": { type: "http", behavior: "domain", format: "mrs", url: "mihomo/Google/Google-Site.mrs", path: "./ruleset/Google-Site.mrs", proxy: "DIRECT", interval: 86400 },
198-
"Google-IP": { type: "http", behavior: "ipcidr", format: "mrs", url: "mihomo/Google/Google-IP.mrs", path: "./ruleset/Google-IP.mrs", proxy: "DIRECT", interval: 86400 },
199-
"GoogleFCM-Site": { type: "http", behavior: "domain", format: "mrs", url: "mihomo/GoogleFCM/GoogleFCM-Site.mrs", path: "./ruleset/GoogleFCM-Site.mrs", proxy: "DIRECT", interval: 86400 },
200-
"Local-IP": { type: "http", behavior: "ipcidr", format: "mrs", url: "mihomo/Local/Local-IP.mrs", path: "./ruleset/Local-IP.mrs", proxy: "DIRECT", interval: 86400 },
201-
"Microsoft-Site": { type: "http", behavior: "domain", format: "mrs", url: "mihomo/Microsoft/Microsoft-Site.mrs", path: "./ruleset/Microsoft-Site.mrs", proxy: "DIRECT", interval: 86400 },
202-
"Netflix-Site": { type: "http", behavior: "domain", format: "mrs", url: "mihomo/Netflix/Netflix-Site.mrs", path: "./ruleset/Netflix-Site.mrs", proxy: "DIRECT", interval: 86400 },
203-
"Netflix-IP": { type: "http", behavior: "ipcidr", format: "mrs", url: "mihomo/Netflix/Netflix-IP.mrs", path: "./ruleset/Netflix-IP.mrs", proxy: "DIRECT", interval: 86400 },
204-
"OpenAI-Site": { type: "http", behavior: "domain", format: "mrs", url: "mihomo/OpenAI/OpenAI-Site.mrs", path: "./ruleset/OpenAI-Site.mrs", proxy: "DIRECT", interval: 86400 },
205-
"OpenAI-IP": { type: "http", behavior: "ipcidr", format: "mrs", url: "mihomo/OpenAI/OpenAI-IP.mrs", path: "./ruleset/OpenAI-IP.mrs", proxy: "DIRECT", interval: 86400 },
206-
"Speedtest-Site": { type: "http", behavior: "domain", format: "mrs", url: "mihomo/Speedtest/Speedtest-Site.mrs", path: "./ruleset/Speedtest-Site.mrs", proxy: "DIRECT", interval: 86400 },
207-
"Spotify-Site": { type: "http", behavior: "domain", format: "mrs", url: "mihomo/Spotify/Spotify-Site.mrs", path: "./ruleset/Spotify-Site.mrs", proxy: "DIRECT", interval: 86400 },
208-
"Spotify-IP": { type: "http", behavior: "ipcidr", format: "mrs", url: "mihomo/Spotify/Spotify-IP.mrs", path: "./ruleset/Spotify-IP.mrs", proxy: "DIRECT", interval: 86400 },
209-
"Steam-Site": { type: "http", behavior: "domain", format: "mrs", url: "mihomo/Steam/Steam-Site.mrs", path: "./ruleset/Steam-Site.mrs", proxy: "DIRECT", interval: 86400 },
210-
"Telegram-Site": { type: "http", behavior: "domain", format: "mrs", url: "mihomo/Telegram/Telegram-Site.mrs", path: "./ruleset/Telegram-Site.mrs", proxy: "DIRECT", interval: 86400 },
211-
"Telegram-IP": { type: "http", behavior: "ipcidr", format: "mrs", url: "mihomo/Telegram/Telegram-IP.mrs", path: "./ruleset/Telegram-IP.mrs", proxy: "DIRECT", interval: 86400 },
212-
"TikTok-Site": { type: "http", behavior: "domain", format: "mrs", url: "mihomo/TikTok/TikTok-Site.mrs", path: "./ruleset/TikTok-Site.mrs", proxy: "DIRECT", interval: 86400 }
188+
"Apple-Site": {
189+
type: "http",
190+
behavior: "domain",
191+
format: "mrs",
192+
url: "https://cdn.jsdmirror.com/gh/HosheaPDNX/rule-set@V2.0.0/mihomo/Apple/Apple-Site.mrs",
193+
path: "./ruleset/Apple-Site.mrs",
194+
proxy: "DIRECT",
195+
interval: 86400
196+
},
197+
"Apple-IP": {
198+
type: "http",
199+
behavior: "ipcidr",
200+
format: "mrs",
201+
url: "https://cdn.jsdmirror.com/gh/HosheaPDNX/rule-set@V2.0.0/mihomo/Apple/Apple-IP.mrs",
202+
path: "./ruleset/Apple-IP.mrs",
203+
proxy: "DIRECT",
204+
interval: 86400
205+
},
206+
"Bahamut-Site": {
207+
type: "http",
208+
behavior: "domain",
209+
format: "mrs",
210+
url: "https://cdn.jsdmirror.com/gh/HosheaPDNX/rule-set@V2.0.0/mihomo/Bahamut/Bahamut-Site.mrs",
211+
path: "./ruleset/Bahamut-Site.mrs",
212+
proxy: "DIRECT",
213+
interval: 86400
214+
},
215+
"Bilibili-Site": {
216+
type: "http",
217+
behavior: "domain",
218+
format: "mrs",
219+
url: "https://cdn.jsdmirror.com/gh/HosheaPDNX/rule-set@V2.0.0/mihomo/Bilibili/Bilibili-Site.mrs",
220+
path: "./ruleset/Bilibili-Site.mrs",
221+
proxy: "DIRECT",
222+
interval: 86400
223+
},
224+
"Bilibili-IP": {
225+
type: "http",
226+
behavior: "ipcidr",
227+
format: "mrs",
228+
url: "https://cdn.jsdmirror.com/gh/HosheaPDNX/rule-set@V2.0.0/mihomo/Bilibili/Bilibili-IP.mrs",
229+
path: "./ruleset/Bilibili-IP.mrs",
230+
proxy: "DIRECT",
231+
interval: 86400
232+
},
233+
"China-Site": {
234+
type: "http",
235+
behavior: "domain",
236+
format: "mrs",
237+
url: "https://cdn.jsdmirror.com/gh/HosheaPDNX/rule-set@V2.0.0/mihomo/China/China-Site.mrs",
238+
path: "./ruleset/China-Site.mrs",
239+
proxy: "DIRECT",
240+
interval: 86400
241+
},
242+
"China-IP": {
243+
type: "http",
244+
behavior: "ipcidr",
245+
format: "mrs",
246+
url: "https://cdn.jsdmirror.com/gh/HosheaPDNX/rule-set@V2.0.0/mihomo/China/China-IP.mrs",
247+
path: "./ruleset/China-IP.mrs",
248+
proxy: "DIRECT",
249+
interval: 86400
250+
},
251+
"Discord-Site": {
252+
type: "http",
253+
behavior: "domain",
254+
format: "mrs",
255+
url: "https://cdn.jsdmirror.com/gh/HosheaPDNX/rule-set@V2.0.0/mihomo/Discord/Discord-Site.mrs",
256+
path: "./ruleset/Discord-Site.mrs",
257+
proxy: "DIRECT",
258+
interval: 86400
259+
},
260+
"GFWList-Site": {
261+
type: "http",
262+
behavior: "domain",
263+
format: "mrs",
264+
url: "https://cdn.jsdmirror.com/gh/HosheaPDNX/rule-set@V2.0.0/mihomo/GFWList/GFWList-Site.mrs",
265+
path: "./ruleset/GFWList-Site.mrs",
266+
proxy: "DIRECT",
267+
interval: 86400
268+
},
269+
"Google-Site": {
270+
type: "http",
271+
behavior: "domain",
272+
format: "mrs",
273+
url: "https://cdn.jsdmirror.com/gh/HosheaPDNX/rule-set@V2.0.0/mihomo/Google/Google-Site.mrs",
274+
path: "./ruleset/Google-Site.mrs",
275+
proxy: "DIRECT",
276+
interval: 86400
277+
},
278+
"Google-IP": {
279+
type: "http",
280+
behavior: "ipcidr",
281+
format: "mrs",
282+
url: "https://cdn.jsdmirror.com/gh/HosheaPDNX/rule-set@V2.0.0/mihomo/Google/Google-IP.mrs",
283+
path: "./ruleset/Google-IP.mrs",
284+
proxy: "DIRECT",
285+
interval: 86400
286+
},
287+
"GoogleFCM-Site": {
288+
type: "http",
289+
behavior: "domain",
290+
format: "mrs",
291+
url: "https://cdn.jsdmirror.com/gh/HosheaPDNX/rule-set@V2.0.0/mihomo/GoogleFCM/GoogleFCM-Site.mrs",
292+
path: "./ruleset/GoogleFCM-Site.mrs",
293+
proxy: "DIRECT",
294+
interval: 86400
295+
},
296+
"Local-IP": {
297+
type: "http",
298+
behavior: "ipcidr",
299+
format: "mrs",
300+
url: "https://cdn.jsdmirror.com/gh/HosheaPDNX/rule-set@V2.0.0/mihomo/Local/Local-IP.mrs",
301+
path: "./ruleset/Local-IP.mrs",
302+
proxy: "DIRECT",
303+
interval: 86400
304+
},
305+
"Microsoft-Site": {
306+
type: "http",
307+
behavior: "domain",
308+
format: "mrs",
309+
url: "https://cdn.jsdmirror.com/gh/HosheaPDNX/rule-set@V2.0.0/mihomo/Microsoft/Microsoft-Site.mrs",
310+
path: "./ruleset/Microsoft-Site.mrs",
311+
proxy: "DIRECT",
312+
interval: 86400
313+
},
314+
"Netflix-Site": {
315+
type: "http",
316+
behavior: "domain",
317+
format: "mrs",
318+
url: "https://cdn.jsdmirror.com/gh/HosheaPDNX/rule-set@V2.0.0/mihomo/Netflix/Netflix-Site.mrs",
319+
path: "./ruleset/Netflix-Site.mrs",
320+
proxy: "DIRECT",
321+
interval: 86400
322+
},
323+
"Netflix-IP": {
324+
type: "http",
325+
behavior: "ipcidr",
326+
format: "mrs",
327+
url: "https://cdn.jsdmirror.com/gh/HosheaPDNX/rule-set@V2.0.0/mihomo/Netflix/Netflix-IP.mrs",
328+
path: "./ruleset/Netflix-IP.mrs",
329+
proxy: "DIRECT",
330+
interval: 86400
331+
},
332+
"OpenAI-Site": {
333+
type: "http",
334+
behavior: "domain",
335+
format: "mrs",
336+
url: "https://cdn.jsdmirror.com/gh/HosheaPDNX/rule-set@V2.0.0/mihomo/OpenAI/OpenAI-Site.mrs",
337+
path: "./ruleset/OpenAI-Site.mrs",
338+
proxy: "DIRECT",
339+
interval: 86400
340+
},
341+
"OpenAI-IP": {
342+
type: "http",
343+
behavior: "ipcidr",
344+
format: "mrs",
345+
url: "https://cdn.jsdmirror.com/gh/HosheaPDNX/rule-set@V2.0.0/mihomo/OpenAI/OpenAI-IP.mrs",
346+
path: "./ruleset/OpenAI-IP.mrs",
347+
proxy: "DIRECT",
348+
interval: 86400
349+
},
350+
"Speedtest-Site": {
351+
type: "http",
352+
behavior: "domain",
353+
format: "mrs",
354+
url: "https://cdn.jsdmirror.com/gh/HosheaPDNX/rule-set@V2.0.0/mihomo/Speedtest/Speedtest-Site.mrs",
355+
path: "./ruleset/Speedtest-Site.mrs",
356+
proxy: "DIRECT",
357+
interval: 86400
358+
},
359+
"Spotify-Site": {
360+
type: "http",
361+
behavior: "domain",
362+
format: "mrs",
363+
url: "https://cdn.jsdmirror.com/gh/HosheaPDNX/rule-set@V2.0.0/mihomo/Spotify/Spotify-Site.mrs",
364+
path: "./ruleset/Spotify-Site.mrs",
365+
proxy: "DIRECT",
366+
interval: 86400
367+
},
368+
"Spotify-IP": {
369+
type: "http",
370+
behavior: "ipcidr",
371+
format: "mrs",
372+
url: "https://cdn.jsdmirror.com/gh/HosheaPDNX/rule-set@V2.0.0/mihomo/Spotify/Spotify-IP.mrs",
373+
path: "./ruleset/Spotify-IP.mrs",
374+
proxy: "DIRECT",
375+
interval: 86400
376+
},
377+
"Steam-Site": {
378+
type: "http",
379+
behavior: "domain",
380+
format: "mrs",
381+
url: "https://cdn.jsdmirror.com/gh/HosheaPDNX/rule-set@V2.0.0/mihomo/Steam/Steam-Site.mrs",
382+
path: "./ruleset/Steam-Site.mrs",
383+
proxy: "DIRECT",
384+
interval: 86400
385+
},
386+
"Telegram-Site": {
387+
type: "http",
388+
behavior: "domain",
389+
format: "mrs",
390+
url: "https://cdn.jsdmirror.com/gh/HosheaPDNX/rule-set@V2.0.0/mihomo/Telegram/Telegram-Site.mrs",
391+
path: "./ruleset/Telegram-Site.mrs",
392+
proxy: "DIRECT",
393+
interval: 86400
394+
},
395+
"Telegram-IP": {
396+
type: "http",
397+
behavior: "ipcidr",
398+
format: "mrs",
399+
url: "https://cdn.jsdmirror.com/gh/HosheaPDNX/rule-set@V2.0.0/mihomo/Telegram/Telegram-IP.mrs",
400+
path: "./ruleset/Telegram-IP.mrs",
401+
proxy: "DIRECT",
402+
interval: 86400
403+
},
404+
"TikTok-Site": {
405+
type: "http",
406+
behavior: "domain",
407+
format: "mrs",
408+
url: "https://cdn.jsdmirror.com/gh/HosheaPDNX/rule-set@V2.0.0/mihomo/TikTok/TikTok-Site.mrs",
409+
path: "./ruleset/TikTok-Site.mrs",
410+
proxy: "DIRECT",
411+
interval: 86400
412+
}
213413
};
214414

215415
// 4. 构建新的 Rules

0 commit comments

Comments
 (0)