Skip to content

Commit

Permalink
Merge pull request #46 from the-nelsonator/master
Browse files Browse the repository at this point in the history
Add new amplify_video_thumb link format to isMobileVideo
  • Loading branch information
AlttiRi authored Oct 18, 2024
2 parents 407bcc6 + 234f4c2 commit 9cdf446
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion twitter-click-and-save.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ function hoistFeatures() {
continue;
}

const isMobileVideo = img.src.includes("ext_tw_video_thumb") || img.closest(`a[aria-label="Embedded video"]`) || img.alt === "Animated Text GIF" || img.alt === "Embedded video"
const isMobileVideo = img.src.includes("ext_tw_video_thumb") || img.src.includes("amplify_video_thumb") || img.closest(`a[aria-label="Embedded video"]`) || img.alt === "Animated Text GIF" || img.alt === "Embedded video"
|| img.src.includes("tweet_video_thumb") /* GIF thumb */;
if (isMobileVideo) {
await Features.mobileVideoHandler(img, isThumb);
Expand Down

0 comments on commit 9cdf446

Please sign in to comment.