Telegram Group & Telegram Channel
🔗 Sub-Store 文件动态生成 📦 sing-box 配置示例

🆕 新增远程脚本链接 可配置参数自定义将哪些节点插入哪些 outbound 中, 增加了详细日志, 可查看规则解析结果和整体流程

远程文件填 链接 或查看 💃 亚托莉佬的模板 选择对应的版本
脚本操作填链接 https://raw.githubusercontent.com/xishang0128/sub-store-template/main/sing-box.js#type=1&name=name // "1" 表示组合订阅, name 为订阅的 "名称", 具体看文件中的说明

如果出现死活无法拉取外部资源的情况 可参考 📦 修改亚托莉佬示例配置中的外部资源逻辑为 使用 GitHub 加速服务 并 直连

⚠️ 此脚本与此模板配套 如果要用自定义模板/有自定义脚本的需求 可使用👇🏻的方案

1.1 使用远程模板

远程链接 中 第一行为 sing-box 模板文件链接
例: https://a.com/sing-box.tpl.json

1.2 或者使用本地模板
本地文本 中为 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. 记得 url 需要 encodeURIComponent. 例如: http://a.com?token=123 应使用 url=http%3A%2F%2Fa.com%3Ftoken%3D123

⚠️ 如果 outbounds 为空, 自动创建 COMPATIBLE(direct) 并插入 防止报错

可选参数: includeUnsupportedProxy 包含官方/商店版不支持的协议 SSR. 用法: &includeUnsupportedProxy=true

如果想完全手写 可参考 https://www.tg-me.com/us/折腾啥/com.zhetengsha/1066

🤭 Sub-Store 合集 🧐 频道资源合集 😄 恰饭推荐 💬 群组

🥰 #Sub-Store #SubStore #sing-box #singbox #配置 #示例 #脚本
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM



tg-me.com/zhetengsha/1070
Create:
Last Update:

🔗 Sub-Store 文件动态生成 📦 sing-box 配置示例

🆕 新增远程脚本链接 可配置参数自定义将哪些节点插入哪些 outbound 中, 增加了详细日志, 可查看规则解析结果和整体流程

远程文件填 链接 或查看 💃 亚托莉佬的模板 选择对应的版本
脚本操作填链接 https://raw.githubusercontent.com/xishang0128/sub-store-template/main/sing-box.js#type=1&name=name // "1" 表示组合订阅, name 为订阅的 "名称", 具体看文件中的说明

如果出现死活无法拉取外部资源的情况 可参考 📦 修改亚托莉佬示例配置中的外部资源逻辑为 使用 GitHub 加速服务 并 直连

⚠️ 此脚本与此模板配套 如果要用自定义模板/有自定义脚本的需求 可使用👇🏻的方案

1.1 使用远程模板

远程链接 中 第一行为 sing-box 模板文件链接
例: https://a.com/sing-box.tpl.json

1.2 或者使用本地模板
本地文本 中为 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. 记得 url 需要 encodeURIComponent. 例如: http://a.com?token=123 应使用 url=http%3A%2F%2Fa.com%3Ftoken%3D123

⚠️ 如果 outbounds 为空, 自动创建 COMPATIBLE(direct) 并插入 防止报错

可选参数: includeUnsupportedProxy 包含官方/商店版不支持的协议 SSR. 用法: &includeUnsupportedProxy=true

如果想完全手写 可参考 https://www.tg-me.com/us/折腾啥/com.zhetengsha/1066

🤭 Sub-Store 合集 🧐 频道资源合集 😄 恰饭推荐 💬 群组

🥰 #Sub-Store #SubStore #sing-box #singbox #配置 #示例 #脚本

BY 折腾啥





Share with your friend now:
tg-me.com/zhetengsha/1070

View MORE
Open in Telegram


折腾啥 Telegram | DID YOU KNOW?

Date: |

Telegram has exploded as a hub for cybercriminals looking to buy, sell and share stolen data and hacking tools, new research shows, as the messaging app emerges as an alternative to the dark web.An investigation by cyber intelligence group Cyberint, together with the Financial Times, found a ballooning network of hackers sharing data leaks on the popular messaging platform, sometimes in channels with tens of thousands of subscribers, lured by its ease of use and light-touch moderation.

Among the actives, Ascendas REIT sank 0.64 percent, while CapitaLand Integrated Commercial Trust plummeted 1.42 percent, City Developments plunged 1.12 percent, Dairy Farm International tumbled 0.86 percent, DBS Group skidded 0.68 percent, Genting Singapore retreated 0.67 percent, Hongkong Land climbed 1.30 percent, Mapletree Commercial Trust lost 0.47 percent, Mapletree Logistics Trust tanked 0.95 percent, Oversea-Chinese Banking Corporation dropped 0.61 percent, SATS rose 0.24 percent, SembCorp Industries shed 0.54 percent, Singapore Airlines surrendered 0.79 percent, Singapore Exchange slid 0.30 percent, Singapore Press Holdings declined 1.03 percent, Singapore Technologies Engineering dipped 0.26 percent, SingTel advanced 0.81 percent, United Overseas Bank fell 0.39 percent, Wilmar International eased 0.24 percent, Yangzijiang Shipbuilding jumped 1.42 percent and Keppel Corp, Thai Beverage, CapitaLand and Comfort DelGro were unchanged.

折腾啥 from us


Telegram 折腾啥
FROM USA