├── Loon ├── EDCstore.plugin └── Loon_EDC-Lazy.conf ├── Quantumult X ├── LazyConf │ ├── QuantumultX_EDC-Lazy.conf │ └── Readme.md └── README.md ├── README.md ├── Surfboard └── EDC-Lazy.conf └── Surge ├── Panels └── EDC_Surge-Panel.js └── Surge_EDC-Lzay.conf /Loon/EDCstore.plugin: -------------------------------------------------------------------------------- 1 | #!name=EDCstore 2 | #!desc=Apple 个人开发者证书、AppleID、ChatGPT API、美区付费 APP 代购、TG大会员代购等,点击下方链接访问网站下单哦! 3 | #!openUrl=https://store.erdongchan.cn/ 4 | #!author=ErdongChan[https://store.erdongchan.cn/] 5 | #!homepage=https://store.erdongchan.cn/ 6 | #!icon=https://img.erdongchan.cn/2024/08/13/440b190913d95.jpg 7 | #!tag=EDCstore 8 | 9 | [Rule] 10 | DOMAIN-SUFFIX, erdongchan.cn, Final 11 | -------------------------------------------------------------------------------- /Loon/Loon_EDC-Lazy.conf: -------------------------------------------------------------------------------- 1 | # ErdongChan-LazyConf 2 | # Update:2024.10(精简配置,删除部分分流规则) 3 | # 后期本配置文件不再定期更新,各位有需要的话可以根据自己需求修改配置文件 4 | # ------------------ 5 | # YouTube:www.youtube.com/@erdongchan 6 | # Telegram:t.me/erdongchan 7 | # EDC导航站:https://erdon.cc/ 8 | # EDCstore:https://store.erdongchan.cn/ 9 | # ------------------ 10 | # 导入配置后,添加机场订阅链接,之后更新订阅规则。 11 | # 点击配置-证书管理-生成新的CA证书,之后进入「设置」>「通用」>「描述文件」, 安装Loon的证书,并在「设置」>「通用」>「关于本机」>「证书信任设置」开启对Loon证书的信任。 12 | 13 | [General] 14 | ip-mode = ipv4-only 15 | # > 这些IP段、域名将不会转发到Loon,而是由系统处理 16 | bypass-tun = 10.0.0.0/8,100.64.0.0/10,127.0.0.0/8,169.254.0.0/16,172.16.0.0/12,192.0.0.0/24,192.0.2.0/24,192.88.99.0/24,192.168.0.0/16,198.51.100.0/24,203.0.113.0/24,224.0.0.0/4,239.255.255.250/32,255.255.255.255/32 17 | skip-proxy = 127.0.0.1,192.168.0.0/16,10.0.0.0/8,172.16.0.0/12,localhost 18 | # DNS 服务器 19 | dns-server = system,119.29.29.29,114.114.114.114,223.5.5.5 20 | # DNS over HTTPS服务器,用,隔开多个服务器,system表示系统dns 21 | doh-server = https://dns.alidns.com/dns-query 22 | # IPv6 支持 23 | ipv6 = false 24 | # Wi-Fi 相关设置 25 | # > 是否开启局域网代理访问 26 | allow-wifi-access = false 27 | # > 开启局域网访问后的http代理端口 28 | wifi-access-http-port = 7222 29 | # > 开启局域网访问后的socks5代理端口 30 | wifi-access-socks5-port = 7221 31 | # 测速所用的测试链接 32 | proxy-test-url = http://cp.cloudflare.com/generate_204 33 | # 检测网络可用性时的链接 34 | internet-test-url = http://wifi.vivo.com.cn/generate_204 35 | # 测速超时秒数 36 | test-timeout = 5 37 | # 一个节点连接失败几次后会进行节点切换 38 | switch-node-after-failure-times = 2 39 | # 订阅资源解析器链接 40 | resource-parser = https://github.com/sub-store-org/Sub-Store/releases/latest/download/sub-store-parser.loon.min.js 41 | # 解决一些ip请求无法匹配规则的问题。real-ip指定的域名将不返回fake ip响应,直接将dns请求发往目标dns服务器 42 | real-ip = *.apple.com,*.icloud.com,msftconnecttest.com,msftncsi.com,*.msftconnecttest.com,*.msftncsi.com,*.srv.nintendo.net,*.stun.playstation.net,xbox.*.microsoft.com,*.xboxlive.com,*.battlenet.com.cn,*.battlenet.com,*.blzstatic.cn,*.battle.net 43 | # 指定流量使用哪个网络接口进行转发,目前包含三种模式 44 | # > Auto: 系统自动分配 45 | # > Cellular: 在WiFi和蜂窝数据都开启的情况下指定使用蜂窝网络 46 | # > Performace: 在WiFi和蜂窝数据都开启的情况下使用最优的网络接口 47 | # > Balance: 在WiFi和蜂窝数据都开启的情况下,均衡使用网络接口 48 | interface-mode = auto 49 | # 禁用udp协议的一些端口 50 | disable-udp-ports = 443,80 51 | # 禁用stun是否禁用stun协议的udp数据,禁用后可以有效解决webrtc的ip泄露 52 | disable-stun = true 53 | # GeoIP 数据库 54 | geoip-url = https://github.com/Masaiki/GeoIP2-CN/raw/release/Country.mmdb 55 | # 3.2.0+ build(702) 56 | # 当UDP的流量规则匹配到相关节点,但该节点不支持UDP或未未开启UDP转发时使用的策略,可选DIRECT、REJECT 57 | udp-fallback-mode = DIRECT 58 | 59 | [Host] 60 | 61 | [Proxy] 62 | 63 | [Remote Proxy] 64 | # 远程节点订阅 65 | # >Sub-Store订阅,多机场用户可以通过Sub-Store管理所有机场订阅 66 | # 下载配置文件后请自行把https://sub.store/download/collection/MySub替换为你自己的机场订阅链接或Sub-Store订阅链接 67 | MyProxy = https://sub.store/download/collection/MySub,parser-enabled = true,udp=false,fast-open=false,vmess-aead=true,skip-cert-verify=default,enabled=true,flexible-sni=true,img-url=flame.fill 68 | 69 | [Remote Filter] 70 | # 远程节点订阅正则筛选 71 | 美国 = NameRegex, FilterKey = "(?i)(美|美国|美|波特兰|达拉斯|俄勒冈|凤凰城|费利蒙|硅谷|拉斯维加斯|洛杉矶|圣何塞|圣克拉拉|西雅图|芝加哥|🇺🇸|US)" 72 | 香港 = NameRegex, FilterKey = "(?i)(香港|港|hong|HK|HKG|🇭🇰)" 73 | 日本 = NameRegex, FilterKey = "(?i)(日本|东京|大阪|泉日|埼玉|沪日|深日|🇯🇵|JP|Japan)" 74 | 台湾 = NameRegex, FilterKey = "(?i)(台|台湾|TW|Taiwan)" 75 | 新加坡 = NameRegex, FilterKey = "(?i)(狮城|新加坡|🇸🇬|SG|Singapore)" 76 | 77 | [Proxy Group] 78 | ## 策略组 79 | ## 将分流规则传递过来的网络请求进行分发 80 | # 可供手动选择的所有节点 81 | Proxy = select,MyProxy,url = http://cp.cloudflare.com/generate_204,img-url = https://raw.githubusercontent.com/erdongchanyo/icon/main/Policy-Filter/Proxy.png 82 | # 自动选择最优节点-HK 83 | Auto-HK = url-test,香港,url = http://www.gstatic.com/generate_204,interval = 600,img-url = https://raw.githubusercontent.com/erdongchanyo/icon/main/Policy-Filter/Auto.png 84 | # 服务器按地区分组策略 85 | # > 美国 86 | US = select,美国,url = http://cp.cloudflare.com/generate_204,img-url = https://raw.githubusercontent.com/erdongchanyo/icon/main/Policy-Country/US.png 87 | # > 香港 88 | HK = select,香港,url = http://cp.cloudflare.com/generate_204,img-url = https://raw.githubusercontent.com/erdongchanyo/icon/main/Policy-Country/HK02.png 89 | # > 日本 90 | JP = select,日本,url = http://cp.cloudflare.com/generate_204,img-url = https://raw.githubusercontent.com/erdongchanyo/icon/main/Policy-Country/JP.png 91 | # > 台湾 92 | TW = select,台湾,url = http://cp.cloudflare.com/generate_204,img-url = https://raw.githubusercontent.com/erdongchanyo/icon/main/Policy-Country/TW.png 93 | # > 新加坡 94 | SG = select,新加坡,url = http://cp.cloudflare.com/generate_204,img-url = https://raw.githubusercontent.com/erdongchanyo/icon/main/Policy-Country/SG.png 95 | # OutSide策略 96 | OutSide = select,US,,HK,JP,TW,SG,FINAL,DIRECT,url = http://cp.cloudflare.com/generate_204,img-url = https://raw.githubusercontent.com/erdongchanyo/icon/main/Policy-Filter/Outside.png 97 | # GlobalMedia策略 98 | GlobalMedia = select,US,,HK,JP,TW,SG,FINAL,DIRECT,url = http://cp.cloudflare.com/generate_204,img-url = https://raw.githubusercontent.com/erdongchanyo/icon/main/Policy-Filter/GMedia.png 99 | # 国外媒体细分策略 100 | # > YouTube策略 101 | YouTube = select,US,HK,JP,TW,SG,FINAL,DIRECT,url = http://cp.cloudflare.com/generate_204,img-url = https://raw.githubusercontent.com/erdongchanyo/icon/main/Policy-Filter/Youtube.png 102 | # > Spotify策略 103 | Spotify = select,US,HK,JP,TW,SG,FINAL,DIRECT,url = http://cp.cloudflare.com/generate_204,img-url = https://raw.githubusercontent.com/erdongchanyo/icon/main/Policy-Filter/Spotify.png 104 | # 国内媒体细分策略 105 | # > BiliBili策略 106 | Bilibili = select,HK,TW,DIRECT,url = http://cp.cloudflare.com/generate_204,img-url = https://raw.githubusercontent.com/erdongchanyo/icon/main/Policy-Filter/Bilibili.png 107 | # 软件&服务策略 108 | # > Telegram策略 109 | Telegram = select,US,HK,JP,TW,SG,FINAL,DIRECT,url = http://cp.cloudflare.com/generate_204,img-url = https://raw.githubusercontent.com/erdongchanyo/icon/main/Policy-Filter/Telegram.png 110 | # > OpenAI 111 | OpenAI = select,US,HK,JP,TW,SG,FINAL,DIRECT,url = http://cp.cloudflare.com/generate_204,img-url = https://raw.githubusercontent.com/erdongchanyo/icon/main/Policy-Filter/OpenAI.png 112 | # Mainland策略-国内访问 113 | Mainland = select,US,HK,JP,TW,SG,FINAL,DIRECT,url = http://cp.cloudflare.com/generate_204,img-url = https://raw.githubusercontent.com/erdongchanyo/icon/main/Policy-Filter/Mainland.png 114 | # Advertising策略-去广告 115 | Advertising = select,DIRECT,REJECT,url = http://cp.cloudflare.com/generate_204,img-url = https://raw.githubusercontent.com/erdongchanyo/icon/main/Policy-Filter/AdBlock.png 116 | # FINAL策略:如果以上的策略均未被匹配到,则听从此策略组的规定 117 | FINAL = select,Auto-HK,Proxy,DIRECT,url = http://cp.cloudflare.com/generate_204,img-url = https://raw.githubusercontent.com/erdongchanyo/icon/main/Policy-Filter/Final01.png 118 | 119 | [Remote Rule] 120 | ## 远程分流规则订阅 121 | ## 将网络请求进行分流,网络请求的走向(是否能成功访问)由匹配到的策略组决定 122 | # OutSide规则 123 | https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Loon/OutSide/OutSide.list, policy=OutSide, tag=OutSide规则, enabled=true 124 | # GlobalMedia规则 125 | https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Loon/GlobalMedia/GlobalMedia.list, policy=GlobalMedia, tag=GlobalMedia规则, enabled=true 126 | # YouTube规则 127 | https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Loon/YouTube/YouTube.list, policy=YouTube, tag=YouTube规则, enabled=true 128 | # Spotify规则 129 | https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Loon/Spotify/Spotify.list, policy=Spotify, tag=Spotify规则, enabled=true 130 | # BiliBili规则 131 | https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Loon/BiliBili/BiliBili.list, policy=BiliBili, tag=BiliBili规则, enabled=true 132 | # Telegram规则 133 | https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Loon/Telegram/Telegram.list, policy=Telegram, tag=Telegram规则, enabled=true 134 | # OpenAI规则 135 | https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Loon/OpenAI/OpenAI.list, policy=YouTube, tag=OpenAI规则, enabled=true 136 | # Mainland规则 137 | https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Loon/China/China.list, policy=Mainland, tag=Mainland规则, enabled=true 138 | # Advertising规则 139 | https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Loon/Advertising/Advertising.list, policy=Advertising, tag=Advertising规则, enabled=true 140 | 141 | [Rule] 142 | # 本地分流规则:相同规则下本地规则优先生效 143 | DOMAIN-SUFFIX,local,DIRECT 144 | GEOIP,CN,DIRECT 145 | FINAL,FINAL 146 | 147 | [Remote Rewrite] 148 | 149 | [Rewrite] 150 | 151 | [Remote Script] 152 | 153 | [Script] 154 | generic script-path=https://raw.githubusercontent.com/Loon0x00/LoonScript/main/MediaCheck/check.js, timeout=300, tag=流媒体-解锁查询, img-url=https://raw.githubusercontent.com/erdongchanyo/icon/main/Policy-Filter/GMedia.png 155 | 156 | [Plugin] 157 | https://raw.githubusercontent.com/erdongchanyo/Rules/refs/heads/main/Loon/EDCstore.plugin, enabled=true 158 | https://github.com/VirgilClyne/iRingo/raw/main/plugin/Siri.plugin, enabled=true 159 | https://github.com/VirgilClyne/iRingo/raw/main/plugin/Location.plugin, enabled=true 160 | https://gitlab.com/lodepuly/vpn_tool/-/raw/master/Tool/Loon/Plugin/Bilibili_remove_ads.plugin, tag=哔哩去广告, enabled=true 161 | https://gitlab.com/lodepuly/vpn_tool/-/raw/master/Tool/Loon/Plugin/Zhihu_remove_ads.plugin, tag=知乎去广告, enabled=true 162 | https://gitlab.com/lodepuly/vpn_tool/-/raw/master/Tool/Loon/Plugin/BlockAdvertisers.plugin, enabled=true 163 | https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rewrite/Loon/Advertising/Advertising.plugin, policy=REJECT, tag=Advertising (blackmatrix7, enabled=true 164 | https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rewrite/Loon/Redirect/Redirect.plugin, tag=Redirect (blackmatrix7, enabled=true 165 | https://gitlab.com/lodepuly/vpn_tool/-/raw/master/Tool/Loon/Plugin/Node_detection_tool.plugin, enabled=true 166 | https://raw.githubusercontent.com/chavyleung/scripts/master/box/rewrite/boxjs.rewrite.loon.plugin, policy=Auto-HK, enabled=true 167 | https://raw.githubusercontent.com/Peng-YM/Sub-Store/master/config/Loon.plugin, policy=Auto-HK, tag=Sub-Store, enabled=true 168 | 169 | [MITM] 170 | hostname = 171 | ca-p12 = 172 | ca-passphrase = 173 | enable = false 174 | skip-server-cert-verify = true 175 | -------------------------------------------------------------------------------- /Quantumult X/LazyConf/QuantumultX_EDC-Lazy.conf: -------------------------------------------------------------------------------- 1 | # ErdongChan-LazyConf 2 | # Update:2025.1 3 | # ------------------ 4 | # YouTube:www.youtube.com/@erdongchan 5 | # Telegram:t.me/erdongchan 6 | # ------------------ 7 | 8 | [general] 9 | # 代理延迟测速,以确认节点的可用性 10 | server_check_url=http://cp.cloudflare.com/generate_204 11 | # 资源解析器 12 | resource_parser_url= https://raw.githubusercontent.com/KOP-XIAO/QuantumultX/master/Scripts/resource-parser.js 13 | # geo_location_checker 14 | # 节点地理位置检查 15 | geo_location_checker=http://ip-api.com/json/?lang=zh-CN, https://raw.githubusercontent.com/I-am-R-E/Functional-Store-Hub/Master/GeoLocationChecker/QuantumultX/IP-API.js 16 | # geo_location_checker=http://ip-api.com/json/?lang=zh-CN, https://github.com/KOP-XIAO/QuantumultX/raw/master/Scripts/IP_API.js 17 | # dns_exclusion_list 18 | # DNS排除列表 19 | dns_exclusion_list = *.localnetwork.uop, *.qq.com, qq.com 20 | # 排除路线:包含的内容将不经过 QuantumultX 处理 21 | excluded_routes=192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12, 100.64.0.0/10, 17.0.0.0/8 22 | icmp_auto_reply=true 23 | [http_backend] 24 | https://raw.githubusercontent.com/crossutility/Quantumult-X/master/backend-icloud-to-http.js, tag=TV Profile, path=^/icloud-profile/ 25 | 26 | [dns] 27 | no-ipv6 28 | # DoH服务器(DNS over HTTPS)以加密的HTTPS协议进行DNS解析请求,避免原始DNS协议中用户的DNS解析请求被窃听或者修改的问题(例如中间人攻击)来达到保护用户隐私的目的 29 | # 设置DoH服务器后,所有其他常规DNS服务器设置将被忽略;当设置了多个DoH服务器时,只会使用第一个;当使用的 DoH服务器不是基于HTTP/2时,DoH将被暂时禁用。 30 | # 阿里 DoH 31 | doh-server=https://dns.alidns.com/dns-query 32 | # 同时使用多个DoH服务器(Tf功能 33 | # 阿里,DNS.SB,阿里,红鱼,IIJ 34 | # doh-server=https://dns.alidns.com/dns-query, https://doh.dns.sb/dns-query, https://dns.alidns.com/dns-query, https://rubyfish.cn/dns-query, https://public.dns.iij.jp/dns-query 35 | # 自定义DNS服务器 36 | # 腾讯云DNSPod DNS 37 | server=119.29.29.29 38 | server=119.28.28.28 39 | # 阿里 AliDNS 40 | server=223.5.5.5 41 | # 114 DNS 42 | server=114.114.114.114 43 | # 制定域名解析 dns 44 | server=/*.taobao.com/223.5.5.5 45 | server=/*.tmall.com/223.5.5.5 46 | server=/*.alipay.com/223.5.5.5 47 | server=/*.aliyun.com/223.5.5.5 48 | server=/*.jd.com/119.28.28.28 49 | server=/*.qq.com/119.28.28.28 50 | server=/*.tencent.com/119.28.28.28 51 | server=/*.weixin.com/119.28.28.28 52 | server=/*.bilibili.com/119.29.29.29 53 | server=/*.netease.com/119.29.29.29 54 | server=/*testflight.apple.com/23.76.66.98 55 | 56 | [policy] 57 | ## 策略组 58 | ## 将分流规则传递过来的网络请求进行分发 59 | # 自动选择最优节点-HK 60 | url-latency-benchmark=Auto-HK, server-tag-regex=(?i)(香港|港|hong|HK|HKG|🇭🇰), check-interval=600, tolerance=0, alive-checking=false, img-url=https://raw.githubusercontent.com/erdongchanyo/icon/main/Policy-Filter/Auto.png 61 | # 服务器按地区分组策略 62 | # 美国 63 | static=US, server-tag-regex=(?i)(美|美国|美|波特兰|达拉斯|俄勒冈|凤凰城|费利蒙|硅谷|拉斯维加斯|洛杉矶|圣何塞|圣克拉拉|西雅图|芝加哥|🇺🇸|US), img-url=https://raw.githubusercontent.com/erdongchanyo/icon/main/Policy-Country/US.png 64 | # 香港 65 | static=HK, server-tag-regex=(?i)(香港|港|hong|HK|HKG|🇭🇰), img-url=https://raw.githubusercontent.com/erdongchanyo/icon/main/Policy-Country/HK02.png 66 | # 日本 67 | static=JP, server-tag-regex=(?i)(日本|东京|大阪|泉日|埼玉|沪日|深日|🇯🇵|JP|Japan), img-url=https://raw.githubusercontent.com/erdongchanyo/icon/main/Policy-Country/JP.png 68 | # 台湾 69 | static=TW, server-tag-regex=(?i)(台|台湾|TW|Taiwan), img-url=https://raw.githubusercontent.com/erdongchanyo/icon/main/Policy-Country/TW.png 70 | # 新加坡 71 | static=SG, server-tag-regex=(?i)(狮城|新加坡|🇸🇬|SG|Singapore), img-url=https://raw.githubusercontent.com/erdongchanyo/icon/main/Policy-Country/SG.png 72 | # OutSide策略 73 | static=OutSide, US, HK, JP, TW, SG, Final, direct, img-url=https://raw.githubusercontent.com/erdongchanyo/icon/main/Policy-Filter/Proxy.png 74 | # GlobalMedia策略 75 | static=GlobalMedia, US, HK, JP, TW, SG, Final, direct, img-url=https://raw.githubusercontent.com/erdongchanyo/icon/main/Policy-Filter/GMedia.png 76 | # 国外媒体细分策略 77 | # > Youtibe策略 78 | static=YouTube, US, HK, JP, TW, SG, Final, direct, img-url=https://raw.githubusercontent.com/erdongchanyo/icon/main/Policy-Filter/Youtube.png 79 | # > Spotify策略 80 | static=Spotify, US, HK, JP, TW, SG, Final, direct, img-url=https://raw.githubusercontent.com/erdongchanyo/icon/main/Policy-Filter/Spotify.png 81 | # 国内媒体细分策略 82 | # > BiliBili策略 83 | static=BiliBili, HK, TW, direct, img-url=https://raw.githubusercontent.com/erdongchanyo/icon/main/Policy-Filter/Bilibili.png 84 | # 软件&服务策略 85 | # > Telegram策略 86 | static=Telegram, US, HK, JP, TW, SG, Final, direct, img-url=https://raw.githubusercontent.com/erdongchanyo/icon/main/Policy-Filter/Telegram.png 87 | # > OpenAI策略 88 | static=OpenAI, US, HK, JP, TW, SG, Final, direct, img-url=https://raw.githubusercontent.com/erdongchanyo/icon/main/Policy-Filter/OpenAI.png 89 | # # Mainland策略-国内访问 90 | static=Mainland, Final, direct, img-url=https://raw.githubusercontent.com/erdongchanyo/icon/main/Policy-Filter/Mainland.png 91 | # Advertising策略-去广告 92 | static=Advertising, direct, reject, img-url=https://raw.githubusercontent.com/erdongchanyo/icon/main/Policy-Filter/AdBlock.png 93 | # FINAL策略:如果以上的策略均未被匹配到,则听从此策略组的规定 94 | static=Final, Auto-HK, US, HK, JP, TW, SG, proxy, direct, img-url=https://raw.githubusercontent.com/erdongchanyo/icon/main/Policy-Filter/Final01.png 95 | 96 | [filter_remote] 97 | ## 远程分流规则订阅 98 | ## 将网络请求进行分流,网络请求的走向(是否能成功访问)由匹配到的策略组决定 99 | # 部分规则有先后顺序要求,调整顺序可能失效 100 | # Spotify规则 101 | https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/QuantumultX/Spotify/Spotify.list, tag=Spotify 规则, force-policy=Spotify, update-interval=86400, opt-parser=false, enabled=true 102 | # YouTube规则 103 | https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/QuantumultX//YouTube/YouTube.list, tag=YouTube 规则, force-policy=YouTube, update-interval=86400, opt-parser=false, enabled=true 104 | # GlobalMedia规则 105 | https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/QuantumultX/GlobalMedia/GlobalMedia.list, tag=GlobalMedia 规则, force-policy=GlobalMedia, update-interval=86400, opt-parser=false, enabled=true 106 | # Telegram规则 107 | https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/QuantumultX/Telegram/Telegram.list, tag=Telegram 规则, force-policy=Telegram, update-interval=86400, opt-parser=false, enabled=true 108 | # OpenAI规则 109 | https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/QuantumultX/OpenAI/OpenAI.list, tag=OpenAI 规则, force-policy=OpenAI, update-interval=86400, opt-parser=false, enabled=true 110 | # OutSide规则 111 | https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/release/rule/QuantumultX/Global/Global.list, tag=OutSide 规则, force-policy=OutSide, update-interval=86400, opt-parser=false, enabled=true 112 | # BiliBili规则 113 | https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/QuantumultX/BiliBili/BiliBili.list, tag=Bilibili, force-policy=BiliBili, update-interval=172800, opt-parser=false, enabled=true 114 | # Advertising规则 115 | https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/QuantumultX/Advertising/Advertising.list, tag=Advertising 规则, force-policy=Advertising, update-interval=86400, opt-parser=true, enabled=true 116 | # Mainland规则 117 | https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/QuantumultX/China/China.list, tag=Mainland 规则, force-policy=Mainland, update-interval=86400, opt-parser=false, enabled=true 118 | 119 | [filter_local] 120 | # 本地分流规则:相同规则下本地规则优先生效 121 | # EDC Website 122 | host-suffix, erdon.cc, Final 123 | host-suffix, erdongchan.cn, Final 124 | # openai 125 | host-suffix, openai.com, US 126 | # 绿联 127 | host-keyword, ugreen, direct 128 | host-keyword, ugreengroup, direct 129 | # 快手本地分流 130 | host-suffix, adkwai.com, direct 131 | host-suffix, kuaishou.com, direct 132 | host-suffix, kskwai.com, direct 133 | # 抖音本地分流 134 | host-suffix, snssdk.com, direct 135 | host-suffix, amemv.com, direct 136 | # 其它 137 | host-suffix, local, direct 138 | geoip, cn, Mainland 139 | final, Final 140 | 141 | [server_local] 142 | # 本地服务器节点 143 | 144 | [server_remote] 145 | # 服务器引用(订阅),支持远程订阅地址和本地文件 146 | 147 | [rewrite_remote] 148 | # 远程重写订阅 149 | # 包含主机名 hostname 以及复写 rewrite 规则 150 | # update-interval 为更新时间参数,单位:秒, 默认更新时间为:24*60*60=86400 秒,也就是24小时 151 | # opt-parser=true/false 用于控制是否对订阅开启资源解析器,不写或者 false 表示不启用解析器 152 | https://github.com/DualSubs/YouTube/releases/latest/download/DualSubs.YouTube.snippet, tag=DualSubs-YouTube, update-interval=172800, opt-parser=false, enabled=true 153 | https://github.com/DualSubs/Universal/releases/latest/download/DualSubs.Universal.snippet, tag=DualSubs-Universal, update-interval=172800, opt-parser=false, enabled=true 154 | https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/release/rewrite/QuantumultX/Advertising/Advertising.conf, tag=Advertising(blackmatrix7, update-interval=86400, opt-parser=false, enabled=true 155 | https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rewrite/QuantumultX/Redirect/Redirect.conf, tag=Redirect(blackmatrix7, update-interval=172800, opt-parser=false, enabled=true 156 | https://raw.githubusercontent.com/sub-store-org/Sub-Store/master/config/QX.snippet, tag=Sub-Store, update-interval=172800, opt-parser=true, enabled=true 157 | https://github.com/chavyleung/scripts/raw/master/box/rewrite/boxjs.rewrite.quanx.conf, tag=boxjs, update-interval=172800, opt-parser=false, enabled=true 158 | 159 | [rewrite_local] 160 | # 本地重写 161 | 162 | [task_local] 163 | 55 23 * * * https://github.com/sub-store-org/Sub-Store/releases/latest/download/cron-sync-artifacts.min.js, tag=Sub-Store Sync, img-url=https://raw.githubusercontent.com/58xinian/icon/master/Sub-Store1.png, enabled=true 164 | event-interaction https://raw.githubusercontent.com/KOP-XIAO/QuantumultX/master/Scripts/geo_location.js, tag=GeoIP查询, img-url=location.fill.viewfinder.system 165 | event-interaction https://raw.githubusercontent.com/KOP-XIAO/QuantumultX/master/Scripts/streaming-ui-check.js, tag=流媒体解锁检测, img-url=https://raw.githubusercontent.com/erdongchanyo/icon/main/Policy-Filter/GMedia.png, enabled=true 166 | 167 | [mitm] 168 | # 开启 mitm,需要自行在Quantumult X中生成证书、安装、信任 169 | passphrase = 170 | p12 = 171 | force_sni_domain_name = false 172 | hostname = sub.store 173 | -------------------------------------------------------------------------------- /Quantumult X/LazyConf/Readme.md: -------------------------------------------------------------------------------- 1 | ## 一、EDC-LzayConf 配置说明 2 | 3 | ### Quantumult X 简单使用说明 4 | > 包含较完整的策略组及分流规则、远程重写,基本满足各种软件分流需求 5 | #### 配置文件下载地址 6 | 下载链接:[点击下载(2022-5-10 更新)](https://raw.githubusercontent.com/erdongchanyo/Rules/main/Quantumult%20X/LazyConf/QuantumultX_EDC-Lazy.conf) 7 | 8 | #### 1.下载配置文件后先导入并更新您自有的 Airport 订阅链接 9 | #### 2.长按界面右下角`小风车`图标进入设置,开启`重写`以及`MitM` 10 | > - 提示未安装证书:点击`生成证书` 11 | > - 点击`配置证书` - 选择`确定`跳转至浏览器下载证书 - 点击`允许`进行下载 12 | > - iPhone设置 - 通用 - VPN与设备管理 - 点击已下载的描述文件`Quantumult X CA ...`进行安装 13 | > - iPhone设置 - 通用 - 关于本机 - 证书信任设置 - 打开`Quantumult X CA ...`证书信任开关 14 | 15 | **[更多Airport、合租、VPS推荐](https://tgaro.top/)** 16 | 17 | ### a. 策略组及对应分流规则 18 | > **自动选择最优节点策略(香港)** 19 | 20 | 21 | > **服务器按国家(地区)分组策略** 22 | > - 美国服务器策略组 23 | > - 香港服务器策略组 24 | > - 日本服务器策略组 25 | > - 台湾服务器策略组 26 | > - 新加坡服务器策略组 27 | 28 | 29 | > **国外策略(Global)** 30 | 31 | 32 | > **媒体策略(GlobalMedia)** 33 | > - 媒体细分策略(Neiflix、Disney+、HBO、YouTube、Spotify、TikTok、Bilibili 34 | > - 软件细分策略(Telegram、Cloubhouse、Twitter、Speedtest、PayPal、Testflight、Apple、Google、Microsoft、Weibo 35 | 36 | 37 | > **国内策略(Mainland)** - 无特殊需求请选择 DIRECT 策略 38 | 39 | 40 | > **广告策略(Advertising)** - 默认拒绝链接 RECJECT 41 | 42 | 43 | > **最终策略(Final)** 44 | 45 | ### b. 远程重写 46 | > E**DC-AllinOneRewrite** 47 | > - 彩云天气SVIP解锁(By Tartarus,需开启QuanX资源解析器 48 | > - Testflight下载修正 49 | > - Spotify Premuim解锁(By app2smile 50 | > - BiliBili去广告 51 | > - 知乎去广告+优化 52 | 53 | 54 | > **EDC-CookieGetRewrite** 55 | > - 获取京东Cookie(By NobyDA) 56 | > - 获取爱奇艺Cookie(By NobyDA) 57 | > - 获取Luka APP Cookie(blackmatrix7收集) - 一个宝宝听故事的APP 58 | 59 | 60 | > **TikTok Unlock(blackmatrix7** 61 | > - 仅支持TikTok 21.1.0及以下版本 62 | 63 | 64 | > **Advertising(blackmatrix7** 65 | > - 复写去广告 66 | 67 | 68 | > **Redirect(blackmatrix7** 69 | > - 重定向 70 | 71 | 72 | > **Dualsub(Neurogram-R** 73 | > - 流媒体字幕翻译(需配合iOS快捷指令) 74 | > - 参见教程: 75 | > 1. Youtube: https://youtu.be/8uJUy7AevS0 76 | > 2. BiliBili: https://www.bilibili.com/video/BV1NS4y1a7ai 77 | 78 | 79 | > ** iRingo for Apple Weather**(需配合BoxJS脚本设置) 80 | > 1. 解锁全部天气数据类型 81 | > 2. 替换空气质量数据,数据源为World Air Quality Index Project,采用美国AQI标准的数据。 82 | > 3. 添加下一小时降水,数据源为气象在线 83 | > 4. 替换空气质量地图数据,数据源为World Air Quality Index Project,采用美国AQI标准的数据。 84 | 85 | 86 | > ** iRingo for Location Services** (需配合BoxJS脚本设置) 87 | > 1. 启用后即可强制「定位服务」通过基于网络的地区检测始终为特定地区。 88 | > 2. 协助激活「Apple News」 89 | > 3. 协助激活「来自APPLE的内容\来自APPLE的建议\Siri建议」 90 | > 4. 激活指南针的海拔经纬度功能。 91 | > 5. 询问Siri切换为国际版(维基百科) 92 | 93 | 94 | > ** iRingo for Siri & Search** (需配合BoxJS脚本设置) 95 | > - 启用后即可正常使用「来自APPLE的内容\来自APPLE的建议\Siri建议」 96 | 97 | 98 | > **BoxJS** 99 | > - 访问:http://boxjs.com 100 | 101 | 102 | > **Sub-Store** 103 | > - 高级订阅管理工具,访问:https://sub-store.vercel.app 104 | > - Quantumult X 配置在「rewrite_local」模块 105 | 106 | ### c.脚本任务 107 | > - **GeoIP查询** 108 | > - **流媒体解锁检测** 109 | > - **京东多合一签到(By NobyDA** 110 | > - **京豆变动通知** 111 | > - **爱奇艺会员签到(By NobyDA** 112 | > - **Luca阅读养成每日签到** 113 | 114 | ## 二、EDC Quantumult X图标Gallery 115 | 使用方法:Quantumult X主页面 > 长按 节点/策略 > 图标 > 点击右上角“+”,输入json链接 116 | 117 | ### a. 国家/地区图标Gallery 118 | [右键复制json链接](https://raw.githubusercontent.com/erdongchanyo/icon/main/edc-country-icon-gallery.json) 119 | 120 | ### b. 策略图标Gallery 121 | [右键复制json链接](https://raw.githubusercontent.com/erdongchanyo/icon/main/edc-filter-icon-gallery.json) 122 | 123 | ### c. 机场图标Gallery(目前为自用机场,接受投稿) 124 | [右键复制json链接](https://raw.githubusercontent.com/erdongchanyo/icon/main/edc-airport-icon-gallery.json) 125 | -------------------------------------------------------------------------------- /Quantumult X/README.md: -------------------------------------------------------------------------------- 1 | # Quantumult X 小白系列教程 2 | 3 | 4 | 5 | **最开始使用shadowrocket,一开一关超简单,后来7.99美元入手了Quantumult X,发现不知道怎么下手** 6 | 7 | **感谢各位大佬无私分享的关于 Quantumult X 的各种教程,让我慢慢上手 Quantumult X , 7.99美元也已经回本;** 8 | 9 | **决定在各位大佬的各种教程/脚本的基础上,试着根据自己的理解,写一个能让像我一样的小白能很容易看懂的教程。** 10 | 11 | 感谢教程提供(不分先后): 12 | 13 | [Shawn](https://www.notion.so/Quantumult-X-1d32ddc6e61c4892ad2ec5ea47f00917)、[Sabrina](https://merlinblog.xyz/)、[毒奶](https://limbopro.xyz/) 14 | 15 | 感谢规则、脚本等提供(不分先后): 16 | 17 | [DivineEngine](https://github.com/DivineEngine)、 [GeQ1an](https://github.com/GeQ1an)、[NobyDa](https://github.com/NobyDa)、[lhie1](https://github.com/lhie1)、[chavyleung](https://github.com/chavyleung)、[lxk0301](https://github.com/lxk0301)、[yichahucha](https://github.com/yichahucha)、[Sunert(Flydreams)](https://github.com/Sunert/Scripts) 18 | 19 | 感谢icon资源提供(不分先后): 20 | 21 | [Koolson](https://github.com/Koolson)、[Orz-3](https://github.com/Orz-3) 22 | 23 | --- 24 | 25 | YouTube频道:https://bit.ly/3bshXk6 26 | 27 | B站频道:https://bit.ly/3kctp7S 28 | 29 | telegram群:https://t.me/erdongchan 30 | 31 | 教程免费分享,欢迎转载 (需注明出处) 32 | 33 | 如果你愿意,可以打赏支持! 34 | 35 | 赞赏码 36 | 37 | --- 38 | 39 | ## 一、Quantumult X小白系列教程|导入订阅链接、添加自己搭建的节点,开始使用 40 | 41 | ❗️**`视频教程地址:`**https://youtu.be/Ub9RN-7Q94s 42 | 43 | ### 1. 关于节点 44 | 45 | - 导入 `自己搭建的节点` 或者 `节点(机场)订阅链接` 46 | - 支持协议:ss / ssr / trojan / vmess / http(s) 47 | - 配置文件中对应的模块:**`[server local]` / `[server remote]`** 48 | 49 | ### 2. 首先,给你的Quantumult X增加一个小工具:资源解析器 50 | 51 | `适用于 Quantumult X (v1.0.8-build253) 版本后` 52 | 53 | > - 🤔**有啥用?** 54 | > 55 | > > 使用 `资源解析器` 后,可以将 Quantumult X 原本不识别的 节点或订阅链接 轻松的导入 56 | > 57 | > - 🤔**有啥优点?** 58 | > 59 | > > 可以通过修改`本地节点配置片段` 来管理服务器 60 | > > 61 | > > 本地解析,服务器无暴露风险 62 | > > 63 | > > 支持中文参数(空格除外) 64 | > 65 | > - 🤔**如何添加`资源解析器`** 66 | > 67 | > 在Quantumult X 配置文件中 `[general]` 部分,加入 68 | > 69 | > ``` 70 | > resource_parser_url=https://raw.githubusercontent.com/KOP-XIAO/QuantumultX/master/Scripts/resource-parser.js 71 | > ``` 72 | 73 | ### 3. 添加节点和订阅链接 74 | 75 | #### a. 通过Quantumult X UI界面 (用户界面) 进行添加节点 76 | 77 | > `设置` > `节点` 78 | 79 | ##### a.1 通过 `添加` / `SS URI` / `扫码` 添加节点 80 | 81 | > ⚠️ 一次只能添加一个节点 82 | > 83 | > 添加后,节点信息将出现在配置文件的 `[server_local]` 部分 84 | > 85 | > - `添加`:只支持 ss协议 86 | > 87 | > - `SS URI`:支持 ss / ssr 以及 `Quantumult X 格式`的 trojan / vmess / http(s) 节点信息 88 | > 89 | > 以添加 trojan 节点为例: 90 | > 91 | > ``` 92 | > trojan=example.com:443, password=pwd, over-tls=true, tls-verification=false, fast-open=false, udp-relay=false, tag=节点名称 93 | > ``` 94 | > 95 | > - `扫码`:支持 ss / ssr 以及 `Quantumult X 格式的` trojan / vmess /http(s) 节点二维码 96 | 97 | ##### a.2 通过 `引用(订阅)` 添加节点 98 | 99 | > ⚠️ 默认支持 ss / ssr 订阅链接,后续不对 ss / ssr 订阅链接做演示 100 | > 101 | > 订阅后,订阅信息会出现在配置文件的 `[server_remote]` 部分 102 | > 103 | > - 通过 `iCloud` / `本地(我的iPhone)` 下的 `节点配置片段` 导入个人节点 104 | > 105 | > > - 新建节点配置片段: 106 | > > 107 | > > `设置` > `配置文件` > `新建配置片段` > 选择 `节点` 108 | > > 109 | > > - 编辑节点配置片段: 110 | > > 111 | > > 文本框中填写节点信息 112 | > > 113 | > > > - 以 `trojan` 节点为例 114 | > > > 115 | > > > Quantumult X 可识别格式 116 | > > > 117 | > > > ``` 118 | > > > trojan=example.com:443, password=pwd, over-tls=true, tls-verification=false, fast-open=false, udp-relay=false, tag=节点名称 119 | > > > ``` 120 | > > > 121 | > > > Quantumult X 不识别的格式 122 | > > > 123 | > > > ``` 124 | > > > trojan://password@example1.com:443?allowInsecure=1#节点名称 125 | > > > ``` 126 | > > 127 | > > - 保存节点配置片段: 128 | > > 129 | > > 右上角 `保存` > `输入文件名`文件名可以包含中文(空格除外) > `好` 130 | > > 131 | > > > 关闭` iCloud资源文件夹` 132 | > > > 133 | > > > 节点配置片段保存至 `本地` 路径下的 `我的iPhone/Quantumult X/Profiles/` 134 | > > 135 | > > > 打开` iCloud资源文件夹` 136 | > > > 137 | > > > 节点配置片段保存至 `iCloud` 路径下的 `iCloud/Quantumult X/Profiles/` 138 | > > 139 | > > - 导入节点配置片段: 140 | > > 141 | > > 如果配置文件中节点信息不是 Quantumult X 格式,需要打开资源解析器 142 | > > 143 | > > `设置` > `节点` > `引用(订阅)` > 右上角`添加` > 地址栏中输入保存的`文件名` > `确定` 144 | > > 145 | > > ⚠️ 开启iCloud资源文件夹后,默认使用`iCloud`路径下的文件,`我的iPhone`路径不被读取 146 | > 147 | > - 通过 `订阅链接` 导入节点 148 | > 149 | > > - Quantumult X 格式的订阅链接 150 | > > 151 | > > 链接示例: 152 | > > 153 | > > ``` 154 | > > https://hxlm.cc/api/v1/client/subscribe?token=example 155 | > > ``` 156 | > > 157 | > > - Quantumult X 无法识别的订阅链接 158 | > > 159 | > > 可打开 `资源解析器` 进行导入; 160 | > > 161 | > > 也可使用 `在线API订阅转换器` 转换后导入 162 | > > 163 | > > > 在线 API 订阅转换器:https://dove.589669.xyz/web 164 | > > > 165 | > > > 输出类型请选择 `节点订阅` 166 | 167 | #### b. 通过手动修改配置文件进行添加节点 168 | 169 | > `设置` > `配置文件` > `编辑` 170 | > 171 | > 编辑配置文件 `[server_local]` 部分 172 | > 173 | > - **SS/SSR 节点写法** 174 | > 175 | > 略 176 | > 177 | > - **trojan 节点写法** 178 | > 179 | > ``` 180 | > trojan=example.com:443, password=pwd, over-tls=true, tls-verification=false, fast-open=false, udp-relay=false, tag=节点名称 181 | > ``` 182 | > 183 | > - **v2ray(vmess) 节点写法** 184 | > 185 | > ``` 186 | > vmess=example.com:443, method=chacha20-ietf-poly1305, password=pwd, obfs-host=example.com, obfs=wss, obfs-uri=/ws, tls-verification=true, fast-open=false, udp-relay=false, tag=节点名称 187 | > ``` 188 | > 189 | > - **http(s)节点写法** 190 | > 191 | > ``` 192 | > http(s)=example.com:443(端口号根据实际端口填写), username=可选, password=可选, fast-open=false, udp-relay=false, tag=节点名称 193 | > ``` 194 | 195 | ### 4. 开始使用 196 | 197 | **我们可以根据使用需求,手动将 Quantumult X 的代理模式切换为 `全部代理`、`全部直连`、`规则分流` 三种模式** ; 198 | 199 | > - `全部代理` 200 | > 201 | > 所有的网络请求都将通过 proxy 下选中的节点进行。 202 | > 203 | > - `全部直连` 204 | > 205 | > 顾名思义,就是所有网络请求将不使用任何代理进行。 206 | > 207 | > - `规则分流` 208 | > 209 | > 根据 **分流规则** 将网络请求进行分流,网络请求的走向(是否能成功访问)由匹配到的 **策略组** 决定; 210 | > 211 | > **策略组** 将 **分流规则** 传递过来的网络请求进行分发。 212 | 213 | 在没有配置`策略组`和`分流规则`之前,建议使用 `全部代理` 模式进行网络访问,下期教程开始介绍策略组和分流规则。 214 | 215 | 216 | 217 | ## 二、Quantumult X小白系列教程|基础使用:认识策略组和分流规则,利用大佬们的策略组和分流规则,实现自动分流,让 Quantumult X 更加智能 218 | 219 | ❗️**`视频教程地址:`**https://youtu.be/wNwpnxmTAJ8 220 | 221 | ### 1. 策略组 222 | 223 | - 策略组 包含 若干节点,也可包含 子策略(组) 224 | - 策略组 服务于 分流规则 225 | - 不同策略组可根据用户个人习惯进行先后排序 226 | - 配置文件中对应的模块:**`[proxy]`** 227 | 228 | #### a. Quantumult X 内置的 4 种策略组 229 | 230 | > **static** / 静态策略组 (常用) 231 | > 232 | > Available / 健康检查策略组 (略) 233 | > 234 | > Robin / 轮询策略 (略) 235 | > 236 | > SSID / 服务集策略 (略) 237 | 238 | #### b. Quantumult X 内置的 3 种策略 239 | 240 | > **Proxy** / 代理 241 | > 242 | > **Direct** / 直连 243 | > 244 | > **Reject** / 拒绝 245 | 246 | #### c. 添加策略组(举例说明) 247 | 248 | > - ``` 249 | > static=GMedia, Outside, proxy, direct, img-url=https://raw.githubusercontent.com/GeQ1an/Rules/master/QuantumultX/IconSet/GMedia.png 250 | > ``` 251 | > 252 | > >static:这是一条 静态策略组 253 | > > 254 | > >=GMedia,:策略组命名为 GMedia 255 | > > 256 | > >Outside, proxy, direct:表示在 GMedia 这条策略组下可以选择用哪些策略(组)或节点 257 | > > 258 | > >img-url=:策略组在Quantumult X首页采用的图标(icon) 259 | > 260 | > 这是一条名称为 GMedia 的、可以选择使用Outside策略(组)、proxy策略、direct策略的策略组 261 | > 262 | > 选中 Outside:将使用 Outside 的策略组中选中的节点进行网络访问 263 | > 264 | > 选中 proxy:将使用 proxy 下选中的节点进行网络访问 265 | > 266 | > 选中 direct:将不使用代理,通过直连的方式进行网络访问 267 | > 268 | > - ``` 269 | > static= US Server, server-tag-regex= 美国|🇺🇸|US, img-url=https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/US.png 270 | > ``` 271 | > 272 | > > static:这是一条 静态策略组 273 | > > 274 | > > = US Server:策略组命名为 US Server 275 | > > 276 | > > server-tag-regex=:根据节点名来筛选节点 277 | > > 278 | > > img-url=:策略组在Quantumult X首页采用的图标(icon) 279 | > 280 | > 这是一条筛选节点的策略组,如果导入的节点名称中有[美国]、[🇺🇸]、[US]其中任意一个,该节点将会出现在该策略组下。 281 | > 282 | > 这个策略组对于有多个机场订阅的用户来说,可以更方便的整理节点。 283 | 284 | 285 | 286 | ### 2. 分流规则 287 | 288 | - 分流规则 是一个list文件 289 | 290 | - 分流规则A 可以被 分流规则B 包含 291 | 292 | - 分流规则 存在先后顺序,靠前规则优先生效,打乱顺序可能导致规则失效 293 | 294 | > 例如:GeQ1an 的 GMedia.list 规则中 已经包含了 Netflix.list / Spotify.list / YouTube.list 295 | > 296 | > 如果你要对 Netflix.list / Spotify.list / YouTube.list 进行重新排序,请确保它们位于 GMedia.list 前面 297 | 298 | - 配置文件中对应的模块:**`[filter_remote]`/`[filter_local]`** 299 | 300 | #### a. 分流规则工作原理 301 | 302 | > list 文件内包含若干如下的域名列表: 303 | > 304 | > ``` 305 | > # > ABC 306 | > HOST-SUFFIX,edgedatg.com,GMedia 307 | > HOST-SUFFIX,go.com,GMedia 308 | > 309 | > # > Abema TV 310 | > USER-AGENT,AbemaTV*,GMedia 311 | > HOST-SUFFIX,abema.io,GMedia 312 | > HOST-SUFFIX,abema.tv,GMedia 313 | > HOST-SUFFIX,akamaized.net,GMedia 314 | > HOST-SUFFIX,ameba.jp,GMedia 315 | > HOST-SUFFIX,hayabusa.io,GMedia 316 | > ``` 317 | > 318 | > 如果发起的**网络访问 命中**了**分流规则**列表中包含的域名,那么**访问请求**将会被**分发至**这条规则指定的**策略组**。访问成功与否取决于策略组 319 | 320 | #### b. 添加分流规则 321 | 322 | ##### b.1 **添加** `[filter_remote]` 远程分流规则订阅 323 | 324 | ###### a. 在软件界面(UI)中直接添加分流规则 325 | 326 | > 一次添加一条 327 | > 328 | > `Quantumult X 设置` > `分流` > `引用` > 右上角 `添加` - 输入资源链接 329 | > 330 | > ``` 331 | > https://raw.githubusercontent.com/GeQ1an/Rules/master/QuantumultX/Filter/GMedia.list 332 | > ``` 333 | 334 | ###### b. 通过修改配置文件添加分流规则 335 | 336 | > 一次可添加多条 337 | > 338 | > `Quantumult X 设置` > `配置文件` > `编辑` > `[filter_romote]` 模块 339 | > 340 | > 格式 341 | > 342 | > ``` 343 | > https://raw.githubusercontent.com/GeQ1an/Rules/master/QuantumultX/Filter/GMedia.list, tag=GMedia 规则, enabled=true 344 | > ``` 345 | > 346 | > tag=:给分流规则命名,建议对应策略命名 347 | > 348 | > enabled=:是否启用该分流规则,true/启用、false/停用 349 | 350 | ##### b.2 **添加** `[filter_local]` 本地分流配置片段 351 | 352 | ###### a. 通过 `iCloud` / `本地(我的iPhone)` 下的 `分流配置片段` 导入分流规则 353 | 354 | > 参考第一期教程: 355 | > 356 | > 1 - 新建 分流配置片段 357 | > 358 | > 2 - 导入 分流配置片段 359 | > 360 | > 反正我是小白,不会自己写分流规则,所以这里,略过 361 | 362 | ###### b. 通过修改配置文件添加 363 | 364 | > `Quantumult X 设置` > `配置文件` > `编辑` > `[filter_local]` 模块 365 | > 366 | > 格式参考(鬼知道是什么意思) 367 | > 368 | > ``` 369 | > # 绕过企业证书过期 370 | > host, ocsp.apple.com, reject 371 | > 372 | > # 其它 373 | > host-suffix, local, direct 374 | > ip-cidr, 10.0.0.0/8, direct 375 | > ip-cidr, 17.0.0.0/8, direct 376 | > ip-cidr, 100.64.0.0/10, direct 377 | > ip-cidr, 127.0.0.0/8, direct 378 | > ip-cidr, 172.16.0.0/12, direct 379 | > ip-cidr, 192.168.0.0/16, direct 380 | > geoip, cn, Mainland 381 | > final, Final 382 | > ``` 383 | 384 | **如果 远程分流 和 本地分流 遇到相同规则,本地规则优先生效** 385 | 386 | ### 3. 为分流规则指定策略组 387 | 388 | #### a. 手动为分流规则指定策略组(推荐) 389 | 390 | > `Quantumult X 设置` > `分流` > `引用` - 选中规则左滑 - `编辑` - 打开 `策略偏好` 391 | > 392 | > 在弹出的选项中,选择对应的策略组 393 | 394 | #### b. 使用`force-policy`强制指定策略组 395 | 396 | > 举例:使用 force-policy 强制让 [GMedia 规则] 分流规则使用 [GMedia] 策略偏好 397 | > 398 | > ``` 399 | > https://raw.githubusercontent.com/GeQ1an/Rules/master/QuantumultX/Filter/GMedia.list, tag=GMedia 规则, force-policy=GMedia, enabled=true 400 | > ``` 401 | > 402 | > - 如果已经存在 [GMedia] 策略组,则 [GMedia 规则] 分流规则与 [GMedia] 策略组绑定; 403 | > - 如果不存在 [GMedia] 策略组,则 `force-policy` 将强制自动生成一个只包含`direct`/直连 和 `reject`/拒绝 两个内置策略的 [GMedia] 策略组。 404 | > - 在App首页长按该策略组图标,可以将已经导入的节点和二级策略组添加到该策略组下 405 | 406 | ### 4. 开始使用分流规则和策略组 407 | 408 | - 在了解了策略组和分流规则后,我们就可以自己写策略组了,不过光有策略组没有分流规则等于啥都没有; 409 | 410 | 分流规则要我们小白自己去写的话,估计能弄到崩溃,所以这里建议大家使用网上各位大佬们提供的分流规则; 411 | 412 | 结合他们的分流规则来写符合你自己使用习惯的策略组。 413 | 414 | - 这里给大家准备了一份配置文件,配置中包含`基础的策略组`和`分流规则`,以及上一期教程中提到的 `资源解析器`;通过 `下载` 导入新的配置文件会覆盖之前包括节点在内的所有配置。 415 | 416 | - ❗️**`配置文件下载地址:`** 417 | 418 | ``` 419 | hhttps://raw.githubusercontent.com/erdongchanyo/Rules/main/Quantumult%20X/quantumult_EDC-Lazy.conf 420 | ``` 421 | 422 | 配置文件中包含的策略组和规则有: 423 | 424 | - 国外连接策略` (添加了对应规则)` 425 | 426 | - 国外媒体策略 `(添加了对应规则)` 427 | 428 | > 国外媒体策略 / Netflix策略 / Youtube策略 / Spotify策略 / TikTok策略 429 | 430 | - 国内连接策略 `(添加了对应规则)` 431 | 432 | - 软件&服务策略 `(添加了对应规则)` 433 | 434 | > Telegram策略 / Twitter策略 / Apple策略 / TestFlight策略 / Microsoft策略 / Paypal策略 / LOL策略 435 | 436 | - 国内媒体策略 `(添加了对应规则)` 437 | - 网易云策略 438 | 439 | - 最终策略 `(添加了对应规则)` 440 | 441 | - 正则筛选服务器策略组 442 | 443 | > 美国节点策略组 / 香港节点策略组 / 台湾节点策略组 / 新加坡节点策略组 / 日本节点策略组 444 | > 445 | > 网易云音乐解锁服务器策略组 446 | 447 | - 下载了配置文件后,只需要重新添加节点就可以开心的使用 Quantumult X 了 448 | 449 | 450 | 451 | ## 三、Quantumult X小白系列教程|基础实战:创建网易云音乐解锁服务器节点策略组,利用分流规则,轻松解锁网易云音乐Netecase Music灰色(无版权)音乐 452 | 453 | ❗️**`视频教程地址:`**https://youtu.be/_XmUmRrizwg 454 | 455 | ### 1. 解锁网易云灰色音乐大致原理 456 | 457 | - 利用QQ、酷我音乐等音乐平台的资源链接替换网易云灰色歌曲链接 458 | - 有条件的盆友可以自己搭建解锁服务器 459 | - 教程中用到的免费服务器均为网络收集,限制仅允许网易云音乐相关域名与 IP 通过代理,其余代理请求一律丢弃。 460 | 461 | ### 2. 下载、安装、信任证书 462 | 463 | #### a. 下载证书 464 | 465 | > Safari浏览器点击链接:https://raw.githubusercontent.com/nondanee/UnblockNeteaseMusic/master/ca.crt 466 | > 467 | > “此网站正尝试下载一个配置描述文件。您要允许吗?” 468 | > 469 | > 点击`允许`进行下载 470 | 471 | #### b. 安装证书 472 | 473 | > 进入`设置` > `通用` > `描述文件` > `已下载的描述文件` 474 | > 475 | > 选择 `UnblockNeteaseMusic Root CA` ,右上角点击 `安装` 476 | 477 | #### c. 信任证书 478 | 479 | > 进入`设置` > `通用` > `关于本机` > `证书信任设置` 下 480 | > 481 | > 开启 `UnblockNeteaseMusic Root CA` 482 | 483 | ### 3. 添加网易云音乐`策略组` 484 | 485 | > - Quantumult X `设置` > `配置文件` > `编辑` 486 | > 487 | > - 找到 `[policy]` 模块 488 | > 489 | > - 增加以下策略组 490 | > 491 | > - 网易云音乐策略组 492 | > 493 | > ``` 494 | > static=Netease Music, direct, Netease Unblock Server, img-url=https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Netease_Music_Unlock.png 495 | > ``` 496 | > 497 | > 释义:这是一条叫做 `Netease Music` 的静态策略,可以选择 `直连` 、 `Netease Unblock Server策略组` 两种策略的策略组 498 | > 499 | > - 网易云音乐解锁服务器筛选策略组(教程二中的 `正则筛选策略`) 500 | > 501 | > ``` 502 | > static= Netease Unblock Server, server-tag-regex= 解锁网易云, img-url=https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Netease_Music.png 503 | > ``` 504 | > 505 | > 释义:这是一条静态策略,通过 `server-tag-regex` 正则筛选,将导入的节点中包含 `解锁网易云` 的节点全部归纳到 `Netease Unblock Server` 策略组下 506 | 507 | ### 4. 添加网易云音乐`分流规则` 508 | 509 | > - Quantumult X `设置` > `配置文件` > `编辑` 510 | > 511 | > - 找到 `[filter_remote]` 模块 512 | > 513 | > - 增加以下分流规则 514 | > 515 | > ``` 516 | > https://raw.githubusercontent.com/GeQ1an/Rules/master/QuantumultX/Filter/Optional/Netease%20Music.list, tag=Netease Music 规则, force-policy=Netease Music, update-interval=86400, opt-parser=false, enabled=true 517 | > ``` 518 | > 519 | > 释义:这是一条分流规则,使用 `GeQ1an大佬` 的 `Netease Music.list` 分流规则,规则名称为 `Netease Music 规则`,每24小时(24x60分x60秒=86400秒)更新一次。 520 | 521 | ### 5. 导入网易云音乐解锁服务器节点 522 | 523 | > - 将节点信息手动写入配置文件 `[server_local]` 模块下 524 | > 525 | > - 不推荐,不方便管理 526 | > 527 | > - 通过 `远程订阅链接` 或远程 `包含解锁网易云节点信息的txt文件` 进行导入 528 | > 529 | > - 不推荐,如果是别人上传的文件,文件内包含的节点信息如果失效,你无法维护 530 | > 531 | > - **通过 `配置文件` > `新建配置片段` 进行导入** 532 | > 533 | > - `新建配置片段` > `节点` 534 | > 535 | > - 弹出的文本框中增加以下节点信息(以下节点信息为Quantumult X可识别格式),右上角 `保存` 536 | > 537 | > 文件名可以包含中文(空格除外) 538 | > 539 | > ``` 540 | > http=music.lolico.me:39000, fast-open=false, udp-relay=false, tag=解锁网易云节点1 541 | > http=block4music.poetyin.me:39000, fast-open=false, udp-relay=false, tag=解锁网易云节点2 542 | > shadowsocks=blockmusic.poetyin.me:30003, method=aes-128-gcm, password=desperadoj.com_free_proxy_emx2, fast-open=false, udp-relay=false, tag=解锁网易云节点3 543 | > shadowsocks=music.desperadoj.com:30001, method=aes-128-gcm, password=desperadoj.com_free_proxy_emx2, fast-open=false, udp-relay=false, tag=解锁网易云节点4 544 | > shadowsocks=music.desperadoj.com:30003, method=aes-128-gcm, password=desperadoj.com_free_proxy_emx2, fast-open=false, udp-relay=false, tag=解锁网易云节点5 545 | > ``` 546 | > 547 | > > - 打开` iCloud资源文件夹` 548 | > > 549 | > > 节点配置片段保存至 `iCloud` 路径下的 `iCloud/Quantumult X/Profiles/` 550 | > > 551 | > > - 关闭` iCloud资源文件夹` 552 | > > 553 | > > 节点配置片段保存至 `本地` 路径下的 `我的iPhone/Quantumult X/Profiles/` 554 | > 555 | > - `节点` > `引用(订阅)` > 右上角 `添加` > 输入 `文件名` 556 | > 557 | > ⚠️ 开启iCloud资源文件夹后,默认使用`iCloud`路径下的文件,`我的iPhone`路径不被读取 558 | > 559 | > 如果文件内的节点信息不是Quantumult X可识别格式,请打开 `资源解析器` 560 | > 561 | > > 资源解析器 安装请参考 [教程一:安装资源解析器](#1.1 首先,给你的Quantumult X增加一个小工具:资源解析器) 562 | 563 | ### 6. 搞定,解锁网易云灰色音乐 564 | 565 | > `Netease Music` 策略下可选 `直连` 、 `Netease Server策略组` 566 | > 567 | > > - `直连`: 568 | > > 569 | > > 使用你当前手机正常网络访问网易云音乐 570 | > > 571 | > > / 搜索“周杰伦 晴天”,搜索结果呈灰色,不可播放 572 | > > 573 | > > - `Netease Server策略组`: 574 | > > 575 | > > 使用 `Netease Unblock Server` 策略组下选中的 `解锁网易云音乐服务器` 访问网易云音乐 576 | > > 577 | > > 需要切换节点时,直接在 `Netease Unblock Server` 策略组下进行 578 | > > 579 | > > / 搜索“周杰伦 晴天”,搜索结果正常可播放 580 | 581 | 582 | 583 | ## 四、Quantumult X小白系列教程|进阶使用:了解重写和MITM解密,实现广告屏蔽、TikTok不拔卡区域解锁、Youtube广告屏蔽 584 | 585 | ❗️**`视频教程地址:`**https://youtu.be/QaMxTYuYU6U 586 | 587 | ### 1. 了解重写 / MITM解密 588 | 589 | - 简单来说,重写 和 mitm解密 主要用来去广告以及某些重定向,去广告就不用说了,至于什么叫重定向咱也不太懂,反正我在网上看的就是:比如将 `google.cn` 重定向 `google.hk` 590 | - 配置文件中对应的模块:**`[rewrite]` / `[mitm]` ** 591 | 592 | ### 2. MITM解密 593 | 594 | - 官方解释:mitm 根证书用于 https 解析,只有配置了主机名的请求才会被 mitm 模块进行解析。 595 | 596 | > - 主机名:对应配置文件中 `[mitm]` 模块下的 `hostname=` 后面的内容 597 | > - 我的理解,它就是一个本地证书,反正开启就行:先生成证书、再配置证书(安装证书、信任证书)、然后打开开关。 598 | > - 想要使用 Quantumult X `解锁TikTok` 等高级玩法,就必须开启 `mitm`。 599 | 600 | - 开启步骤: 601 | 602 | > Quantumult X `设置` > `MitM` > `生成证书` > `配置证书`(安装并信任、参考 `安装网易云音乐证书`) 603 | > 604 | > 证书安装完成、打开 `MitM` 开关 605 | 606 | ### 3. 重写脚本(网上其它教程习惯叫做 `复写脚本`) 607 | 608 | - 官方解释(我也不懂):用于修改 HTTP 或 HTTPS 请求和响应 609 | 610 | > 不需要也没必要搞懂,对于我们这样的小白用户,直接引用各位大佬的重写规则就好了,要啥自行车? 611 | 612 | - 添加 `[rewrite_remote]` 远程重写脚本订阅 613 | 614 | > - 小白应该也不会自己写脚本,建议直接引用`远程重写订阅` 615 | > 616 | > `设置` > `重写` > `引用` > 右上角 `添加` > 输入远程重写订阅地址 617 | > 618 | > > 举例 `神机通用重写订阅` 619 | > > 620 | > > ``` 621 | > > https://raw.githubusercontent.com/DivineEngine/Profiles/master/Quantumult/Rewrite/General.conf 622 | > > ``` 623 | > > 624 | > > 规则内包含主机名 `hostname` 以及重写 `rewrite` 规则 625 | > 626 | > - 当然也可以引用下载到 iCloud / 本机路径下的 `.conf` 配置文件 627 | > 628 | > > `iCloud` 文件路径:`iCloud/Quantumult X/Profiles/` 629 | > > 630 | > > `本地` 文件路径:`我的iPhone/Quantumult X/Profiles/` 631 | > > 632 | > > 导入方法:直接输入 `文件名.conf` 633 | > 634 | > ⚠️ 开启iCloud资源文件夹后,默认使用`iCloud`路径下的文件,`我的iPhone`路径不被读取 635 | > 636 | > ⚠️ 下载回来的脚本需要定期手动下载新版本进行替换 637 | 638 | - 添加 `[rewrite_local]` 本地重写脚本 639 | 640 | > - `设置` > `配置文件` > `编辑` > `[rewrite_local]` 模块 641 | > 642 | > - 支持引用 iCloud / 本地 / 远程路径,文件格式为 .js 643 | > 644 | > - iCloud / 本地 `.js `文件 (开启iCloud资源文件夹后默认使用iCloud路径下的配置文件) 645 | > 646 | > > - 脚本文件在哪里弄? 647 | > > 648 | > > > 自己写 > 会么?不会! 649 | > > > 650 | > > > 各位大佬无私奉献,可以下载保存至 iCloud 或者 本地 651 | > > 652 | > > - 脚本文件储存路径 653 | > > 654 | > > > iCloud 文件路径:`iCloud/Quantumult X/Scripts/` 655 | > > > 656 | > > > 本地 文件路径:`我的iPhone/Quantumult X/Scripts/` 657 | > 658 | > > >脚本引用方法:直接输入 `脚本文件名.js` 659 | > > 660 | > > ⚠️ 开启iCloud资源文件夹后,默认使用`iCloud`路径下的文件,`我的iPhone`路径不被读取 661 | > 662 | > - 远程路径 `.js` 文件 `Store版本 1.0.5+版本可用` 663 | > 664 | > > 举例 `获取Netflix剧集评分(by yichahucha)` 665 | > > 666 | > > ``` 667 | > > ^https?://ios\.prod\.ftl\.netflix\.com/iosui/user/.+path=%5B%22videos%22%2C%\d+%22%2C%22summary%22%5D url script-request-header https://raw.githubusercontent.com/yichahucha/surge/master/nf_rating.js 668 | > > ^https?://ios\.prod\.ftl\.netflix\.com/iosui/user/.+path=%5B%22videos%22%2C%\d+%22%2C%22summary%22%5D url script-response-body https://raw.githubusercontent.com/yichahucha/surge/master/nf_rating.js 669 | > > ``` 670 | > > 671 | > > MitM模块下,hostname后添加`ios.prod.ftl.netflix.com` 672 | 673 | ### 4. 重写实战应用 674 | 675 | #### a. 添加 `神机去广告重写订阅`(共2条) 676 | 677 | > ``` 678 | > https://raw.githubusercontent.com/DivineEngine/Profiles/master/Quantumult/Rewrite/Block/Advertising.conf 679 | > 680 | > https://raw.githubusercontent.com/DivineEngine/Profiles/master/Quantumult/Rewrite/Block/AdvertisingPlus.conf 681 | > ``` 682 | > 683 | > 我们在浏览器打开规则网址,看一下内容,以 `zhihu` 一段为例 684 | > 685 | > 禁用重写,进入知乎app,可以看到有推送的广告内容 686 | > 687 | > 启用重写,重新进入知乎app,广告内容全部消失。 688 | 689 | #### b. 添加 `TikTok区域解锁重写订阅`( 690 | 691 | > - 17.9.0以上版本 692 | > > ``` 693 | > > https://raw.githubusercontent.com/Tartarus2014/Surge-Script/master/Unlock/TikTokUS.sgmodule 694 | > > ``` 695 | > > 696 | > > `烧烤哥` 大佬目前提供的远程TikTok区域解锁重写一共可以解锁5个区域,圈x使用时请打开 资源解析器 697 | > > 698 | > > 分别为:日本`JP`、韩国`KR`、台湾`TW`、英国`UK`、美国`US` 699 | > > 700 | > > 如果要修改解锁区域,只需将订阅地址中最后 `TikTokUS.sgmodule` 中的区域代码 `US` 进行替换即可 701 | > > 702 | > > ⚠️ TikTok 区域解锁重写一次只可启用一个,不可多个地区同时使用; 703 | > 704 | #### c. 添加 `神机去Youtube广告重写订阅` 705 | 706 | > ``` 707 | > https://raw.githubusercontent.com/DivineEngine/Profiles/master/Quantumult/Rewrite/Block/YouTubeAds.conf 708 | > ``` 709 | > 710 | > ⚠️ 用于跳过视频开头的广告(需要5秒后手动跳过的广告) 711 | 712 | 713 | 714 | - 到这一步,是不是发现 `Quantumult X` 在某些方面比传统的 `Shadowrocket` 好玩多了 715 | - 当然,还有其它更多好玩的重写订阅,自己去发现吧~ 716 | 717 | 718 | 719 | ## 五、Quantumult X小白系列教程|进阶使用:了解task_local,配合重写功能、利用crontab命令,玩转圈X定时脚本任务,各种签到薅羊毛整起来 720 | 721 | ❗️**`视频教程地址:`**https://youtu.be/HrrOXEvrXBA 722 | 723 | ### 1. 了解任务脚本 724 | 725 | - 通过 `crontab命令`,在固定时间 或 间隔时间 执行指定的 JS 脚本。 726 | - 配置文件中对应的模块 **`[task_local]`** 727 | - 大部分任务脚本需要对应的 `本地重写` **`[rewrite_local]`** 脚本文件支持, [参考“添加本地重写脚本”部分](#3. 重写脚本(网上其它教程习惯叫做 `复写脚本`)) 728 | - Quantumult X UI界面中对应的入口:`设置` > `调试` > `构造请求` 729 | 730 | ### 2. crontab 命令简单说明 731 | 732 | - 格式 733 | 734 | > `* * * * * example.js` 735 | 736 | - 解释 737 | 738 | >| | * | * | * | * | * | /path/example.js | 739 | >| :--: | :--: | :--: | :--: | :--: | :----------------: | :--------------: | 740 | >| 意义 | 分钟 | 小时 | 日 | 月 | 星期几 | 被执行的脚本路径 | 741 | >| 格式 | 0-59 | 0-23 | 1-31 | 1-12 | 0-7 (0和7为星期天) | | 742 | 743 | ### 3. 如何添加任务 744 | 745 | #### a. 通过`引用本地任务脚本`添加任务 746 | 747 | - 任务脚本自己会写么?不会!所以想在本地引用的话就只能把大佬们的脚本下载回来,慢慢用 748 | 749 | > iCloud文件路径:`iCloud/Quantumult X/Scripts` 750 | > 751 | > 我的iPhone文件路径:`我的iPhone/Quantumult X/Scripts` 752 | > 753 | > 引用方法:`[task_local]` 模块下直接使用 `crontab命令` 调用 754 | > 755 | > 引用格式:`0 9 * * * example.js` 756 | 757 | ⚠️ 开启iCloud资源文件夹后,默认使用`iCloud`路径下的文件,`我的iPhone`路径不被读取 758 | 759 | #### b. 通过`引用远程路径任务脚本`添加任务 760 | 761 | - 大佬们一般都会在说明文档或者js文档的开头注释清楚脚本使用方法 762 | 763 | 其中一般都会有针对 Quantumult X 的说明,按照说明来复制粘贴就行 764 | 765 | - 举例:`京东多合一签到脚本` (by NobyDA) 766 | 767 | > [task_local] 768 | > 769 | > ``` 770 | > https://raw.githubusercontent.com/NobyDa/Script/master/JD-DailyBonus/JD_DailyBonus.js, tag=京东多合一签到, img-url=https://raw.githubusercontent.com/Orz-3/task/master/jd.png, enabled=true 771 | > ``` 772 | > 773 | > `tag=` 任务脚本名称 774 | > 775 | > `img-url=` 任务脚本在 `设置` > `调试` > `构造请求` 中的图标 776 | > 777 | > [rewrite_local] 778 | > 779 | > ``` 780 | > https:\/\/api\.m\.jd\.com\/client\.action.*functionId=signBean url script-request-header https://raw.githubusercontent.com/NobyDa/Script/master/JD-DailyBonus/JD_DailyBonus.js 781 | > ``` 782 | > 783 | > [mitm] 784 | > 785 | > ``` 786 | > hostname = api.m.jd.com 787 | > ``` 788 | > 789 | > 790 | 791 | ### 4. 任务脚本实战举例 - 腾讯视频签到 (by [chavyleung](https://github.com/chavyleung/scripts/tree/master/videoqq)) 792 | 793 | #### a. 脚本本地引用 (引用本地重写脚本和本地任务脚本) 794 | 795 | - 作者提供配置方法 796 | 需将 `本地重写[rewrite_local]脚本`和`任务[task_local]脚本`下载至 `iCloud` 或 `我的iPhone` 的 `/Quantumult/Scripts `路径下 797 | 798 | > ``` 799 | > [MITM] 800 | > *.video.qq.com 801 | > 802 | > [rewrite_local] 803 | > ^https:\/\/access.video.qq.com\/user\/auth_refresh url script-request-header videoqq.cookie.js 804 | > 805 | > [task_local] 806 | > 1 0 * * * videoqq.js 807 | > ``` 808 | 809 | #### b. 脚本远程引用 (引用远程重写脚本和本地任务脚本) 810 | 811 | - 用Chrome扩展[Enhanced GitHub](https://chrome.google.com/webstore/detail/enhanced-github/anlikcnbgdeidpacdbdljnabclhahhmd) 获取Github文件真实链接 812 | 813 | 再加上[Orz-3](https://github.com/Orz-3/task)大佬收集的task任务图标 814 | 815 | > ``` 816 | > [MITM] 817 | > *.video.qq.com 818 | > 819 | > [rewrite_local] 820 | > ^https:\/\/access.video.qq.com\/user\/auth_refresh url script-request-header https://raw.githubusercontent.com/chavyleung/scripts/master/qqmusic/qqmusic.cookie.js 821 | > 822 | > [task_local] 823 | > 1 0 * * * https://raw.githubusercontent.com/chavyleung/scripts/master/videoqq/videoqq.js, tag=腾讯视频签到, img-url=https://raw.githubusercontent.com/Orz-3/task/master/videoqq.png, enabled=true 824 | > ``` 825 | 826 | 完美 827 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Rules 2 | 小白自用,收集整理觉得还行的一些规则和脚本 3 | -------------------------------------------------------------------------------- /Surfboard/EDC-Lazy.conf: -------------------------------------------------------------------------------- 1 | # ErdongChan-LazyConf 2 | # Update:2024.10(精简配置,删除部分分流规则) 3 | # 后期本配置文件不再定期更新,各位有需要的话可以根据自己需求修改配置文件 4 | # ------------------ 5 | # YouTube:www.youtube.com/@erdongchan 6 | # Telegram:t.me/erdongchan 7 | # EDC导航站:https://erdon.cc/ 8 | # EDCstore:https://store.erdongchan.cn/ 9 | # ------------------ 10 | # 下载配置后,需要自行添加机场订阅链接 11 | # 此处推荐使用Sub-Store订阅链接,多机场用户可以将多个机场订阅整合为一个Sub-Store订阅 12 | 13 | [General] 14 | # 通用设置 15 | # > 代理延迟测速URL 16 | proxy-test-url = http://cp.cloudflare.com/generate_204 17 | # > 跳过代理 18 | skip-proxy = localhost, *.local, 10.0.0.0/8, 100.64.0.0/10, 127.0.0.1/32, 169.254.0.0/16, 172.16.0.0/12, 192.168.0.0/16,192.168.122.1/32, 193.168.0.1/32, 224.0.0.0/4, 240.0.0.0/4, 255.255.255.255/32, *.crashlytics.com, passenger.t3go.cn, captive.apple.com, seed-sequoia.siri.apple.com, sequoia.apple.com, injections.adguard.org, local.adguard.org 19 | # ---DNS 服务器--- 20 | # 如无必要不建议使用DNS over HTTPS 21 | dns-server = system, 119.29.29.29, 119.28.28.28, 223.5.5.5, 223.6.6.6, 1.2.4.8, 8.8.8.8 22 | # > Always Real IP Hosts 23 | # 当Surge VIF处理DNS问题时,要求Surge返回真实IP地址 24 | always-real-ip = *.msftconnecttest.com, *.msftncsi.com, *.srv.nintendo.net, *.stun.playstation.net, xbox.*.microsoft.com, *.xboxlive.com, *.logon.battlenet.com.cn, *.logon.battle.net, stun.l.google.com 25 | 26 | [Proxy Group] 27 | # 下载配置文件后请自行把https://sub.store/download/collection/MySub替换为你自己的机场订阅链接或Sub-Store订阅链接 28 | PROXY = select, policy-path=https://sub.store/download/collection/MySub, update-interval=0 29 | AutoHK = url-test, policy-path=https://sub.store/download/collection/MySub, update-interval=0, policy-regex-filter=(HK|香港|港|🇭🇰🇰️|Hongkong), interval=600, timeout=3, hidden=true 30 | US = select, policy-path=https://sub.store/download/collection/MySub, update-interval=0, policy-regex-filter=(美|美国|🇺🇸|US|us) 31 | HK = select, policy-path=https://sub.store/download/collection/MySub, update-interval=0, policy-regex-filter=(香港|港|hong|HK|HKG|🇭🇰) 32 | TW = select, policy-path=https://sub.store/download/collection/MySub, update-interval=0, policy-regex-filter=(台|台湾|TW|Taiwan) 33 | JP = select, policy-path=https://sub.store/download/collection/MySub, update-interval=0, policy-regex-filter=(日|日本|东京|大阪|泉日|埼玉|沪日|深日|🇯🇵|JP|Japan) 34 | SG = select, policy-path=https://sub.store/download/collection/MySub, update-interval=0, policy-regex-filter=(狮城|新|新加坡|🇸🇬|SG) 35 | OutSide = select, US, HK, TW, JP, SG, FINAL 36 | GlobalMedia = select, US, HK, TW, JP, SG, FINAL 37 | YouTube = select, US, HK, TW, JP, SG, FINAL 38 | Spotify = select, DIRECT, US, HK, TW, JP, SG, FINAL 39 | Telegram = select, US, HK, TW, JP, SG, FINAL 40 | Mainland = select, DIRECT, FINAL 41 | FINAL = select, PROXY, AutoHK, DIRECT 42 | Advertising = select, REJECT, DIRECT 43 | 44 | [Rule] 45 | # > 其它 46 | DOMAIN-SUFFIX,local,DIRECT 47 | # ---逻辑规则--- 48 | # > AND规则:当所含规则全部匹配时,会被触发 49 | AND,((PROTOCOL,UDP), (DEST-PORT,443)),REJECT-NO-DROP 50 | # ---规则集---- 51 | # ---内置规则集--- 52 | # SYSTEM 53 | # > 包含了绝大多数来自macOS和iOS系统本身所发送的请求 54 | RULE-SET,SYSTEM,DIRECT 55 | # ---远程规则集--- 56 | # > 去广告 57 | # Advertising 广告 58 | RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/Advertising/Advertising.list,Advertising 59 | DOMAIN-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/Advertising/Advertising_Domain.list,Advertising 60 | # Privacy 隐私 61 | RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/Privacy/Privacy_Domain.list,Advertising 62 | DOMAIN-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/Privacy/Privacy_Domain.list,Advertising 63 | # Hijacking 运营商劫持或恶意网站 64 | RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/Hijacking/Hijacking.list,Advertising 65 | # YouTube 66 | RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/YouTube/YouTube.list,YouTube 67 | # Spotify 68 | RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/Spotify/Spotify.list,Spotify 69 | # > 海外流媒体总规则 70 | RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/GlobalMedia/GlobalMedia.list,GlobalMedia 71 | # > 软件&服务 72 | # Telegram 73 | RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/Telegram/Telegram.list,Telegram 74 | # Mainland 国内访问 75 | RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/China/China.list,Mainland 76 | # Global 全球加速 77 | RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/Global/Global.list,OutSide 78 | DOMAIN-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/Global/Global_Domain.list,OutSide 79 | # ---IP地址规则--- 80 | # > GeoIP China 81 | GEOIP,CN,DIRECT 82 | # ---Final规则--- 83 | # > 必须写在所有其他类型的规则之后 84 | # > 当某条请求不匹配以上任何一条规则,则与FINAL规则匹配 85 | FINAL,FINAL,dns-failed 86 | 87 | [Host] 88 | -------------------------------------------------------------------------------- /Surge/Panels/EDC_Surge-Panel.js: -------------------------------------------------------------------------------- 1 | 2 | /* 参考 */ 3 | /* https://raw.githubusercontent.com/fishingworld/something/main/PanelScripts/surgepro_reloadprofile.js */ 4 | /* https://raw.githubusercontent.com/smartmimi/conf/master/surge/functionstatus.js */ 5 | 6 | !(async () => { 7 | /* 定义图标 */ 8 | let params = getParams($argument) 9 | /* 时间获取 */ 10 | let traffic = (await httpAPI("/v1/traffic","GET")) 11 | let dateNow = new Date() 12 | let dateTime = Math.floor(traffic.startTime*1000) 13 | let startTime = timeTransform(dateNow,dateTime) 14 | /* MitM+Rewrite+Scripting状态获取 */ 15 | let mitm_status = (await httpAPI("/v1/features/mitm","GET")); 16 | let rewrite_status = (await httpAPI("/v1/features/rewrite","GET")); 17 | let scripting_status = (await httpAPI("/v1/features/scripting","GET")); 18 | 19 | if ($trigger == "button") await httpAPI("/v1/profiles/reload"); 20 | 21 | $done({ 22 | title:"𝗦𝗨𝗥𝗚𝗘 𝗣𝗥𝗢", 23 | content:`𝗘𝗿𝗱𝗼𝗻𝗴𝗖𝗵𝗮𝗻 𝗟𝗮𝘇𝘆 𝗖𝗢𝗡𝗙©️\n`+ 24 | `--------------\n`+ 25 | `@t.me/erdongchan\n`+ 26 | `--------------\n`+ 27 | `已持续运行: ${startTime}\n`+ 28 | `--------------\n`+ 29 | `MitM:`+icon_status(mitm_status.enabled)+` Rewrite:`+icon_status(rewrite_status.enabled)+` Scripting:`+icon_status(scripting_status.enabled), 30 | icon: params.icon, 31 | "icon-color":params.color 32 | }); 33 | 34 | })(); 35 | 36 | function timeTransform(dateNow,dateTime) { 37 | let dateDiff = dateNow - dateTime; 38 | let days = Math.floor(dateDiff / (24 * 3600 * 1000));//计算出相差天数 39 | let leave1=dateDiff%(24*3600*1000) //计算天数后剩余的毫秒数 40 | let hours=Math.floor(leave1/(3600*1000))//计算出小时数 41 | //计算相差分钟数 42 | let leave2=leave1%(3600*1000) //计算小时数后剩余的毫秒数 43 | let minutes=Math.floor(leave2/(60*1000))//计算相差分钟数 44 | //计算相差秒数 45 | let leave3=leave2%(60*1000) //计算分钟数后剩余的毫秒数 46 | let seconds=Math.round(leave3/1000) 47 | 48 | if(days==0){ 49 | 50 | if(hours==0){ 51 | if(minutes==0)return(`${seconds}秒`); 52 | return(`${minutes}分${seconds}秒`) 53 | } 54 | return(`${hours}时${minutes}分${seconds}秒`) 55 | }else { 56 | return(`${days}天${hours}时${minutes}分`) 57 | } 58 | 59 | } 60 | 61 | function icon_status(status){ 62 | if (status){ 63 | return "\u2611"; 64 | } else { 65 | return "\u2612" 66 | } 67 | } 68 | 69 | function httpAPI(path = "", method = "POST", body = null) { 70 | return new Promise((resolve) => { 71 | $httpAPI(method, path, body, (result) => { 72 | resolve(result); 73 | }); 74 | }); 75 | } 76 | 77 | function getParams(param) { 78 | return Object.fromEntries( 79 | $argument 80 | .split("&") 81 | .map((item) => item.split("=")) 82 | .map(([k, v]) => [k, decodeURIComponent(v)]) 83 | ); 84 | } 85 | -------------------------------------------------------------------------------- /Surge/Surge_EDC-Lzay.conf: -------------------------------------------------------------------------------- 1 | # ErdongChan-LazyConf 2 | # Update:2025.1(精简配置,删除部分分流规则) 3 | # 后期本配置文件不再定期更新,各位有需要的话可以根据自己需求修改配置文件 4 | # ------------------ 5 | # YouTube:www.youtube.com/@erdongchan 6 | # Telegram:t.me/erdongchan 7 | # EDC导航站:https://erdon.cc/ 8 | # EDCstore:https://store.erdongchan.cn/ 9 | # ------------------ 10 | # 下载配置后,需要自行添加机场订阅链接(详见[Proxy Group]部分) 11 | # 此处推荐使用Sub-Store订阅链接,多机场用户可以将多个机场订阅整合为一个Sub-Store订阅 12 | # Surge MAC: 13 | # 显示主窗口 - 策略 - 右键编辑"PROXY"策略组 - 选择"可选策略组"下一步 - 更换“同时包含外部策略”对话框中的链接为你自己的Sub-Store订阅链接或机场订阅链接; 14 | # Surge iOS 15 | # 首页 - “出站模式”模块下选择“代理服务器” - 选择“PROXY”策略组 - 下拉到底部“外部代理列表” - 更换其中的链接为你自己的Sub-Store订阅链接或机场订阅链接; 16 | # ------------------ 17 | [General] 18 | # 通用设置 19 | # 20 | # ---延迟设置--- 21 | # > 网络访问延迟测速URL 22 | internet-test-url = http://cp.cloudflare.com/generate_204 23 | # > 代理延迟测速URL 24 | proxy-test-url = http://cp.cloudflare.com/generate_204 25 | # > 测试超时(秒) 26 | test-timeout = 3 27 | # 28 | # ---GeoIP数据库--- 29 | # > 自定义GeoIP数据库 30 | geoip-maxmind-url = https://raw.githubusercontent.com/JMVoid/ipip2mmdb/release/Country.mmdb 31 | # 32 | # ---WiFi助理--- 33 | # 在Wi-Fi网络不佳时尝试使用数据网络建立连接 34 | # ture=开启,false=关闭 35 | wifi-assist = false 36 | # 37 | # ---WiFi访问--- 38 | # > 允许WiFi访问 39 | # >> iOS,若允许远程访问将false改为true 40 | allow-wifi-access = false 41 | wifi-access-http-port = 6152 42 | wifi-access-socks5-port = 6153 43 | # >> macOS,若允许远程访问将127.0.0.1改为0.0.0.0 44 | http-listen = 0.0.0.0 45 | socks5-listen = 0.0.0.0 46 | # 47 | # ---远程控制器--- 48 | # > 允许Surge请求查看器或Surge CI进行管理控制 49 | # @前内容为密码 50 | external-controller-access = 123456@127.0.0.1:6170 51 | # > HTTP API 52 | # 可以让另一个App或者设备通过HTTP API控制Surge功能 53 | # @前内容为密码 54 | http-api = 123456@127.0.0.1:6166 55 | # > 远程控制器开关 56 | http-api-tls = true 57 | http-api-web-dashboard = true 58 | # 59 | # ---兼容性设置--- 60 | # > IPv6 支持(默认关闭) 61 | ipv6 = ture 62 | # > 兼容模式(仅iOS) 63 | # compatibility-mode = 0 64 | # > 排除简单主机名 65 | exclude-simple-hostnames = true 66 | # > 跳过代理 67 | skip-proxy = localhost, *.local, 10.0.0.0/8, 100.64.0.0/10, 127.0.0.1/32, 169.254.0.0/16, 172.16.0.0/12, 192.168.0.0/16,192.168.122.1/32, 193.168.0.1/32, 224.0.0.0/4, 240.0.0.0/4, 255.255.255.255/32, *.crashlytics.com, passenger.t3go.cn, captive.apple.com, seed-sequoia.siri.apple.com, sequoia.apple.com, injections.adguard.org, local.adguard.org 68 | # 69 | # ---DNS 服务器--- 70 | # 如无必要不建议使用DNS over HTTPS 71 | dns-server = 119.29.29.29, 223.5.5.5, 8.8.8.8, system 72 | # > 从/etc/hosts读取DNS记录 73 | read-etc-hosts = true 74 | # 75 | # ---高级设置--- 76 | # > 日志级别 77 | loglevel = notify 78 | # > 当遇到REJECT策略时返回错误页 79 | show-error-page-for-reject = true 80 | # > Always Real IP Hosts 81 | # 当Surge VIF处理DNS问题时,要求Surge返回真实IP地址 82 | always-real-ip = *.msftconnecttest.com, *.msftncsi.com, *.srv.nintendo.net, *.stun.playstation.net, xbox.*.microsoft.com, *.xboxlive.com, *.logon.battlenet.com.cn, *.logon.battle.net, stun.l.google.com 83 | # > TCP Force HTTP Hosts 84 | # 让Surge把TCP连接当作HTTP请求来处理 85 | # Surge HTTP引擎将处理这些请求 86 | # 所有的高级功能,如捕获、重写和脚本等都可以使用 87 | force-http-engine-hosts = *.ott.cibntv.net 88 | # > UDP转发 89 | # 如果没有代理服务器支持UDP转发 90 | # 可修改为direct或注释本条 91 | # 需注意同一目标主机名TCP请求与UDP请求的源地址不同所造成的隐私及安全风险 92 | udp-policy-not-supported-behaviour = reject 93 | 94 | [Proxy Group] 95 | # 下载配置文件后请自行把https://sub.store/download/collection/MySub替换为你自己的机场订阅链接或Sub-Store订阅链接 96 | PROXY = select, policy-path=https://sub.store/download/collection/MySub, update-interval=0 97 | AutoHK = url-test, policy-path=https://sub.store/download/collection/MySub, update-interval=0, policy-regex-filter=(香港|港|hong|HK|HKG|🇭🇰), interval=600, timeout=3, hidden=true 98 | US = select, policy-path=https://sub.store/download/collection/MySub, update-interval=0, policy-regex-filter=(美|美国|美|波特兰|达拉斯|俄勒冈|凤凰城|费利蒙|硅谷|拉斯维加斯|洛杉矶|圣何塞|圣克拉拉|西雅图|芝加哥|🇺🇸|US) 99 | HK = select, policy-path=https://sub.store/download/collection/MySub, update-interval=0, policy-regex-filter=(香港|港|hong|HK|HKG|🇭🇰) 100 | TW = select, policy-path=https://sub.store/download/collection/MySub, update-interval=0, policy-regex-filter=(台|台湾|TW|Taiwan) 101 | JP = select, policy-path=https://sub.store/download/collection/MySub, update-interval=0, policy-regex-filter=(日本|东京|大阪|泉日|埼玉|沪日|深日|🇯🇵|JP|Japan) 102 | SG = select, policy-path=https://sub.store/download/collection/MySub, update-interval=0, policy-regex-filter=(狮城|新加坡|🇸🇬|SG|Singapore) 103 | OutSide = select, US, HK, TW, JP, SG, FINAL 104 | GlobalMedia = select, US, HK, TW, JP, SG, FINAL 105 | YouTube = select, US, HK, TW, JP, SG, FINAL 106 | Spotify = select, DIRECT, US, HK, TW, JP, SG, FINAL 107 | Bilibili = select, DIRECT, HK, TW, FINAL 108 | Telegram = select, US, HK, TW, JP, SG, FINAL 109 | OpenAI = select, US, HK, TW, JP, SG, FINAL 110 | Mainland = select, DIRECT, FINAL 111 | FINAL = select, PROXY, AutoHK, DIRECT 112 | Advertising = select, REJECT, PROXY, DIRECT # hidden=true 113 | 114 | [Rule] 115 | DOMAIN,bw.erdongchan.cn,HK 116 | # ---域名规则--- 117 | # > 耳东橙导航站 118 | DOMAIN-SUFFIX,erdon.cc,FINAL 119 | # > 抖音本地分流 120 | DOMAIN-SUFFIX,snssdk.com,DIRECT 121 | DOMAIN-SUFFIX,amemv.com,DIRECT 122 | # > 其它 123 | DOMAIN-SUFFIX,local,DIRECT 124 | DOMAIN-SUFFIX,kuaishou.com,DIRECT 125 | # ---进程规则--- 126 | # > 只在macOS生效,iOS会自动忽略这个类型的规则 127 | PROCESS-NAME,UUBooster,DIRECT 128 | # ---逻辑规则--- 129 | # > AND规则:当所含规则全部匹配时,会被触发 130 | AND,((PROTOCOL,UDP), (DEST-PORT,443)),REJECT-NO-DROP 131 | # ---规则集---- 132 | # ---内置规则集--- 133 | # SYSTEM 134 | # > 包含了绝大多数来自macOS和iOS系统本身所发送的请求 135 | RULE-SET,SYSTEM,DIRECT 136 | # ---远程规则集--- 137 | # > 去广告 138 | # Advertising 广告 139 | RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/Advertising/Advertising.list,Advertising 140 | DOMAIN-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/Advertising/Advertising_Domain.list,Advertising 141 | # Privacy 隐私 142 | RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/Privacy/Privacy_Domain.list,Advertising 143 | DOMAIN-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/Privacy/Privacy_Domain.list,Advertising 144 | # Hijacking 运营商劫持或恶意网站 145 | RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/Hijacking/Hijacking.list,Advertising 146 | # > 海外流媒体 147 | # YouTube 148 | RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/YouTube/YouTube.list,YouTube 149 | # Spotify 150 | RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/Spotify/Spotify.list,Spotify 151 | # > 海外流媒体总规则 152 | RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/GlobalMedia/GlobalMedia.list,GlobalMedia 153 | # > 国内媒体 154 | # Bilibili 155 | RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/BiliBili/BiliBili.list,Bilibili 156 | # > 软件&服务 157 | # Telegram 158 | RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/Telegram/Telegram.list,Telegram 159 | # Mainland 国内访问 160 | RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/China/China.list,Mainland 161 | # Global 全球加速 162 | RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/Global/Global.list,OutSide 163 | DOMAIN-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/Global/Global_Domain.list,OutSide 164 | # ---IP地址规则--- 165 | # > GeoIP China 166 | GEOIP,CN,DIRECT 167 | # ---Final规则--- 168 | # > 必须写在所有其他类型的规则之后 169 | # > 当某条请求不匹配以上任何一条规则,则与FINAL规则匹配 170 | FINAL,FINAL,dns-failed 171 | 172 | [Host] 173 | # ---定义本地DNS记录--- 174 | # 该功能等同于 /etc/hosts,加上了泛解析和别名支持。 175 | # > Firebase Cloud Messaging 176 | mtalk.google.com = 108.177.125.188 177 | # > Google Dl 178 | dl.google.com = server:119.29.29.29 179 | dl.l.google.com = server:119.29.29.29 180 | update.googleapis.com = server:119.29.29.29 181 | # > PlayStation 182 | *.dl.playstation.net = server:119.29.29.29 183 | # > 淘宝 184 | *.taobao.com = server:223.5.5.5 185 | # > 天猫 186 | *.tmall.com = server:223.5.5.5 187 | # > 阿里云 188 | *.alicdn.com = server:223.5.5.5 189 | *.aliyun.com = server:223.5.5.5 190 | # > 腾迅 191 | *.tencent.com = server:119.29.29.29 192 | # > 腾讯QQ 193 | *.qq.com = server:119.29.29.29 194 | # > 微信 195 | *.weixin.com = server:119.29.29.29 196 | *.qpic.cn = server:119.29.29.29 197 | # > 京东 198 | *.jd.com = server:119.29.29.29 199 | # > 哔哩哔喱 200 | *.bilibili.com = server:119.29.29.29 201 | hdslb.com = server:119.29.29.29 202 | # > 网易 203 | *.163.com = server:119.29.29.29 204 | *.126.com = server:119.29.29.29 205 | *.126.net = server:119.29.29.29 206 | *.127.net = server:119.29.29.29 207 | *.netease.com = server:119.29.29.29 208 | # > 小米 209 | *.mi.com = server:119.29.29.29 210 | *.xiaomi.com = server:119.29.29.29 211 | # 解锁了「模块」功能的用户可以使用 General.sgmodule 后可移除 [URL Rewrite] 及 [MITM] 的「hostname = www.google.cn,api.abema.io」部分 212 | # 建议使用 General.sgmodule,其他 .sgmodule 按需加入 213 | # 未解锁「模块」功能的用户不要删除以下内容,参照 214 | # (https://github.com/DivineEngine/Profiles/tree/master/Surge)使用快捷指令更新相关内容。 215 | 216 | [URL Rewrite] 217 | # 有两种重定向方式: 'header' 和 '302' 218 | # 建议用模块 219 | 220 | [Panel] 221 | # macOS不生效 222 | # > EDC_Surge-Panel 223 | # 显示运行时间及MitM等功能开关状态 224 | # 点击刷新为重载配置 225 | EDC_Surge-Panel = script-name=EDC_Surge-Panel,update-interval=1 226 | 227 | [Script] 228 | # 显示运行时间及MitM等功能开关状态 229 | EDC_Surge-Panel = type=generic,script-path=https://raw.githubusercontent.com/erdongchanyo/Rules/main/Surge/Panels/EDC_Surge-Panel.js,argument=icon=crown.fill&color=#f6c970 230 | 231 | [MITM] 232 | skip-server-cert-verify = true 233 | --------------------------------------------------------------------------------