预览版有地方能下载吗?github和其他地方都没找到
我用了论坛里佬写的clash verge脚本也是报这个错,让Gemini改也没改成
期待大佬出手。。
最新的预览版修复了这个问题
只支持 JS,以后电脑维护 YAML,手机端维护 JS
电脑、手机、软路由基本都是手写的同一套config,我就没搞明白脚本和覆写有什么用。
期待大佬的脚本
可以多端同步,挺好用的
我一个机场经常超时……就是fclash才这样,而且显示超时也没法正常用,不知道他那个第三方api判断IP是什么原理,没有显示出IP或者time out大概率就不能用
我用clash meta相同的订阅链接就没问题。
抛砖引玉,分享下我覆写脚本
精简了部分涉及个人自建节点信息配置(dns、proxies)
总结
const githubMirror = "https://hub.gitmirror.com/"
const baseConfig = {
'unified-delay': true,
'tcp-concurrent': true,
'external-controller': 9090,
'secret': '******',
'find-process-mode': 'strict',
'global-client-fingerprint': 'chrome',
'geodata-mode': true,
'geo-update-interval': 24,
'geo-auto-update': true,
'geox-url': {
geoip: `${githubMirror}https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/geoip.dat`,
geosite: `${githubMirror}https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/geosite.dat`,
mmdb: `${githubMirror}https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/country.mmdb`,
asn: `${githubMirror}https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/GeoLite2-ASN.mmdb`
},
profile: {
'store-selected': true,
'store-fake-ip': true
}
}
const ruleProvidersCommon = { "type": "http", "interval": 86400 }
const ruleProviders = {
"Telegram": { ...ruleProvidersCommon, "behavior": "classical", "url": "https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Clash/Telegram/Telegram.yaml" },
"Private": { ...ruleProvidersCommon, "behavior": "domain", "url": "https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/private.txt" },
"LanCIDR": { ...ruleProvidersCommon, "behavior": "ipcidr", "url": "https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/lancidr.txt" },
"TLD-NOT-CN": { ...ruleProvidersCommon, "behavior": "domain", "url": "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/tld-not-cn.txt" },
"GFW": { ...ruleProvidersCommon, "behavior": "domain", "format": "mrs", "url": "https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/refs/heads/meta/geo/geosite/gfw.mrs" },
"BlackMatrix-AD": { ...ruleProvidersCommon, "behavior": "domain", "url": "https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/refs/heads/master/rule/Clash/AdvertisingLite/AdvertisingLite_Domain.yaml" },
}
const rules = [
"PROCESS-NAME,com.miui.packageinstaller,REJECT",
"RULE-SET,BlackMatrix-AD,广告拦截",
"RULE-SET,LanCIDR,DIRECT",
"RULE-SET,Private,DIRECT",
"GEOSITE,category-ai-!cn,OpenAI",
"GEOSITE,google,节点选择",
"GEOSITE,google-cn,节点选择",
"RULE-SET,Telegram,节点选择",
"RULE-SET,GFW,节点选择",
"GEOSITE,geolocation-cn,DIRECT",
"GEOSITE,CN,DIRECT",
"GEOIP,CN,DIRECT",
"RULE-SET,TLD-NOT-CN,节点选择",
"MATCH,节点选择",
]
const myProxies = [
// 如果有自己的节点,填在这里
]
const toMap = (array) => {
const map = {}
array.forEach((item) => map[item['name']] = item)
return map
}
const mergeProxiesWithoutConflic = (target, src) => {
const targetMap = toMap(target)
const srcMap = toMap(src)
const arr = []
Object.keys(srcMap).forEach(key => {
if (targetMap[key]) {
return
}
arr.push(srcMap[key])
})
return [...target, ...arr]
}
const main = (config) => {
config = {
...config,
...baseConfig
}
config['rules'] = rules
config['rule-providers'] = ruleProviders
config['proxies'] = mergeProxiesWithoutConflic(myProxies, config['proxies'])
const defaultExcludeFilter = "套餐|官网|导航|重置|剩余|客服"
const filterHK = "港|hk|hongkong|hong kong"
const filterTW = "台|tw|taiwan"
const filterJP = "日本|jp|japan"
const filterSG = "新|sg|singapore"
const filterKR = "韩国|kr|korea"
const filterUS = "美|us|unitedstates|united states"
config['proxy-groups'] = [
{ "name": "节点选择", "type": "select", "proxies": ["自动选择", "香港", "香港自动", "台湾", "日本", "韩国", "新加坡", "美国", "其它地区", "全部节点", "Relay", "DIRECT", "selfbuild"], "icon": "https://fastly.jsdelivr.net/gh/Koolson/Qure/IconSet/Color/Auto.png" },
{ "name": "广告拦截", "type": "select", "proxies": ["REJECT", "PASS", "DIRECT", "节点选择"], "icon": "https://fastly.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/Advertising.png" },
{ "name": "香港", "type": "select", "include-all-proxies": true, "filter": `(?i)(${filterHK})`, "exclude-filter": defaultExcludeFilter, "icon": "https://fastly.jsdelivr.net/gh/Koolson/Qure/IconSet/Color/Hong_Kong.png" },
{ "name": "香港自动", "type": "url-test", "tolerance": 100, "interval": 300, "include-all-proxies": true, "filter": `(?i)(${filterHK})`, "exclude-filter": defaultExcludeFilter, "icon": "https://fastly.jsdelivr.net/gh/Koolson/Qure/IconSet/Color/Hong_Kong.png" },
{ "name": "新加坡", "type": "select", "include-all-proxies": true, "filter": `(?i)(${filterSG})`, "exclude-filter": defaultExcludeFilter, "icon": "https://fastly.jsdelivr.net/gh/Koolson/Qure/IconSet/Color/Singapore.png" },
{ "name": "台湾", "type": "select", "include-all-proxies": true, "filter": `(?i)(${filterTW})`, "exclude-filter": defaultExcludeFilter, "icon": "https://fastly.jsdelivr.net/gh/Koolson/Qure/IconSet/Color/Taiwan.png" },
{ "name": "日本", "type": "select", "include-all-proxies": true, "filter": `(?i)(${filterJP})`, "exclude-filter": defaultExcludeFilter, "icon": "https://fastly.jsdelivr.net/gh/Koolson/Qure/IconSet/Color/Japan.png" },
{ "name": "韩国", "type": "select", "include-all-proxies": true, "filter": `(?i)(${filterKR})`, "exclude-filter": defaultExcludeFilter, "icon": "https://fastly.jsdelivr.net/gh/Koolson/Qure/IconSet/Color/Korea.png" },
{ "name": "美国", "type": "select", "include-all-proxies": true, "filter": `(?i)(${filterUS})`, "exclude-filter": defaultExcludeFilter, "icon": "https://fastly.jsdelivr.net/gh/Koolson/Qure/IconSet/Color/United_States.png" },
{ "name": "其它地区", "type": "select", "include-all-proxies": true, "exclude-filter": `(?i)(${filterHK}|${filterJP}|${filterTW}|${filterSG}|${filterUS}|${filterKR}|${defaultExcludeFilter})`, "icon": "https://fastly.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/Global.png" },
{ "name": "全部节点", "type": "select", "include-all-proxies": true, "exclude-filter": `(?i)(${defaultExcludeFilter})`, "icon": "https://fastly.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/Star.png" },
{ "name": "自动选择", "type": "url-test", "include-all-proxies": true, "exclude-filter": `(?i)(${defaultExcludeFilter})`, "tolerance": 100, "interval": 300, "icon": "https://fastly.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/Magic.png" },
{ "name": "OpenAI", "type": "select", "proxies": ["美国", "日本", "新加坡", "韩国", "节点选择", "自动选择"], "icon": "https://fastly.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/AI.png" },
]
return config
}```
1 Like
宝可梦机场是吗?我用FlClash宝可梦机场一半节点超时且用不了,用cmfa就正常了,不知道什么原因。
不是,我用的syn
测试的节点改一下好像
我现在又下载FlClash,没开启代理测试延迟正常,开启代理再去测试延迟超时。
“测试的节点改一下”,请问一下在哪里改?
我怀疑是FlClash仪表盘的网络检测问题。
延迟测试链接改了,没用。