MCPcopy Create free account
hub / github.com/Moli-X/Resources / overwriteRules

Function overwriteRules

Clash/Script/Configure.js:10–65  ·  view source on GitHub ↗
(params)

Source from the content-addressed store, hash-verified

8}
9//覆写规则
10function overwriteRules(params) {
11
12 const ruleProviders = {
13 Direct: {type: "http",behavior: "classical", url: "https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/Direct/Direct.yaml" , path: "./RuleSet/Direct.yaml" , interval: 86400, },
14 Taida: {type: "http",behavior: "classical", url: "https://cdn.jsdelivr.net/gh/Moli-X/Resources@main/Clash/Rules/Taida.yaml" , path: "./RuleSet/Taida.yaml" , interval: 86400, },
15 Lan: {type: "http",behavior: "classical", url: "https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/Lan/Lan.yaml" , path: "./RuleSet/Lan.yaml" , interval: 86400, },
16 Google: {type: "http",behavior: "classical", url: "https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/Google/Google.yaml" , path: "./RuleSet/Google.yaml" , interval: 86400, },
17 Unbreak: {type: "http",behavior: "classical", url: "https://cdn.jsdelivr.net/gh/DivineEngine/Profiles@master/Clash/RuleSet/Unbreak.yaml" , path: "./RuleSet/Unbreak.yaml" , interval: 86400, },
18 OpenAI: {type: "http",behavior: "classical", url: "https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/OpenAI/OpenAI.yaml" , path: "./RuleSet/OpenAI.yaml" , interval: 86400, },
19 Bing: {type: "http",behavior: "classical", url: "https://cdn.jsdelivr.net/gh/Moli-X/Resources@main/Clash/Rules/Bing.yaml" , path: "./RuleSet/Bing.yaml" , interval: 86400, },
20 Microsoft: {type: "http",behavior: "classical", url: "https://cdn.jsdelivr.net/gh/Moli-X/Resources@main/Clash/Rules/Microsoft.yaml" , path: "./RuleSet/Microsoft.yaml" , interval: 86400, },
21 Github: {type: "http",behavior: "classical", url: "https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@release/rule/Clash/GitHub/GitHub.yaml" , path: "./RuleSet/Github.yaml" , interval: 86400, },
22 GitLab: {type: "http",behavior: "classical", url: "https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/GitLab/GitLab.yaml" , path: "./RuleSet/GitLab.yaml" , interval: 86400, },
23 YouTube: {type: "http",behavior: "classical", url: "https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/YouTube/YouTube.yaml" , path: "./RuleSet/YouTube.yaml" , interval: 86400, },
24 Video: {type: "http",behavior: "classical", url: "https://cdn.jsdelivr.net/gh/Moli-X/Resources@main/Clash/Rules/Video.yaml" , path: "./RuleSet/Video.yaml" , interval: 86400, },
25 Telegram: {type: "http",behavior: "classical", url: "https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@release/rule/Clash/Telegram/Telegram.yaml" , path: "./RuleSet/Telegram.yaml" , interval: 86400, },
26 Discord: {type: "http",behavior: "classical", url: "https://cdn.jsdelivr.net/gh/Moli-X/Resources@main/Clash/Rules/Discord.yaml" , path: "./RuleSet/Discord.yaml" , interval: 86400, },
27 Global: {type: "http",behavior: "classical", url: "https://cdn.jsdelivr.net/gh/Moli-X/Resources@main/Clash/Rules/Global.yaml" , path: "./RuleSet/Global.yaml" , interval: 86400, },
28 China: {type: "http",behavior: "classical", url: "https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@release/rule/Clash/China/China.yaml" , path: "./RuleSet/China.yaml" , interval: 86400, },
29 ChinaIP: {type: "http",behavior: "ipcidr" , url: "https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@release/rule/Clash/ChinaIPs/ChinaIPs_IP.yaml" , path: "./RuleSet/ChinaIP.yaml" , interval: 86400, },
30 Advertising: {type: "http",behavior: "classical", url: "https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/Advertising/Advertising.yaml", path: "./RuleSet/Advertising.yaml" , interval: 86400, },
31 Privacy: {type: "http",behavior: "classical", url: "https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/Hijacking/Hijacking.yaml" , path: "./RuleSet/Privacy.yaml" , interval: 86400, },
32 HKlist: {type: "http",behavior: "classical", url: "https://cdn.jsdelivr.net/gh/Moli-X/Resources@main/Clash/Rules/HKlist.yaml" , path: "./RuleSet/HKlist.yaml" , interval: 86400, },
33 Trendmicro: {type: "http",behavior: "classical", url: "https://cdn.jsdelivr.net/gh/Moli-X/Resources@main/Clash/Rules/Trendmicro.yaml" , path: "./RuleSet/Trendmicro.yaml" , interval: 86400, },
34 Anti: {type: "http",behavior: "domain" , url: "https://anti-ad.net/clash.yaml" , path: "./RuleSet/Anti.yaml" , interval: 86400, },
35 };
36 const rules = [
37 "PROCESS-NAME,lync.exe,DIRECT ",
38 "PROCESS-NAME,EXCEL.EXE,DIRECT",
39 "PROCESS-NAME,WINWORD.EXE,DIRECT",
40 "PROCESS-NAME,DIAInstaller.EXE,DIRECT",
41 "PROCESS-NAME,Update.exe,DIRECT",
42 "RULE-SET,Taida,PASS",
43 "RULE-SET,GitLab,香港节点",
44 "RULE-SET,Google,香港节点",
45 "RULE-SET,YouTube,香港节点",
46 "RULE-SET,Direct,DIRECT",
47 "RULE-SET,Lan,DIRECT,no-resolve",
48 "RULE-SET,Unbreak,DIRECT",
49 "RULE-SET,Microsoft,香港节点",
50 "RULE-SET,Video,中国媒体",
51 "RULE-SET,Telegram,电报消息 ",
52 "RULE-SET,Github,香港节点 ",
53 "RULE-SET,OpenAI,人工智能 ",
54 "RULE-SET,China,DIRECT ",
55 "RULE-SET,Global,海外服务" ,
56 "RULE-SET,Anti,REJECT ",
57 "RULE-SET,Advertising,REJECT",
58 "RULE-SET,Privacy,REJECT",
59 "RULE-SET,Trendmicro,中达监控",
60 "GEOIP,CN,DIRECT,no-resolve",
61 "MATCH,漏网之鱼 ",
62 ];
63 params["rule-providers"] = ruleProviders;
64 params["rules"] = rules;
65}
66
67//覆写代理组

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected