tl;dr You can also watch a quick 60-second animated video covering all these details:




// Detect dark theme
var iframe = document.getElementById('tweet-2023756279282589847-646');
if (document.body.className.includes('dark-theme')) {
iframe.src = "https://platform.twitter.com/embed/Tweet.html?id=2023756279282589847&theme=dark"
...