Surge-Rule-Snippets
本项目目的在于搜集、整理使用的Surge
/ShadowRocket
/Potatso(部分)
规则片段。使得用户可以根据自己的需求最小化定制自己的规则,提高Surge的运行效率。
注意事项
- 所有规则均以片段形式存在,各位需要参考 Surge / ShadowRocket / Potatso 规则配置说明 定制自己的规则
- 规则不意味着越多越好,而是越精越好。规则越多,效率越低,RAM占用越高,最后会导致工具退出运行,尤其是越狱设备。
关于 懒人规则 和 兼容性
- 懒人规则目前支持三款工具,但是只有
ShadowRocket
可以直接导入用。Surge
和Potatso
需要配置服务器。详情请参考上文的配置手册。 - 就功能性而言,
Surge
功能最多最强大,ShadowRocket
其次,Potatso
功能最少。ShadowRocket和不支持Sruge
的USER-AGENT
/PROCESS-NAME
/URL-REGEX
等参数。Potatso
不支持DNS Force Remote
等功能。所以各位修改配置文件时,请确认参数的兼容性。
代理类型
规则片段中会存在 2 中代理类型:
- PROXY:推荐使用代理,否则可能无法工作,或访问速度缓慢
- DIRECT:最好直连,否则可能无法工作
屏蔽广告与追踪
本项目永远不会出现网页广告拦截的规则,原因如下:
- 广告拦截规则变化非常大,而且需要经常维护,非常容易失效。
- 浏览器很多插件,甚至路由器都可以很好的屏蔽日常遇到的主流广告、追踪等,无需重复屏蔽。
- 过多的规则会降级 Surge 运行效率,尤其在越狱系统上更容易意外退出。
- 过于广泛的正则匹配容易误杀正常图片、网页元素等,影响体验。
所以更推荐各位使用广告屏蔽插件,效果要比单纯在Surge配置好得多。
- Safari for macOS:
uBlock
、Adguard
、Ghostery
- Safari for iOS:
Adguard
、广告猎手
- Chrome for macOS:
uBlock Origin
、广告终结者
、Adguard
、Ghostery
关于项目发展
本项目需要定期维护和更新,才能保证时效和可靠性。
项目后期将会更加细化规则和分类,方便用户选择和定制。所以有想法帮助维护项目的朋友可以Issue的形式提交需求,或共享代码片段,帮助我一起维护这个项目,非常感谢。欢迎各位补充规则~
如果您有更好的想法、建议或意见,请写邮件告诉我:[email protected],我会尽快回复。
关注项目
- Telegram 频道:任何用户均可收听该频道,关注更新动态。
- Telegram 维护组:仅希望 有时间和能力 协助我维护规则的朋友请加入。
感谢
感谢各位支持。