;“;” “#” “//”为注释符号，去掉前面的符号，该行才会生效
; 基于STICK RULES、神机规则、mini等项目的配置整理
; “Sabrina的万事屋”博主自用规则模板，随缘更新。欢迎访问本人的小破站： https://merlinblog.xyz/
; 本次更新日期：2021/08/03
; 云图小镇二次整理并对分流规则进行合并和本地化

[general]
#QuanX会对server_check_url指定的网址进行相应测试，以确认节点的可用性
server_check_url=http://cp.cloudflare.com/generate_204

#list中的域名将不使用fake-ip方式, 多个域名用“, ”连接。其它域名则全部采用 fake-ip及远程解析的模式
dns_exclusion_list=*.cmpassport.com, *.jegotrip.com.cn, *.icitymobile.mobi, id6.me, *.pingan.com.cn, *.cmbchina.com

#用于获取及展示节点信息
geo_location_checker=http://ip-api.com/json/?lang=zh-CN, https://shadow.us.tarolink.top/iOS/QuantumultX/rules/IP.js

#资源解析器，自定义各类远程资源的转换
resource_parser_url=https://cdn.jsdelivr.net/gh/KOP-XIAO/QuantumultX@master/Scripts/resource-parser.js

#下列路径将不经过QuanX的处理
excluded_routes=239.255.255.250/32, 24.105.30.129/32, 185.60.112.157/32, 185.60.112.158/32, 182.162.132.1/32

#UDP策略
fallback_udp_policy=direct

