From 457cc56f1abe207e9e8064bfdf70387c14ea8ead Mon Sep 17 00:00:00 2001
From: kasenvr <52365539+kasenvr@users.noreply.github.com>
Date: Mon, 21 Sep 2020 23:48:36 -0400
Subject: [PATCH] Update FloofChat.html
Fix formatting issues.
---
scripts/communityScripts/chat/FloofChat.html | 16 +++++++---------
1 file changed, 7 insertions(+), 9 deletions(-)
diff --git a/scripts/communityScripts/chat/FloofChat.html b/scripts/communityScripts/chat/FloofChat.html
index 7c6d54f608..b2576ceba6 100644
--- a/scripts/communityScripts/chat/FloofChat.html
+++ b/scripts/communityScripts/chat/FloofChat.html
@@ -198,7 +198,8 @@
case ext == "webm":
var replaceWith = "
";
replaceWith += "
";
+ replaceWith += "' type='video/" + ext + "'>";
+ replaceWith += "
";
replaceWith += "" + this + "";
replaceWith += "📲";
@@ -208,17 +209,14 @@
case protocol === "hifi":
elContent = elContent.replace(this, "
" + this + "");
break;
- case !!this.match(/(https?:\/\/)?(www\.)?(youtube\.com\/watch\?v=|youtu\.be\/)([^& \n<]+)(?:[^ \n<]+)?/g):
+ case !!this.match(/(https?:\/\/)?(www\.)?(youtube\.com\/watch\?v=|youtu\.be\/)([^& \n<]+)(?:[^ \n<]+)?/g):
var youtubeMatch = this.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=)([^#\&\?]*).*/);
if (youtubeMatch && youtubeMatch[2].length == 11) {
var replaceWith = "
";
- replaceWith += "