scrololololololol

This commit is contained in:
2026-07-16 08:47:24 +02:00
parent 4d19837645
commit 0af53bf08a

View File

@@ -765,6 +765,9 @@
fetchSidebarYoutubeTitles(node); fetchSidebarYoutubeTitles(node);
playSidebarEmojiVideos(node); playSidebarEmojiVideos(node);
}); });
// Deferred re-check for image comments — mirrors renderFromCache behaviour.
// Images in newly appended nodes may not be laid out yet at append time.
setTimeout(() => addedNodes.forEach(node => checkOverflow(node)), 1000);
// Auto-play converted GIF videos and webm emoji stickers // Auto-play converted GIF videos and webm emoji stickers
container.querySelectorAll('video.autoplay-gif').forEach(v => { v.autoplay = true; v.muted = true; v.play().catch(() => { v.addEventListener('canplay', () => v.play().catch(() => { }), { once: true }); }); }); container.querySelectorAll('video.autoplay-gif').forEach(v => { v.autoplay = true; v.muted = true; v.play().catch(() => { v.addEventListener('canplay', () => v.play().catch(() => { }), { once: true }); }); });
} }