Use HTTPS in formatURL
This commit is contained in:
parent
8d40c87dda
commit
ef9c744003
|
@ -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":
|
||||
|
|
|
@ -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":
|
||||
|
|
Loading…
Reference in a new issue