2.14.57, 后端 2.14.169#noFlow 不查询订阅流量信息用例: 可使用标准参数格式
#noCache&noFlow现在用户名错误只影响头像
Gist 同步只跟 token 有关
如截图所示 方便排查问题
- ❤️2
2.14.57, 后端 2.14.169#noFlow 不查询订阅流量信息#noCache&noFlow2.14.163SUB_STORE_BACKEND_CRON
https://raw.githubusercontent.com/xishang0128/sub-store-template/main/sing-box.js#type=1&name=name远程链接 中 第一行为 sing-box 模板文件链接https://a.com/sing-box.tpl.json本地文本 中为 sing-box 模板文件的内容https://raw.githubusercontent.com/xream/scripts/main/surge/modules/sub-store-scripts/sing-box/template.js#type=组合订阅&name=机场&outbound=🕳ℹ️all|all-auto🕳ℹ️hk|hk-auto🏷ℹ️港|hk|hongkong|kong kong|🇭🇰🕳ℹ️tw|tw-auto🏷ℹ️台|tw|taiwan|🇹🇼🕳ℹ️jp|jp-auto🏷ℹ️日本|jp|japan|🇯🇵🕳ℹ️sg|sg-auto🏷ℹ️^(?!.*(?:us)).*(新|sg|singapore|🇸🇬)🕳ℹ️us|us-auto🏷ℹ️美|us|unitedstates|united states|🇺🇸组合订阅 中的节点(单订阅不需要设置 type 参数)/all|all-auto/i 的 outbound 中(跟在 🕳 后面, ℹ️ 表示忽略大小写, 不筛选节点不需要给 🏷 )/港|hk|hongkong|kong kong|🇭🇰/i (跟在 🏷 后面, ℹ️ 表示忽略大小写) 的节点插入匹配 /hk|hk-auto/i 的 outbound 中url. 记得 url 需要 encodeURIComponent. 例如: http://a.com?token=123 应使用 url=http%3A%2F%2Fa.com%3Ftoken%3D123
Sub-Store 相关教程 有真相盗版不要提问 不解答 功能用不了是正常的 不是脚本的问题
BoxJs 为例进行排查:https) 应该可以看到 key 和 valhttp) 如果成功 那就是 MitM/证书信任的问题Script Hub 为例进行排查:https) 应该可以看到本地网页版http) 如果成功 那就是 MitM/证书信任的问题Sub-Store 为例进行排查cors 配置 CORS allowlisthttps) 应该可以看到版本号http) 如果成功 那就是 MitM/证书信任的问题/Applications/Surge.app/Contents/Applications/surge-cli dump profile effective|grep sub.store 检查当前配置中 Sub-Store 相关的配置hostname = %APPEND% 或 hostname = %INSERT%*.*.*.* 导致一系列问题 建议远离(耐心把每一步都试一遍
https://raw.githubusercontent.com/xishang0128/sub-store-template/main/sing-box.js#type=1&name=name // "1" 表示组合订阅, name 为订阅的 "名称", 具体看文件中的说明远程链接 中 第一行为 sing-box 模板文件链接https://a.com/sing-box.tpl.json本地文本 中为 sing-box 模板文件的内容outbounds 是这样的: { "outbounds": [ { "tag": "全部节点", "type": "selector", "default": "urltest", "outbounds": [ "美国节点" ] }, { "tag": "美国节点", "type": "urltest", "outbounds": [] } ] }let config = (ProxyUtils.JSON5 || JSON).parse($content ?? $files[0]) // 文件中的第一个
let proxies = await produceArtifact({
type: 'subscription', // 如果是组合订阅 就是 'collection'
name: '订阅的name', // 订阅的"名称", 不是"显示名称"
platform: 'sing-box',
produceType: 'internal'
})
// 先将全部节点结构插到 outbounds
config.outbounds.push(...proxies)
config.outbounds.map(i => {
// 在 全部节点 中插入全部节点名
if (['全部节点'].includes(i.tag)) {
i.outbounds.push(...proxies.map(p => p.tag))
}
// 在 美国节点 中插入全部美国节点名
if (['美国节点'].includes(i.tag)) {
i.outbounds.push(...proxies.filter(p => /美国|🇺🇸|us|united states/i.test(p.tag)).map(p => p.tag))
}
})
$content = JSON.stringify(config, null, 2)let singboxProxies = await produceArtifact({
type: 'subscription', // type: 'subscription' 或 'collection'
name: 'sub', // subscription name
platform: 'sing-box', // target platform
produceType: 'internal' // 'internal' produces an Array, otherwise produces a String( JSON.parse('JSON String') )
})
let clashMetaProxies = await produceArtifact({
type: 'subscription',
name: 'sub',
platform: 'ClashMeta',
produceType: 'internal' // 'internal' produces an Array, otherwise produces a String( ProxyUtils.yaml.safeLoad('YAML String').proxies )
}))
// YAML
$content = ProxyUtils.yaml.safeDump({})
// JSON
$content = JSON.stringify({}, null, 2)
2.14.38 后端 2.14.146/api/file/name 访问内部文件/api/file/name 支持参数覆盖/api/file/name?url=&content=&ua=&mergeSources&ignoreFailedRemoteFile
2.14.32
https://raw.githubusercontent.com/xream/scripts/main/surge/modules/troubleshoot/troubleshoot.sgmodulehttp://trouble.shoot
2.14.141 前端 2.14.30