Skip to content

Commit

Permalink
更新[BoxJs]: 移除 gitee 链接, 改用 github raw 及 jsdelivr
Browse files Browse the repository at this point in the history
  • Loading branch information
chavyleung committed Feb 24, 2021
1 parent 73fc920 commit c4a0548
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 4 deletions.
4 changes: 2 additions & 2 deletions box/chavy.boxjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 () => {
// 勿扰模式
Expand Down
16 changes: 16 additions & 0 deletions box/release/box.release.json
Original file line number Diff line number Diff line change
@@ -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"],
Expand Down
16 changes: 16 additions & 0 deletions box/release/box.release.tf.json
Original file line number Diff line number Diff line change
@@ -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"],
Expand Down
4 changes: 2 additions & 2 deletions chavy.box.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 () => {
// 勿扰模式
Expand Down

0 comments on commit c4a0548

Please sign in to comment.