Use HTTPS in formatURL

This commit is contained in:
Calvin Montgomery 2017-04-11 21:57:05 -07:00
parent 8d40c87dda
commit ef9c744003
2 changed files with 16 additions and 16 deletions

View File

@ -215,31 +215,31 @@
root.formatLink = function (id, type) { root.formatLink = function (id, type) {
switch (type) { switch (type) {
case "yt": case "yt":
return "http://youtu.be/" + id; return "https://youtu.be/" + id;
case "vi": case "vi":
return "http://vimeo.com/" + id; return "https://vimeo.com/" + id;
case "dm": case "dm":
return "http://dailymotion.com/video/" + id; return "https://dailymotion.com/video/" + id;
case "vm": case "vm":
return "https://vid.me/" + id; return "https://vid.me/" + id;
case "sc": case "sc":
return id; return id;
case "li": case "li":
return "http://livestream.com/" + id; return "https://livestream.com/" + id;
case "tw": case "tw":
return "http://twitch.tv/" + id; return "https://twitch.tv/" + id;
case "rt": case "rt":
return id; return id;
case "im": case "im":
return "http://imgur.com/a/" + id; return "https://imgur.com/a/" + id;
case "us": case "us":
return "http://ustream.tv/" + id; return "https://ustream.tv/" + id;
case "gd": case "gd":
return "https://docs.google.com/file/d/" + id; return "https://docs.google.com/file/d/" + id;
case "fi": case "fi":
return id; return id;
case "hb": case "hb":
return "http://hitbox.tv/" + id; return "https://hitbox.tv/" + id;
case "hl": case "hl":
return id; return id;
case "sb": case "sb":

View File

@ -25,31 +25,31 @@ function makeAlert(title, text, klass, textOnly) {
function formatURL(data) { function formatURL(data) {
switch(data.type) { switch(data.type) {
case "yt": case "yt":
return "http://youtube.com/watch?v=" + data.id; return "https://youtube.com/watch?v=" + data.id;
case "vi": case "vi":
return "http://vimeo.com/" + data.id; return "https://vimeo.com/" + data.id;
case "dm": case "dm":
return "http://dailymotion.com/video/" + data.id; return "https://dailymotion.com/video/" + data.id;
case "vm": case "vm":
return "https://vid.me/" + data.id; return "https://vid.me/" + data.id;
case "sc": case "sc":
return data.id; return data.id;
case "li": case "li":
return "http://livestream.com/" + data.id; return "https://livestream.com/" + data.id;
case "tw": case "tw":
return "http://twitch.tv/" + data.id; return "https://twitch.tv/" + data.id;
case "rt": case "rt":
return data.id; return data.id;
case "im": case "im":
return "http://imgur.com/a/" + data.id; return "https://imgur.com/a/" + data.id;
case "us": case "us":
return "http://ustream.tv/" + data.id; return "https://ustream.tv/" + data.id;
case "gd": case "gd":
return "https://docs.google.com/file/d/" + data.id; return "https://docs.google.com/file/d/" + data.id;
case "fi": case "fi":
return data.id; return data.id;
case "hb": case "hb":
return "http://hitbox.tv/" + data.id; return "https://hitbox.tv/" + data.id;
case "hl": case "hl":
return data.id; return data.id;
case "sb": case "sb":