🆕 移除失效的 muhan、neu6、ipscore、ipwhois(旧)
新增 ipwhois(新), ipapiis(支持 PRIVACY)
- ❤️3
netartyoudaoqixinbaidu, 去除 designkitqifu-api.baidubce.com163 和 designkitdashi.163.com 和 webapi.designkit.comentrance.js 和 http_meta_geo.jsif ($server._domain) $server.server = $server._domaincountryCodeaso 和 countryCode 存在其一即可🇨🇳.*➮(.*)$ => $1 中转
图 1 导入我的 预设配置: 1. App (使用内部接口版) 2. App (使用网络请求版) 3. Node.js 版 internal 参数使用内部方法获取数据, 数据来自 GEOIP 数据库, 大幅提速订阅 中, 输入你的 本地节点 或 远程订阅timeout 超时, retries 重试次数图 2 的结果if ($server._domain) $server.server = $server._domain🇨🇳.*➮(.*)$ => $1 中转countryCode接口 和 格式internal: 可切换为使用内部方法获取数据, 数据来自 GEOIP 数据库, 无需网络请求. 适用于以下环境: $utils.ipaso 和 $utils.geoip API 的 AppNode.js 版 Sub-Store, 设置环境变量 SUB_STORE_MMDB_COUNTRY_PATH 和 SUB_STORE_MMDB_ASN_PATH 或 传入 mmdb_country_path 和 mmdb_asn_path 参数(分别为 MaxMind GeoLite2 Country 和 GeoLite2 ASN 数据库 的路径)countryCodetimeout, concurrency , retries 适当调节 api 接口. 默认为 http://ip-api.com/json/{{proxy.server}}?lang=zh-CNformat 自定义格式, 从 节点(proxy) 和 入口 API 响应(api)中取数据. 默认为: {{api.country}} {{api.isp}} - {{proxy.name}}valid 验证 api 请求是否合法. 默认: ProxyUtils.isIP('{{api.ip || api.query}}') (判断 响应中的字段是否为合法`IP`)https://raw.githubusercontent.com/xream/scripts/main/surge/modules/sub-store-scripts/check/entrance.js#concurrency=10&timeout=5000&retries=1
https://raw.githubusercontent.com/xream/scripts/main/surge/modules/sub-store-scripts/sing-box/template.js#type=组合订阅&name=自建&outbound=🕳ℹ️^🇭🇰 HKG$🏷ℹ️港|hk|hongkong|kong kong|🇭🇰
https://raw.githubusercontent.com/xream/scripts/main/surge/modules/sub-store-scripts/sing-box/template.js#type=组合订阅&name=机场&outbound=🕳ℹ️^🇭🇰 HKG-R$🏷ℹ️港|hk|hongkong|kong kong|🇭🇰
detour: HKG-R. 没优化, 反正能用(config = JSON.parse($content ?? $files[0])
const relay = {
'🇭🇰 HKG': '🇭🇰 HKG-R',
// 其他的自己加
}
config.outbounds.map(outbound => {
const r = relay[outbound.tag]
if(r && Array.isArray(outbound.outbounds) && outbound.outbounds.length > 0){
outbound.outbounds.map(tag => {
config.outbounds.find(outbound => outbound.tag === tag).detour = r
})
}
})
$content = JSON.stringify(config, null, 2)
DOMESTIC_IPv4:spcn (请设置分流 DOMAIN-SUFFIX,speedtest.cn )ipim (请设置分流 DOMAIN-SUFFIX,ip.im )ali (将阿里云 IP 服务的 APPCODE 填到 DOMESTIC_IPv4_KEY )ipplus (请设置分流 DOMAIN-SUFFIX,ip.plus )
cip , bilibili , 126 , ipip , ip233 , pingan , muhan DOMESTIC_IPv4_KEY:, 分隔DIRECT(如图2). 如需修改, 可使用 Script Hub 中的 高级操作 功能里的 处理转换后的内容(代码) , 设置策略为你想要的分流, 例如 国内代理(如图3, 4)body = body.replace(/,DIRECT/g, ',国内代理')
DOMAIN-SUFFIX,speedtest.cnip-version=v4-only (以 文档确实不详细(
http://127.0.0.1:9090)[task_local] 下粘贴:event-network https://raw.githubusercontent.com/xream/scripts/main/surge/modules/network-info/net-lsp-x.js, tag=网络信息变化 𝕏, img-url=https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Global.png, enabled=true
event-interaction https://raw.githubusercontent.com/xream/scripts/main/surge/modules/network-info/net-lsp-x.js, tag=网络信息 𝕏, img-url=https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Global.png, enabled=true