diff --git a/static/Release_Notes.md b/static/Release_Notes.md index 6cf1381..87ecf59 100644 --- a/static/Release_Notes.md +++ b/static/Release_Notes.md @@ -18,15 +18,15 @@ **用户脚本更新内容:** -**版本号:2.1.7** +**版本号:2.1.8** 1. 修复单张图片的作品下载后文件损坏问题 2. 添加未登录状态下无法提取作品链接的提示 3. 修复提取搜索结果作品链接失败的问题 -4. 修复提取搜索结果作品链接失败的问题 -5. 脚本设置新增 `菜单始终显示` 配置项 -6. 修复用户脚本 CSS 样式冲突问题 -7. 优化运行弹窗提示的交互界面样式 -8. 新增支持仅提取勾选的作品链接 -9. 优化提取作品 ID 的正则表达式 -10. 优化图文作品复选弹窗交互效果 +4. 脚本设置新增 `菜单始终显示` 配置项 +5. 修复用户脚本 CSS 样式冲突问题 +6. 优化运行弹窗提示的交互界面样式 +7. 新增支持仅提取勾选的作品链接 +8. 优化提取作品 ID 的正则表达式 +9. 优化图文作品复选弹窗交互效果 +10. 优化用户脚本运行状态提示 diff --git a/static/XHS-Downloader.js b/static/XHS-Downloader.js index d6c9d57..e01665b 100644 --- a/static/XHS-Downloader.js +++ b/static/XHS-Downloader.js @@ -1,7 +1,7 @@ // ==UserScript== // @name XHS-Downloader // @namespace https://github.com/JoeanAmier/XHS-Downloader -// @version 2.1.7 +// @version 2.1.8 // @description 提取小红书作品/用户链接,下载小红书无水印图文/视频作品文件 // @author JoeanAmier // @match http*://xhslink.com/* @@ -225,6 +225,7 @@ const name = extractName(); console.info(`文件名称 ${name}`); if (note.type === "video") { + showToast("正在下载文件,请稍等..."); await downloadVideo(urls[0], name); } else { let items = extractImageWebpUrls(note, urls); @@ -234,6 +235,7 @@ } else if (urls.length > 1) { showImageSelectionModal(items, name,) } else { + showToast("正在下载文件,请稍等..."); await downloadImage(items, name); } } @@ -1251,6 +1253,7 @@ return; } closeImagesModal(); + showToast("正在下载文件,请稍等..."); await downloadImage(selectedImages, name) });