Home

Awesome

SurgeRule

关于本规则集

本规则集意在尽量清晰、精简、易于维护,并有较强的可定制性。

本规则集附带了多种规则定制器,可以根据自身需要生成适合自己的规则。

使用方法

PHP 版

  1. 使用 PHP 部署
  2. 使用浏览器打开 index.php
  3. 根据示例填写节点信息,并按需求选取规则
  4. 导入 Surge

Python 版

  1. 使用 index.php 生成 Customize.json
  2. 运行 python3 Customize.py ,得到 Surge_Customize.conf
  3. 导入 Surge

使用 destribute.py

  1. 解码: python3 destribute.py -d
  2. 编辑: dev/
  3. 编码: python3 destribute.py

系统需求

项目需求推荐
PHP>= 5.0>= 7.0
Python>= 3.4>= 3.5
浏览器越新越好Chrome

声明

THE PROGRAM IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL, BUT WITHOUT ANY WARRANTY. IT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.

IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW THE AUTHOR WILL BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF THE AUTHOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.