Skip to content

Commit 3a21be6

Browse files
authored
fix(xiaohongshu): scope image selector to avoid downloading avatars (#293)
Narrow '#noteContainer img[src*="xhscdn"]' to '#noteContainer .media-container img[src*="xhscdn"]' to exclude user avatars and sidebar icons from downloads. Closes #281
1 parent 127a974 commit 3a21be6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/clis/xiaohongshu/download.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ cli({
5252
'.note-slider img',
5353
'.note-image img',
5454
'.image-wrapper img',
55-
'#noteContainer img[src*="xhscdn"]',
55+
'#noteContainer .media-container img[src*="xhscdn"]',
5656
'img[src*="ci.xiaohongshu.com"]'
5757
];
5858

0 commit comments

Comments
 (0)