这是一个 SwicthyOmega 的白名单仓库。
无论是白名单模式还是黑名单模式都是需要长时间维护的,但白名单相对较少,相对于国外网站来说国内总数要少一些。同时假定你的远端服务器拥有比较好的线路 (CN2 GIA 等),那么默认白名单可以避开拥堵的骨干网。
domain-list-community,使用脚本在每天 0 点自动生成。
CI 的流程是:拉取最新的 domain-list-community,然后用脚本生成 OmegaRules_auto_switch.sorl。手动生成时按下面步骤操作即可。
-
克隆最新的 domain-list-community 到仓库根目录下(目录名必须是
domain-list-community,数据目录默认为domain-list-community/data):rm -rf domain-list-community git clone --depth 1 https://github.com/v2fly/domain-list-community.git domain-list-community
-
运行生成脚本(需要 Python 3):
python generate_sorl.py
默认会导出
private,cn两个列表,输出到OmegaRules_auto_switch.sorl。如需自定义:# 指定数据目录 python generate_sorl.py --data-dir domain-list-community/data # 指定导出列表(逗号分隔) python generate_sorl.py --lists private,cn,geolocation-cn # 指定输出文件 python generate_sorl.py --output OmegaRules_auto_switch.sorl # 需要根域名(除了 *.example.com 还会输出 example.com) python generate_sorl.py --include-root
-
确认生成文件存在:
test -f OmegaRules_auto_switch.sorl
安装 SwicthyOmega (或者是 安装 ZeroOmega)
SwitchyOmega/ZeroOmega 插件支持 Chrome 和 Firefox。
在规则列表设置添加此仓库的清单文件:https://github.com/EpLiar/SwitchyOmega-Whitelist/releases/download/auto-latest/OmegaRules_auto_switch.sorl
或是点击编辑源代码,复制仓库的列表 OmegaRules_auto_switch.sorl 里的内容后粘贴。

