Greasy Fork is available in English.
一键保存视频/图片
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}`);
Script works again for me
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.