Giter Site home page Giter Site logo

surge-rule-snippets's Introduction

Surge-Rule-Snippets

本项目目的在于搜集、整理使用的Surge/ShadowRocket/Potatso(部分)规则片段。使得用户可以根据自己的需求最小化定制自己的规则,提高Surge的运行效率。

项目更新日志

注意事项

  1. 所有规则均以片段形式存在,各位需要参考 Surge / ShadowRocket / Potatso 规则配置说明 定制自己的规则
  2. 规则不意味着越多越好,而是越精越好。规则越多,效率越低,RAM占用越高,最后会导致工具退出运行,尤其是越狱设备。

关于 懒人规则 和 兼容性

  1. 懒人规则目前支持三款工具,但是只有ShadowRocket可以直接导入用。SurgePotatso 需要配置服务器。详情请参考上文的配置手册。
  2. 就功能性而言,Surge功能最多最强大,ShadowRocket其次,Potatso功能最少。ShadowRocket和不支持 SrugeUSER-AGENT/PROCESS-NAME/URL-REGEX等参数。Potatso 不支持 DNS Force Remote等功能。所以各位修改配置文件时,请确认参数的兼容性。

代理类型

规则片段中会存在 2 中代理类型:

  • PROXY:推荐使用代理,否则可能无法工作,或访问速度缓慢
  • DIRECT:最好直连,否则可能无法工作

屏蔽广告与追踪

本项目永远不会出现网页广告拦截的规则,原因如下:

  1. 广告拦截规则变化非常大,而且需要经常维护,非常容易失效。
  2. 浏览器很多插件,甚至路由器都可以很好的屏蔽日常遇到的主流广告、追踪等,无需重复屏蔽。
  3. 过多的规则会降级 Surge 运行效率,尤其在越狱系统上更容易意外退出。
  4. 过于广泛的正则匹配容易误杀正常图片、网页元素等,影响体验。

所以更推荐各位使用广告屏蔽插件,效果要比单纯在Surge配置好得多。

  • Safari for macOS:uBlockAdguardGhostery
  • Safari for iOS:Adguard广告猎手
  • Chrome for macOS:uBlock Origin广告终结者AdguardGhostery

关于项目发展

本项目需要定期维护和更新,才能保证时效和可靠性。

项目后期将会更加细化规则和分类,方便用户选择和定制。所以有想法帮助维护项目的朋友可以Issue的形式提交需求,或共享代码片段,帮助我一起维护这个项目,非常感谢。欢迎各位补充规则~

如果您有更好的想法、建议或意见,请写邮件告诉我:[email protected],我会尽快回复。

关注项目

  • Telegram 频道:任何用户均可收听该频道,关注更新动态。
  • Telegram 维护组:仅希望 有时间和能力 协助我维护规则的朋友请加入。

感谢


surge-rule-snippets's People

Contributors

dangerzen avatar hackl0us avatar womeimingzi11 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.