https://github.com/chen08209/FlClash
全平台科学上网客户端
我一直在用 2016 年 10 月购买的小米电视 3S 55 寸,LG 面板的 4K 电视。亲测FlClash能在小米电视上正常运行,同时还能全程只用遥控器操作。这个客户端的特点是可以在平板(手机)上,电视(盒子)上,也可以在MacBook 上和 PC 上轻松实现,作者更新非常勤奋,可以作为主力替代其他客户端使用。
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
| function main(config) { if (!config.experimental) config.experimental = {}; Object.assign(config.experimental, { "udp-hole-punch": true, "ignore-resolve-fail": true, "skip-auth-preface": true });
config["keep-alive-interval"] = 10; // ✅ 有效!放在根级别是正确的,单位秒,10 秒比较激进(默认 15),移动端省电可调高到 20-30
config.experimental["unified-delay"] = true; // ✅ 强烈推荐,延迟测试更准 config.experimental["tcp-concurrent"] = true; // ✅ 强烈推荐,TCP 多 IP 并发建连,下载/视频加速明显
// 统一所有测速组使用最稳链接 const testUrl = "http://cp.cloudflare.com/generate_204"; // ✅ 最佳实践 const groups = config["proxy-groups"] || [];
groups.forEach(group => { if (group.type === "url-test" || group.type === "fallback") { group.url = testUrl; group.interval = 240; // ✅ 合理(240s ≈ 4min,不频繁测省流量) group.tolerance = 40; // ✅ 适中(可根据需求调 20-60) group.timeout = 2500; // ✅ 好(2.5s 超时,避免卡住) group.lazy = true; // ✅ 推荐,启动更快 } });
// 新增一个全局最优组,放在最前面 const autoGroup = { name: "🚀 自动最优", type: "url-test", url: testUrl, interval: 180, tolerance: 30, include-all: true, icon: "https://fastly.jsdelivr.net/gh/clash-verge-rev/clash-verge-rev.github.io@main/docs/assets/icons/speed.svg" }; groups.unshift(autoGroup); // ✅ 插到最前面,方便规则直接选它
return config; }
|
电视端免框架安装即用的油管客户端:
https://github.com/yuliskov/smarttube