From 066a8789e954a9550ae72158aab856b66ad20f90 Mon Sep 17 00:00:00 2001 From: Jiiks Date: Tue, 29 Mar 2016 02:39:27 +0300 Subject: [PATCH] http => https check --- Plugins/videoSupport.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Plugins/videoSupport.js b/Plugins/videoSupport.js index 754e509..4274ac7 100644 --- a/Plugins/videoSupport.js +++ b/Plugins/videoSupport.js @@ -3,10 +3,11 @@ var videoSupport = function () {}; videoSupport.prototype.convert = function () { - $(".message-group a").each(function() { + $(".message-group a").each(function() { var t = $(this); var href = t.attr("href"); if(href == undefined) return true; + href = href.replace("http", "https"); if(!href.endsWith(".mp4") && !href.endsWith(".webm") && !href.endsWith(".ogg")) return true; var type = "webm"; if(href.endsWith(".mp4")) type = "mp4";