From c4a0548fac5647bc61ce33c9c46974ea3d1760cf Mon Sep 17 00:00:00 2001 From: Chavy Date: Wed, 24 Feb 2021 09:43:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0[BoxJs]:=20=E7=A7=BB=E9=99=A4?= =?UTF-8?q?=20gitee=20=E9=93=BE=E6=8E=A5,=20=E6=94=B9=E7=94=A8=20github=20?= =?UTF-8?q?raw=20=E5=8F=8A=20jsdelivr?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- box/chavy.boxjs.js | 4 ++-- box/release/box.release.json | 16 ++++++++++++++++ box/release/box.release.tf.json | 16 ++++++++++++++++ chavy.box.js | 4 ++-- 4 files changed, 36 insertions(+), 4 deletions(-) diff --git a/box/chavy.boxjs.js b/box/chavy.boxjs.js index cd1fea426..9c5d1999c 100644 --- a/box/chavy.boxjs.js +++ b/box/chavy.boxjs.js @@ -3,7 +3,7 @@ const $ = new Env('BoxJs') // 为 eval 准备的上下文环境 const $eval_env = {} -$.version = '0.7.68' +$.version = '0.7.69' $.versionType = 'beta' // 发出的请求需要需要 Surge、QuanX 的 rewrite @@ -44,7 +44,7 @@ $.html = $.name // `页面`类请求的响应体 // 页面源码地址 $.web = `https://cdn.jsdelivr.net/gh/chavyleung/scripts@${$.version}/box/chavy.boxjs.html?_=${new Date().getTime()}` // 版本说明地址 (Release Note) -$.ver = 'https://gitee.com/chavyleung/scripts/raw/master/box/release/box.release.tf.json' +$.ver = `https://cdn.jsdelivr.net/gh/chavyleung/scripts@${$.version}/box/release/box.release.tf.json` !(async () => { // 勿扰模式 diff --git a/box/release/box.release.json b/box/release/box.release.json index 9cb886551..dfc6997dc 100644 --- a/box/release/box.release.json +++ b/box/release/box.release.json @@ -1,5 +1,21 @@ { "releases": [ + { + "version": "0.7.69", + "tags": ["beta"], + "author": "@chavyleung", + "msg": "更新[BoxJs]: 移除 gitee 链接, 改用 github raw 及 jsdelivr", + "notes": [ + { + "name": "说明", + "descs": ["由于通过 gitee 访问部分仓库资源时出现 `根据相关法律政策,该内容无法显示`", "虽然我手动同步 github 代码后已经可以正常访问", "但为避免以后出现不可预知的情况:", "我们把全部 gitee 链接替换为 github raw 及 jsdelivr", "----", "大家只需正常更新订阅并重启代理即可"] + }, + { + "name": "感谢", + "descs": ["@zZPiglet PR"] + } + ] + }, { "version": "0.7.68", "tags": ["beta"], diff --git a/box/release/box.release.tf.json b/box/release/box.release.tf.json index bfaaddc59..33f173e0c 100644 --- a/box/release/box.release.tf.json +++ b/box/release/box.release.tf.json @@ -1,5 +1,21 @@ { "releases": [ + { + "version": "0.7.69", + "tags": ["beta"], + "author": "@chavyleung", + "msg": "更新[BoxJs]: 移除 gitee 链接, 改用 github raw 及 jsdelivr", + "notes": [ + { + "name": "说明", + "descs": ["由于通过 gitee 访问部分仓库资源时出现 `根据相关法律政策,该内容无法显示`", "虽然我手动同步 github 代码后已经可以正常访问", "但为避免以后出现不可预知的情况:", "我们把全部 gitee 链接替换为 github raw 及 jsdelivr", "----", "大家只需正常更新订阅并重启代理即可"] + }, + { + "name": "感谢", + "descs": ["@zZPiglet PR"] + } + ] + }, { "version": "0.7.68", "tags": ["beta"], diff --git a/chavy.box.js b/chavy.box.js index cd1fea426..9c5d1999c 100644 --- a/chavy.box.js +++ b/chavy.box.js @@ -3,7 +3,7 @@ const $ = new Env('BoxJs') // 为 eval 准备的上下文环境 const $eval_env = {} -$.version = '0.7.68' +$.version = '0.7.69' $.versionType = 'beta' // 发出的请求需要需要 Surge、QuanX 的 rewrite @@ -44,7 +44,7 @@ $.html = $.name // `页面`类请求的响应体 // 页面源码地址 $.web = `https://cdn.jsdelivr.net/gh/chavyleung/scripts@${$.version}/box/chavy.boxjs.html?_=${new Date().getTime()}` // 版本说明地址 (Release Note) -$.ver = 'https://gitee.com/chavyleung/scripts/raw/master/box/release/box.release.tf.json' +$.ver = `https://cdn.jsdelivr.net/gh/chavyleung/scripts@${$.version}/box/release/box.release.tf.json` !(async () => { // 勿扰模式