TGViewer
Cool Scripts Cool Scripts @cool_scripts · 16.3K subscribers
Post #663 2.82K
Sub-Store 小课堂: 使用文件功能, 实现多加速服务拉取 GitHub 资源

1. 创建文件(按图操作)

2. 脚本部分 见此文件

已经配置了默认的 GitHub 加速服务和参数

3. 使用时

a. $options 为通过链接传入的参数
例如: { arg1: 'a', arg2: 'b' }
先这样处理 encodeURIComponent(JSON.stringify({ arg1: 'a', arg2: 'b' }))
然后这样用 /api/file/foo?$options=%7B%22arg1%22%3A%22a%22%2C%22arg2%22%3A%22b%22%7D

b. 或这样处理 encodeURIComponent('arg1=a&arg2=b')
然后这样用 /api/file/foo?$options=arg1%3Da%26arg2%3Db

例如:
{ url: 'https://raw.githubusercontent.com/lige47/QuanX-icon-rule/main/ligeicon.json' }
->
/api/file/fetch?$options=%7B"url"%3A"https%3A%2F%2Fraw.githubusercontent.com%2Flige47%2FQuanX-icon-rule%2Fmain%2Fligeicon.json"%7D

同时兼容 $arguments. 但是用的时候, 需要你自己改了.

4. 其他参数

支持 timeout , headers 等参数, 会覆盖默认参数. 也可以直接修改脚本里的默认参数

ℹ️ 相关内容

链接参数说明
脚本使用说明

代理 App 版安装下载

服务器/云平台/Docker/Android 版的相关教程

相关教程/脚本整合
  • 👍 1
More from @cool_scripts
  1. Sep 27, 2026🔗 Sub-Store 更新 ⚙️ 后端: 2.42.0 🌐 前端: 2.34.0 ▎使用 shoutrrr-ts Docker 版也移除了 shoutrrr 二进制 感谢 D…
  2. Sep 26, 2026🔗 Sub-Store 更新 ⚙️ 后端: 2.41.1 🌐 前端: 2.34.0 ▎调整 sing-box SSH 密钥逻辑 感谢群友 shica 的反馈 ▎调整 SS UR…
  3. Sep 23, 2026🔗 Sub-Store 更新 ⚙️ 后端: 2.41.0 🌐 前端: 2.34.0 ▎📦 sing-box WireGuard/Tailscale 支持一些 sing-box…
  4. Sep 19, 2026🔗 Sub-Store 更新 ⚙️ 后端: 2.39.9 🌐 前端: 2.32.2 ▎🎈 Loon 支持 server-dns 用于指定解析节点服务器域名的 DNS Loon…
  5. Sep 12, 2026🔗 Sub-Store 更新 ⚙️ 后端: 2.39.6 🌐 前端: 2.32.2 ▎🐿️ Egern 支持转换 ip-version 感谢群友 shica 的反馈 自动转换…
  6. Sep 11, 2026🔗 Sub-Store 更新 ⚙️ 后端: 2.39.4 🌐 前端: 2.32.0 ▎SubCase 1.3 新增通知栏快捷开关 (Quick Settings Tile) 新…
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 →