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

Commit 8dea7de

Browse files
committed
feat: upload video poster
1 parent 232176a commit 8dea7de

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/content-script/hooks/twitter.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,8 +273,9 @@ class TwitterHook {
273273
...Array.from(tweet.querySelectorAll('[data-testid="tweetPhoto"] img')).map((img) =>
274274
img.getAttribute('src'),
275275
),
276-
// ...Array.from(tweet.querySelectorAll('[data-testid="videoPlayer"] video'))
277-
// .map(video => video.getAttribute('src')), // Not downloadable
276+
...Array.from(tweet.querySelectorAll('[data-testid="videoPlayer"] video')).map((video) =>
277+
video.getAttribute('poster'),
278+
),
278279
].filter((url) => !!url) as string[];
279280
const syncStatus = createApp(SyncStatus, {
280281
getNote: async () => {

0 commit comments

Comments
 (0)