Greasy Fork is available in English.

Twitter(X)ᴾˡᵘˢ+++ ; Youtubeᴾˡᵘˢ+++,etc.

Tập lệnh này sẽ cung cấp các cải tiến cho một số trang web. 🔥Twitter(X): Thêm hiển thị định dạng thời gian, hiển thị hình ảnh HD, tải xuống hình ảnh và video, v.v. 🔥Youtube: Thêm tải xuống video, xóa quảng cáo, v.v. 🔥Tiktok: Cung cấp tải xuống video HD không có hình mờ, v.v. Để biết thêm các tính năng, vui lòng kiểm tra phần mô tả~

< Feedback on Twitter(X)ᴾˡᵘˢ+++ ; Youtubeᴾˡᵘˢ+++,etc.

Review: Good - script works

§
Posted: 06-08-2024

If you cant download X images, try changing the code from line 923 to this


if (typeof medias === 'undefined') {
try {
// Verify if the tweet has media
if (json.quoted_status_result && json.quoted_status_result.result && json.quoted_status_result.result.legacy && json.quoted_status_result.result.legacy.extended_entities && json.quoted_status_result.result.legacy.extended_entities.media) {
let mediaEntities = json.quoted_status_result.result.legacy.extended_entities.media;
medias = Object.values(mediaEntities);
console.log("Medias:", medias);

// Extract image's URL
let imageUrls = medias.map(media => media.media_url_https);
console.log("Image URLs:", imageUrls);
} else {
console.warn("No media found in the quoted tweet.");
medias = [];
}
} catch (e) {
console.error("Error parsing media entities: ", e);
medias = [];
}
}

Post reply

Đăng nhập để bình luận