TGViewer
Stash Channel Stash Channel @stashfeed · 27.1K subscribers
Post #183 25.8K
🆕 Stash iOS / macOS 测试版更新 🎉

- 新增 AnyTLS 支持
- name: AnyTLS
type: anytls
password: stash
server: 127.0.0.1
port: 1080
sni: www.apple.com

- 重构「HTTP引擎」在处理多个改写时候的性能
- 新增内嵌脚本
- 脚本支持 path 参数

介绍文档:https://stash.wiki/script/manage-script

▎示例 1:基础在线脚本(定时更新)
script-providers:
online-script:
url: https://example.com/online.js
interval: 86400
适用场景:脚本托管在远端,需要周期性更新;本地只保留缓存,不关心路径。

▎示例 2:仅内嵌脚本(快速临时测试)
script-providers:
quick-test:
interval: 86400
payload: |
console.log("test");
$done();
适用场景:临时验证脚本逻辑,不想依赖远端文件。注意复杂脚本不建议长期放在 payload 中。

▎示例 3:url + payload(启动即用 + 远端更新)
script-providers:
hybrid-script:
url: https://example.com/remote.js
interval: 86400
payload: |
console.log("fallback payload");
$done();
适用场景:启动时先用 payload 兜底,后续由 url 定期更新覆盖缓存。

▎示例 4:url + path(固定缓存路径)
script-providers:
cached-script:
url: https://example.com/remote.js
path: ./fancy/script.js
interval: 86400
适用场景:希望明确脚本缓存文件位置,便于排查或与其他工具联动。

▎示例 5:url + path + payload(完整组合)
script-providers:
full-combo:
url: https://example.com/remote.js
path: ./fancy/script.js
interval: 86400
payload: |
console.log("bootstrap");
$done();
适用场景:启动时优先使用 path 文件;不存在则写入 payload,后续再通过 url 定期更新覆盖。

▎示例 6:仅 path(本地调试,不更新)
script-providers:
local-debug:
path: ./fancy/script.js
适用场景:不走定时更新,本地编辑即可生效;配合 iCloud 可在 Mac 修改、iPhone 实时同步。
  • ❤ 28
  • 👍 7
  • 🍾 6
  • 👏 2
  • 🤩 2
  • 🥰 1
  • 💯 1
More from @stashfeed
  1. Sep 25, 2026▎Stash TestFlight / Beta 更新 新功能 • 全局隧道可排除配对设备通信:开启后,Apple Watch 等配对设备可继续与手机通信;不支持此选项的系统不会显…
  2. Sep 23, 2026▎Stash TestFlight / Beta 更新 新功能 • 支持更多 REALITY 节点组合:现在可使用 VLESS 的 REALITY+h2、REALITY+WebSo…
  3. Sep 23, 2026▎Stash TestFlight / Beta 更新 新功能 • 控制端口冲突时自动切换:默认控制端口被占用时,Stash 会改用其他可用端口,让相关连接继续正常工作。 • 支持…
  4. Sep 23, 2026▎Stash TestFlight / Beta 更新 新功能 • 支持 Snell v6:现在可以添加和使用 Snell v6 代理,并配置对应模式和 userkey。 • 支持…
  5. Sep 21, 2026▎Stash TestFlight / Beta 更新 新功能 • 支持配置成功 DNS 响应:现在可以配置 rcode://success 响应来处理 DNS 查询。 • 支持发…
  6. Sep 21, 2026▎Stash TestFlight / Beta 更新 新功能 • 支持 Mieru 流量特征:现在可以使用 Mieru 流量特征建立连接,并可在代理编辑器中进行配置。 • 支持匹…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →