diff --git a/Resources/Scripts/code.js b/Resources/Scripts/code.js index 3a8d310a..3d5f7bdd 100644 --- a/Resources/Scripts/code.js +++ b/Resources/Scripts/code.js @@ -585,6 +585,13 @@ }); })(); + // + // Block: Fix youtu.be previews not showing up for https links. + // + TD.services.TwitterMedia.YOUTUBE_TINY_RE = new RegExp(TD.services.TwitterMedia.YOUTUBE_TINY_RE.source.replace("http:", "https?:")); + TD.services.TwitterMedia.YOUTUBE_RE = new RegExp(TD.services.TwitterMedia.YOUTUBE_LONG_RE.source+"|"+TD.services.TwitterMedia.YOUTUBE_TINY_RE.source); + TD.services.TwitterMedia.SERVICES["youtube"] = TD.services.TwitterMedia.YOUTUBE_RE; + // // Block: Finish initialization and load plugins. //