Skip to content

Commit 8363d8a

Browse files
committed
perf(script): 优化用户脚本内容格式
1 parent e53c15d commit 8363d8a

3 files changed

Lines changed: 26 additions & 9 deletions

File tree

README_EN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -638,7 +638,7 @@ repository to execute the build process
638638
<img alt="Star History Chart" src="https://api.star-history.com/svg?repos=JoeanAmier/XHS-Downloader&amp;type=Timeline"/>
639639
</p>
640640
<h1>♥️ Support the Project</h1>
641-
<p>If <b>XHS-Downloader</b> has been helpful to you, please consider giving it a <b>Star</b> ⭐. Thank you for your support!</p>
641+
<p>If <b>XHS-Downloader</b> has been helpful to you, please consider giving it a <b>Star</b> ⭐, Thank you for your support!</p>
642642
<table>
643643
<thead>
644644
<tr>

static/Release_Notes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
**用户脚本更新内容:**
1212

13-
**版本号:2.2.2**
13+
**版本号:2.2.3**
1414

1515
1. 新增链接提取/图片下载选择模式开关
1616
2. 修复合辑作品链接提取失败的问题

static/XHS-Downloader.js

Lines changed: 24 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// @name XHS-Downloader
33
// @namespace xhs_downloader
44
// @homepage https://github.com/JoeanAmier/XHS-Downloader
5-
// @version 2.2.2
5+
// @version 2.2.3
66
// @tag 小红书
77
// @tag RedNote
88
// @description 提取小红书作品/用户链接,下载小红书无水印图文/视频作品文件
@@ -63,8 +63,7 @@
6363
};
6464

6565
const readme = async () => {
66-
const instructions = `
67-
功能清单:
66+
const instructions = `功能清单:
6867
1. 下载小红书无水印作品文件
6968
2. 提取推荐页面作品链接
7069
3. 提取账号发布作品链接
@@ -85,8 +84,7 @@
8584
8685
项目开源地址:https://github.com/JoeanAmier/XHS-Downloader
8786
`
88-
const disclaimer_content = `
89-
1. 使用者对本项目的使用由使用者自行决定,并自行承担风险。作者对使用者使用本项目所产生的任何损失、责任、或风险概不负责。
87+
const disclaimer_content = `1. 使用者对本项目的使用由使用者自行决定,并自行承担风险。作者对使用者使用本项目所产生的任何损失、责任、或风险概不负责。
9088
2. 本项目的作者提供的代码和功能是基于现有知识和技术的开发成果。作者按现有技术水平努力确保代码的正确性和安全性,但不保证代码完全没有错误或缺陷。
9189
3. 本项目依赖的所有第三方库、插件或服务各自遵循其原始开源或商业许可,使用者需自行查阅并遵守相应协议,作者不对第三方组件的稳定性、安全性及合规性承担任何责任。
9290
4. 使用者在使用本项目时必须严格遵守 GNU General Public License v3.0 的要求,并在适当的地方注明使用了 GNU General Public License v3.0 的代码。
@@ -186,7 +184,23 @@
186184
};
187185

188186
const about = () => {
189-
window.open('https://github.com/JoeanAmier/XHS-Downloader', '_blank');
187+
const aboutText = `项目开源协议:GNU General Public License v3.0
188+
项目开源地址:https://github.com/JoeanAmier/XHS-Downloader
189+
190+
如果 XHS-Downloader 对您有帮助,请考虑为它点个 Star ⭐,感谢您的支持!
191+
If XHS-Downloader has been helpful to you, please consider giving it a Star ⭐, Thank you for your support!
192+
193+
✨ 作者的其他开源项目:
194+
✨ Other Open Source Projects by the Author:
195+
196+
DouK-Downloader(抖音、DouYin、TikTok):https://github.com/JoeanAmier/TikTokDownloader
197+
KS-Downloader(快手、KuaiShou):https://github.com/JoeanAmier/KS-Downloader
198+
199+
项目 Discord 社区:https://discord.com/invite/ZYtmgKud9Y
200+
`;
201+
showTextModal({
202+
title: '关于 XHS-Downloader', text: aboutText, mode: 'info', closeText: '关闭'
203+
});
190204
}
191205

192206
const abnormal = (text) => {
@@ -2067,7 +2081,10 @@
20672081
}, {
20682082
text: '修改用户脚本设置', icon: ' ⚙️ ', action: showSettings, description: '修改用户脚本设置'
20692083
}, {
2070-
text: '访问项目开源仓库', icon: ' 📒 ', action: about, description: '访问项目 GitHub 开源仓库'
2084+
text: '关于 XHS-Downloader',
2085+
icon: ' 📒 ',
2086+
action: about,
2087+
description: '查看 XHS-Downloader 更多信息'
20712088
});
20722089

20732090
// 创建菜单项

0 commit comments

Comments
 (0)