Skip to content
This repository was archived by the owner on Aug 27, 2025. It is now read-only.

Commit 0c75255

Browse files
committed
fix: attachment picture
1 parent 5d0fcdc commit 0c75255

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/content-script/hooks/twitter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class TwitterHook {
5454

5555
const attachmentUrls = Array.from(
5656
document.querySelectorAll(
57-
'[data-testid="attachments"] div[aria-label="Media"] img, [data-testid="attachments"] div[aria-label="Media"] source',
57+
'[data-testid="attachments"] img[src^="blob:https://twitter.com/"], [data-testid="attachments"] source',
5858
),
5959
).map((attachment) => {
6060
return (<HTMLImageElement | HTMLSourceElement>attachment).src;

0 commit comments

Comments
 (0)