Greasy Fork

Greasy Fork is available in English.

Twitter 媒体下载

一键保存视频/图片

< 脚本 Twitter 媒体下载 的反馈

提问 / 留言

§
发布于:2025-07-08

Script is not working. Console log:

Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'find') at Object.fetchJson (userscript.html?name=Twitter-Media-Downloader.user.js&id=7ef847c0-e419-4ad2-acb9-624ce5a9bf0f:305:109) at async Object.click (userscript.html?name=Twitter-Media-Downloader.user.js&id=7ef847c0-e419-4ad2-acb9-624ce5a9bf0f:129:18)

Script is modded. I added // @match https://x.com/* on line 15 and that's all.

§
发布于:2025-07-10

Script is not working. Console log:

Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'find')
at Object.fetchJson (userscript.html?name=Twitter-Media-Downloader.user.js&id=7ef847c0-e419-4ad2-acb9-624ce5a9bf0f:305:109)
at async Object.click (userscript.html?name=Twitter-Media-Downloader.user.js&id=7ef847c0-e419-4ad2-acb9-624ce5a9bf0f:129:18)

Script is modded. I added // @match https://x.com/* on line 15 and that's all.

Use

let tweet_entrie = tweet_detail.data.threaded_conversation_with_injections_v2.instructions
.flatMap(i => i.entries || [])
.find(n => n.entryId === `tweet-${status_id}`);

Instead of

let tweet_entrie = tweet_detail.data.threaded_conversation_with_injections_v2.instructions[0].entries.find(n => n.entryId == `tweet-${status_id}`);

§
发布于:2025-07-11

Script works again for me

发布留言

登录以发布留言。