[dns]
no-ipv6
server=119.29.29.29
server=/dl.google.com/119.29.29.29
server=/dl.l.google.com/119.29.29.29
#指定域名解析dns
server=/*.taobao.com/223.5.5.5
server=/*.tmall.com/223.5.5.5
server=/*.alipay.com/223.5.5.5
server=/*.alicdn.com/223.5.5.5
server=/*.aliyun.com/223.5.5.5
server=/*.jd.com/119.28.28.28
server=/*.qq.com/119.28.28.28
server=/*.tencent.com/119.28.28.28
server=/*.weixin.com/119.28.28.28
server=/*.bilibili.com/119.29.29.29
server=/hdslb.com/119.29.29.29
server=/*.163.com/119.29.29.29
server=/*.126.com/119.29.29.29
server=/*.126.net/119.29.29.29
server=/*.127.net/119.29.29.29
server=/*.netease.com/119.29.29.29
server=/*.mi.com/119.29.29.29
server=/*.xiaomi.com/119.29.29.29

[policy]
#策略组
static=Global-Access, Internet, direct, HK-Node, TW-Node, JP-Node, SG-Node, US-Node, proxy, img-url=https://shadow.us.tarolink.top/iOS/QuantumultX/mini/Color/Final.png
static=Internet, HK-Node, TW-Node, JP-Node, SG-Node, US-Node, proxy, img-url=https://shadow.us.tarolink.top/iOS/QuantumultX/mini/Color/Global.png
static=Apple-Services, direct, HK-Node, US-Node, proxy, img-url=https://shadow.us.tarolink.top/iOS/QuantumultX/mini/Color/Apple.png
static=Disney, Internet, HK-Node, TW-Node, JP-Node, US-Node, SG-Node, proxy, img-url=https://shadow.us.tarolink.top/iOS/QuantumultX/mini/Color/DisneyPlus.png
static=Netflix-Auto, Internet, HK-Node, TW-Node, JP-Node, US-Node, SG-Node, Netflix, proxy, img-url=https://shadow.us.tarolink.top/iOS/QuantumultX/mini/Color/Netflix.png
static=Tracker, direct, HK-Node, US-Node, proxy, img-url=https://shadow.us.tarolink.top/iOS/QuantumultX/mini/Color/Coco.png
static=TikTok, proxy, Internet, Stream-Global, direct, img-url=https://shadow.us.tarolink.top/iOS/QuantumultX/mini/Color/TikTok.png
static=Telegram, US-Node, SG-Node, proxy, img-url=https://shadow.us.tarolink.top/iOS/QuantumultX/mini/Color/Telegram.png
static=Zhihu, direct, HK-Node, proxy, img-url=https://shadow.us.tarolink.top/iOS/QuantumultX/mini/Color/Zhihu.png
static=Stream-Global, HK-Node, TW-Node, JP-Node, US-Node, SG-Node, proxy, img-url=https://shadow.us.tarolink.top/iOS/QuantumultX/mini/Color/YouTube.png
url-latency-benchmark=HK-Node, server-tag-regex=(?=.*(港|HK|(?i)Hong))^((?!(台|日|韩|新|美|英)).)*$, check-interval=600, tolerance=0, img-url=https://shadow.us.tarolink.top/iOS/QuantumultX/mini/Color/HK.png
url-latency-benchmark=TW-Node, server-tag-regex=(?=.*(台|TW|Taipei|(?i)Taiwan))^((?!(港|日|韩|新|美|英)).)*$, check-interval=600, tolerance=0, img-url=https://shadow.us.tarolink.top/iOS/QuantumultX/mini/Color/TW.png
url-latency-benchmark=JP-Node, server-tag-regex=(?=.*(日|JP|Tokyo|Osaka|(?i)Japan))^((?!(港|台|韩|新|美|英)).)*$, check-interval=600, tolerance=0, img-url=https://shadow.us.tarolink.top/iOS/QuantumultX/mini/Color/JP.png
url-latency-benchmark=SG-Node, server-tag-regex=(?=.*(新|狮|獅|SG|(?i)Singapore))^((?!(港|台|日|韩|美|英)).)*$, check-interval=600, tolerance=0, img-url=https://shadow.us.tarolink.top/iOS/QuantumultX/mini/Color/SG.png
url-latency-benchmark=US-Node, server-tag-regex=(?=.*(美|US|San Jose|Los Angeles|(?i)States|American))^((?!(港|台|日|韩|新)).)*$, check-interval=600, tolerance=0, img-url=https://shadow.us.tarolink.top/iOS/QuantumultX/mini/Color/US.png
url-latency-benchmark=GB-Node, server-tag-regex=(?=.*(英|GB|UK|London|(?i)Kingdom))^((?!(港|台|日|韩|新|美)).)*$, check-interval=600, tolerance=0, img-url=https://shadow.us.tarolink.top/iOS/QuantumultX/mini/Color/UK.png
url-latency-benchmark=Netflix, server-tag-regex=(?=.*(NF|网飞|Netflix)), check-interval=7200, tolerance=0, img-url=https://shadow.us.tarolink.top/iOS/QuantumultX/mini/Alpha/Netflix.png

[server_remote]

[filter_remote]
#引用分流规则
https://shadow.us.tarolink.top/iOS/QuantumultX/rules/Function/Unbreak.list, tag=规则修正, force-policy=Internet, update-interval=86400, opt-parser=true, enabled=true
https://shadow.us.tarolink.top/iOS/QuantumultX/rules/Function/Guard/Advertising.list, tag=广告拦截, force-policy=reject, update-interval=86400, opt-parser=true, enabled=true
https://shadow.us.tarolink.top/iOS/QuantumultX/rules/Function/Guard/Hijacking.list, tag=运营劫持, force-policy=reject, update-interval=86400, opt-parser=true, enabled=true
https://shadow.us.tarolink.top/iOS/QuantumultX/rules/Function/Guard/Privacy.list, tag=隐私保护, force-policy=reject, update-interval=86400, opt-parser=true, enabled=true
https://shadow.us.tarolink.top/iOS/QuantumultX/rules/Application/Apple.list, tag=Apple-Services, force-policy=Apple-Services, update-interval=86400, opt-parser=true, enabled=true
https://shadow.us.tarolink.top/iOS/QuantumultX/rules/Application/Mainland.list, tag=国内网站, force-policy=direct, update-interval=86400, opt-parser=true, enabled=true
https://shadow.us.tarolink.top/iOS/QuantumultX/rules/Application/Telegram.list, tag=Telegram, force-policy=Telegram, update-interval=86400, opt-parser=true, enabled=true
https://shadow.us.tarolink.top/iOS/QuantumultX/rules/Application/Tracker.list, tag=Tracker, force-policy=Tracker, update-interval=86400, opt-parser=true, enabled=true
https://shadow.us.tarolink.top/iOS/QuantumultX/rules/Application/Default.list, tag=Internet, force-policy=Internet, update-interval=86400, opt-parser=true, enabled=true
https://shadow.us.tarolink.top/iOS/QuantumultX/rules/Country/ChinaIP.list, tag=ChinaIP, force-policy=direct, update-interval=86400, opt-parser=true, enabled=true
https://shadow.us.tarolink.top/iOS/QuantumultX/rules/Stream/Disney.list, tag=Disney-Auto, force-policy=Disney, update-interval=86400, opt-parser=true, enabled=true
https://shadow.us.tarolink.top/iOS/QuantumultX/rules/Stream/Netflix.list, tag=Netflix-Auto, force-policy=Netflix-Auto, update-interval=86400, opt-parser=true, enabled=true
https://shadow.us.tarolink.top/iOS/QuantumultX/rules/Stream/TikTok.list, tag=TikTok, force-policy=TikTok, update-interval=86400, opt-parser=true, enabled=true
https://shadow.us.tarolink.top/iOS/QuantumultX/rules/Application/Social-Platform.list, tag=Zhihu, force-policy=Zhihu, update-interval=86400, opt-parser=true, enabled=true
https://shadow.us.tarolink.top/iOS/QuantumultX/rules/Stream/Streaming.list, tag=Stream-Global, force-policy=Stream-Global, update-interval=86400, opt-parser=true, enabled=true
#https://shadow.us.tarolink.top/iOS/QuantumultX/rules/Stream/Region/CN.list, tag=Stream-CN force-policy=direct, update-interval=86400, opt-parser=true, enabled=true
https://shadow.us.tarolink.top/iOS/QuantumultX/rules/Stream/Region/HK.list, tag=Stream-HK, force-policy=HK-Node, update-interval=86400, opt-parser=true, enabled=true
https://shadow.us.tarolink.top/iOS/QuantumultX/rules/Stream/Region/TW.list, tag=Stream-TW, force-policy=TW-Node, update-interval=86400, opt-parser=true, enabled=true
https://shadow.us.tarolink.top/iOS/QuantumultX/rules/Stream/Region/JP.list, tag=Stream-JP, force-policy=JP-Node, update-interval=86400, opt-parser=true, enabled=true
https://shadow.us.tarolink.top/iOS/QuantumultX/rules/Stream/Region/US.list, tag=Stream-US, force-policy=US-Node, update-interval=86400, opt-parser=true, enabled=true
https://shadow.us.tarolink.top/iOS/QuantumultX/rules/Stream/Region/GB.list, tag=Stream-GB, force-policy=GB-Node, update-interval=86400, opt-parser=true, enabled=true

[rewrite_remote]
#引用重写规则
#https://raw.githubusercontent.com/Orz-3/QuantumultX/master/TikTok.conf, tag=Tiktok解锁, update-interval=86400, opt-parser=false, enabled=false
#https://raw.githubusercontent.com/Orz-3/QuantumultX/master/YouTube.conf , tag=YouTube去广告, update-interval=86400, opt-parser=false, enabled=false
https://raw.githubusercontent.com/Orz-3/QuantumultX/master/Bili_Auto_Regions.conf, tag=哔哩哔哩自动换区, update-interval=86400, opt-parser=false, enabled=false
#https://raw.githubusercontent.com/Orz-3/QuantumultX/master/JS.conf, tag=Script, update-interval=86400, opt-parser=false, enabled=true
#https://raw.githubusercontent.com/Orz-3/QuantumultX/master/JS_GetCookie.conf, tag=Cookie, update-interval=86400, opt-parser=false, enabled=false
#https://raw.githubusercontent.com/DivineEngine/Profiles/master/Quantumult/Rewrite/Block/Advertising.conf, tag=神机去广告, update-interval=86400, opt-parser=true, enabled=true
#https://raw.githubusercontent.com/NobyDa/Script/master/QuantumultX/Rewrite_lhie1.conf, tag=lhie1去广告, update-interval=86400, opt-parser=false, enabled=false
#https://raw.githubusercontent.com/DivineEngine/Profiles/master/Quantumult/Rewrite/General.conf, tag=神机重定向, update-interval=86400, opt-parser=false, enabled=true

[server_local]
#本地节点

[filter_local]
#本地分流规则
#若和远程规则相同，本地规则优先生效
host-suffix, local, direct
host-suffix, speedtest.net, proxy
ip-cidr, 192.168.0.0/16, direct
ip-cidr, 10.0.0.0/8, direct
ip-cidr, 172.16.0.0/12, direct
ip-cidr, 127.0.0.0/8, direct
ip-cidr, 100.64.0.0/10, direct
ip-cidr, 224.0.0.0/4, direct
ip6-cidr, fe80::/10, direct
-geoip, cn, direct
final, Global-Access

[rewrite_local]
#本地重写规则

[task_local]
#本地任务

[http_backend]
#BoxJS改为使用http backend方式，访问地址改为http://127.0.0.1:9999，更新配置后请长按右下角功能键然后再按左下角的更新按钮，接着重启代理之后再开启backend开关
https://raw.githubusercontent.com/chavyleung/scripts/master/chavy.box.js, host=boxjs.com, tag=BoxJS, path=^/, enabled=true

[mitm]
#证书和主机名
#导入配置之后记得安装并信任证书，用于Https解析
passphrase = tea
p12 = MIIEVgIBAzCCBBwGCSqGSIb3DQEHAaCCBA0EggQJMIIEBTCCAscGCSqGSIb3DQEHBqCCArgwggK0AgEAMIICrQYJKoZIhvcNAQcBMBwGCiqGSIb3DQEMAQYwDgQItiG0nvaa+IECAggAgIICgAHFayibLH8/z7bSpSVQIQWFeNHgxYsz1kN4NEu2rJ1atDmd6c0aomKNMKe/jS+P12OtpLZck1Hi/CLGJ2EPFmxze8rfVWWQeMHw06Bc2B7WAR7IxTrRv48XPEVb1/W7+Rif7MA4O1pWVe+V2WfnyI9o5L0SjV2WTSV+lNpDniaXB98MaMyNRFLPP5onPJtCE6t9scVsNPM0dDlbio+zc6U2Aqa0HaGrIWxtHbPzCSJ3eMJNWOBPU9c2FaiLLLUtXbV89Ot0eOome07lrrI5VbPQfpO/NxQDktC3fHoacjdv91SHuYiz6cwByhRK9HYEqXtJn7bgNFW/ELvRK3VyknjQmwwHRK+e6T7c9mocVlIjm3jHg/v+hidBdRnwagO/IkZ9LarQ+5LN/YPYp+gn3i6ijFxyi5TezOH2UXJHkeszpCDPQuC1p2KmojR5zIdf1ayiiDhft36MMo74p0Q3TJK7vpcuCkwR+8lBmwD+w1yVKeAOx8KeT8QCtmFhKWmigtiqQsKwGuyLaUcDplL00wa+WqJJtH6FaR4QuFYONZcvLE0D1HgJ5Gaj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