Skip to content

Commit

Permalink
fix clicks
Browse files Browse the repository at this point in the history
  • Loading branch information
dimdenGD committed Dec 6, 2023
1 parent b441056 commit b48932d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/tweetviewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -985,7 +985,7 @@ class TweetViewer {
${t.extended_entities && t.extended_entities.media ? /*html*/`
<div class="tweet-media">
${t.extended_entities.media.length === 1 && t.extended_entities.media[0].type === 'video' ? /*html*/`
<div class="tweet-media-video-overlay">
<div class="tweet-media-video-overlay tweet-button">
<svg viewBox="0 0 24 24" class="tweet-media-video-overlay-play">
<g>
<path class="svg-play-path" d="M8 5v14l11-7z"></path>
Expand All @@ -999,8 +999,8 @@ class TweetViewer {
${t.extended_entities && t.extended_entities.media && t.extended_entities.media.some(m => m.type === 'animated_gif') ? `<div class="tweet-media-controls">GIF</div>` : ''}
${videos ? /*html*/`
<div class="tweet-media-controls">
${videos[0].ext && videos[0].ext.mediaStats && videos[0].ext.mediaStats.r && videos[0].ext.mediaStats.r.ok ? `<span class="tweet-video-views">${Number(videos[0].ext.mediaStats.r.ok.viewCount).toLocaleString().replace(/\s/g, ',')} ${LOC.views.message}</span> • ` : ''}<span class="tweet-video-reload">${LOC.reload.message}</span> •
${videos[0].video_info.variants.filter(v => v.bitrate).map(v => `<span class="tweet-video-quality" data-url="${v.url}">${v.url.match(/\/(\d+)x/)[1] + 'p'}</span> `).join(" / ")}
${videos[0].ext && videos[0].ext.mediaStats && videos[0].ext.mediaStats.r && videos[0].ext.mediaStats.r.ok ? `<span class="tweet-video-views">${Number(videos[0].ext.mediaStats.r.ok.viewCount).toLocaleString().replace(/\s/g, ',')} ${LOC.views.message}</span> • ` : ''}<span class="tweet-video-reload tweet-button">${LOC.reload.message}</span> •
${videos[0].video_info.variants.filter(v => v.bitrate).map(v => `<span class="tweet-video-quality tweet-button" data-url="${v.url}">${v.url.match(/\/(\d+)x/)[1] + 'p'}</span> `).join(" / ")}
</div>
` : ``}
<span class="tweet-media-data"></span>
Expand Down

0 comments on commit b48932d

Please sign in to comment.