perf(XHS-Downloader.js): 优化作品链接提取功能

This commit is contained in:
JoeanAmier
2024-09-08 11:26:25 +08:00
parent 14bf951ca6
commit 2359cf93a4
2 changed files with 4 additions and 31 deletions

View File

@@ -1,7 +1,7 @@
// ==UserScript==
// @name XHS-Downloader
// @namespace https://github.com/JoeanAmier/XHS-Downloader
// @version 1.6.2
// @version 1.6.3
// @description 提取小红书作品/用户链接,下载小红书无水印图文/视频作品文件
// @author JoeanAmier
// @match http*://xhslink.com/*
@@ -342,7 +342,7 @@
return notesRawValue.map(item => item.id);
}
const generateNoteUrls = data => data.map(([id, token]) => `https://www.xiaohongshu.com/explore/${id}?xsec_token=${token}&xsec_source=pc_feed`).join(" ");
const generateNoteUrls = data => data.map(([id, token]) => `https://www.xiaohongshu.com/explore/${id}?xsec_token=${token}&xsec_source=pc_user`).join(" ");
const generateUserUrls = data => data.map(id => `https://www.xiaohongshu.com/user/profile/${id}`).join(" ");