-
-
Github文件加速
-为访问Github文件进行加速
- - -GitHub 链接带不带协议头均可,支持 release、archive 以及文件,转换后链接均可使用。
+
+
+
+
+
+
+
GitHub 文件加速服务
+高速稳定的 GitHub 资源访问解决方案
+
+
+
+
+
+
-
+
+
+
+
+
-
-
-
-
+
+
+ 文件大小限制
-...
+
+
+
+
-
+
+
+ ...
文件大小限制
+ 最大支持文件尺寸
-
-
-
+ 白名单状态
-...
+
+
+
-
+
+
+ ...
白名单状态
+ 访问控制列表
-
-
-
+
+
+
-
+ 黑名单状态
-...
+
+
+
+
+
+
+
+
+ ...
+ 黑名单状态
+ 屏蔽列表状态 +
+
+
+
📚 详细使用指南
+ +
+
+
+ 支持的工具
+-
+
- ✅ 终端工具:Git / Wget / Curl +
- ✅ 支持域名:github.com +
- ✅ 支持域名:raw.githubusercontent.com +
- ✅ 支持域名:gist.githubusercontent.com +
- ❌ 不支持 SSH 协议克隆 +
+
+
+ 基础用法示例
+ +
+
+
+ Git 克隆
+git clone https://example.com/https://github.com/user/project.git
+
+ 私有仓库克隆
+git clone https://user:your_token@example.com/https://github.com/user/project.git
+
+
+ 文件下载
+wget https://example.com/https://raw.githubusercontent.com/user/project/main/README.md
+
+ 版本发布
+curl -LO https://example.com/https://github.com/user/project/releases/download/v1.0.0./project_1.0.0.amd64.tar.gz
+
+
-
- 支持的文件类型
+ +
+
+
+
+
+
+ 原始文件
+https://raw.githubusercontent.com/user/repo/main/file.txt
+
+
+
+
+
+ 分支源码
+https://github.com/user/repo/archive/main.zip
+
+
+
+
+
+ 版本发布
+https://github.com/user/repo/releases/download/v1.0.0/app.zip
+
+
+
Gist 文件
+https://gist.githubusercontent.com/user/gist_id/raw/file.txt
-
+
+
-
@@ -319,13 +315,17 @@
const input = document.getElementById('inputUrl');
const output = document.getElementById('output');
const outputLink = document.getElementById('outputLink');
+
// 获取当前域名
+ const CURRENT_PROTOCOL = window.location.protocol.replace(':', '');
const CURRENT_HOST = window.location.host;
- document.querySelectorAll('code').forEach(code => {
- const spanElement = code.querySelector('span');
- if (spanElement) {
- spanElement.textContent = CURRENT_HOST;
- }
+ // 替换协议部分
+ document.querySelectorAll('code .protocol').forEach(span => {
+ span.textContent = CURRENT_PROTOCOL;
+ });
+ // 替换域名部分
+ document.querySelectorAll('code .host').forEach(span => {
+ span.textContent = CURRENT_HOST;
});
// URL 转换规则
From 55afe7676cdc6feee679fbe2d5101ae0e18e86ed Mon Sep 17 00:00:00 2001
From: WJQSERVER
Date: Wed, 12 Feb 2025 19:26:10 +0800
Subject: [PATCH 3/3] fix drak mode
---
pages/index.html | 54 ++++++++++++++++++++++++++++++++++--------------
1 file changed, 38 insertions(+), 16 deletions(-)
diff --git a/pages/index.html b/pages/index.html
index e82eda6..3a44101 100644
--- a/pages/index.html
+++ b/pages/index.html
@@ -4,26 +4,26 @@
- GitHub 文件加速服务
+ GitHub加速服务
+
-
-
-
+
\ No newline at end of file
From 0d6c1d7e3535b8620557164aa07b0ea89d661615 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=B8=85=E9=9F=B5=27s?= <2359824360@qq.com>
Date: Wed, 12 Feb 2025 09:04:26 +0800
Subject: [PATCH 2/3] =?UTF-8?q?=E5=8A=A8=E6=80=81=E9=80=82=E9=85=8D?=
=?UTF-8?q?=E7=A4=BA=E4=BE=8B=E9=93=BE=E6=8E=A5=E5=8D=8F=E8=AE=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pages/index.html | 26 +++++++++++++-------------
1 file changed, 13 insertions(+), 13 deletions(-)
diff --git a/pages/index.html b/pages/index.html
index 30e59e0..e82eda6 100644
--- a/pages/index.html
+++ b/pages/index.html
@@ -228,25 +228,21 @@
基础用法示例
-Git 克隆
git clone https://example.com/https://github.com/user/project.git
-
+ class="d-block mb-3">git clone https://example.com/https://github.com/user/project.git
私有仓库克隆
git clone https://user:your_token@example.com/https://github.com/user/project.git
+ class="d-block">git clone https://user:your_token@example.com/https://github.com/user/project.git
文件下载
wget https://example.com/https://raw.githubusercontent.com/user/project/main/README.md
-
+ class="d-block mb-3">wget https://example.com/https://raw.githubusercontent.com/user/project/main/README.md
版本发布
curl -LO https://example.com/https://github.com/user/project/releases/download/v1.0.0./project_1.0.0.amd64.tar.gz
+ class="d-block">curl -LO https://example.com/https://github.com/user/project/releases/download/v1.0.0/project_1.0.0.amd64.tar.gz