Greasy Fork is available in English.

Twitter(X)ᴾˡᵘˢ+++ ; Youtubeᴾˡᵘˢ+++

Ova skripta će poboljšati neke web stranice. 🔥Twitter(X): Dodajte prikaz formatiranja vremena, HD prikaz slike, preuzimanje slika i videa itd. 🔥Youtube: Dodajte preuzimanje videa, uklanjanje oglasa itd. 🔥Tiktok: Omogućite preuzimanje HD videa bez vodenog žiga itd. Za više značajki , provjerite opis~

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

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

Sign in to post a reply.