From ae7006fe105a1754c9fc7ef4bba0222e17ada171 Mon Sep 17 00:00:00 2001 From: jackwener Date: Mon, 23 Mar 2026 15:27:38 +0800 Subject: [PATCH] fix(xiaohongshu): scope image selector to avoid downloading avatars Narrow '#noteContainer img[src*="xhscdn"]' to '#noteContainer .media-container img[src*="xhscdn"]' to exclude user avatars and sidebar icons from downloads. Closes #281 --- src/clis/xiaohongshu/download.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/clis/xiaohongshu/download.ts b/src/clis/xiaohongshu/download.ts index e268a47..6fa2138 100644 --- a/src/clis/xiaohongshu/download.ts +++ b/src/clis/xiaohongshu/download.ts @@ -52,7 +52,7 @@ cli({ '.note-slider img', '.note-image img', '.image-wrapper img', - '#noteContainer img[src*="xhscdn"]', + '#noteContainer .media-container img[src*="xhscdn"]', 'img[src*="ci.xiaohongshu.com"]' ];