diff --git a/src/utilities.js b/src/utilities.js index 831d4597..5e2bab4e 100644 --- a/src/utilities.js +++ b/src/utilities.js @@ -215,31 +215,31 @@ root.formatLink = function (id, type) { switch (type) { case "yt": - return "http://youtu.be/" + id; + return "https://youtu.be/" + id; case "vi": - return "http://vimeo.com/" + id; + return "https://vimeo.com/" + id; case "dm": - return "http://dailymotion.com/video/" + id; + return "https://dailymotion.com/video/" + id; case "vm": return "https://vid.me/" + id; case "sc": return id; case "li": - return "http://livestream.com/" + id; + return "https://livestream.com/" + id; case "tw": - return "http://twitch.tv/" + id; + return "https://twitch.tv/" + id; case "rt": return id; case "im": - return "http://imgur.com/a/" + id; + return "https://imgur.com/a/" + id; case "us": - return "http://ustream.tv/" + id; + return "https://ustream.tv/" + id; case "gd": return "https://docs.google.com/file/d/" + id; case "fi": return id; case "hb": - return "http://hitbox.tv/" + id; + return "https://hitbox.tv/" + id; case "hl": return id; case "sb": diff --git a/www/js/util.js b/www/js/util.js index 5545964e..4b6d8d21 100644 --- a/www/js/util.js +++ b/www/js/util.js @@ -25,31 +25,31 @@ function makeAlert(title, text, klass, textOnly) { function formatURL(data) { switch(data.type) { case "yt": - return "http://youtube.com/watch?v=" + data.id; + return "https://youtube.com/watch?v=" + data.id; case "vi": - return "http://vimeo.com/" + data.id; + return "https://vimeo.com/" + data.id; case "dm": - return "http://dailymotion.com/video/" + data.id; + return "https://dailymotion.com/video/" + data.id; case "vm": return "https://vid.me/" + data.id; case "sc": return data.id; case "li": - return "http://livestream.com/" + data.id; + return "https://livestream.com/" + data.id; case "tw": - return "http://twitch.tv/" + data.id; + return "https://twitch.tv/" + data.id; case "rt": return data.id; case "im": - return "http://imgur.com/a/" + data.id; + return "https://imgur.com/a/" + data.id; case "us": - return "http://ustream.tv/" + data.id; + return "https://ustream.tv/" + data.id; case "gd": return "https://docs.google.com/file/d/" + data.id; case "fi": return data.id; case "hb": - return "http://hitbox.tv/" + data.id; + return "https://hitbox.tv/" + data.id; case "hl": return data.id; case "sb":