update protocols (http/https) for embedded services

This commit is contained in:
ccd0 2014-07-18 21:07:29 -07:00
parent 246b43da74
commit e6f058a136

View File

@ -260,7 +260,7 @@ Linkify =
regExp: /.*(?:paste.installgentoo.com\/view\/)([0-9a-z_]+)/ regExp: /.*(?:paste.installgentoo.com\/view\/)([0-9a-z_]+)/
el: (a) -> el: (a) ->
$.el 'iframe', $.el 'iframe',
src: "http://paste.installgentoo.com/view/embed/#{a.dataset.uid}" src: "https://paste.installgentoo.com/view/embed/#{a.dataset.uid}"
, ,
key: 'Twitter' key: 'Twitter'
regExp: /.*twitter.com\/(.+\/status\/\d+)/ regExp: /.*twitter.com\/(.+\/status\/\d+)/
@ -322,14 +322,14 @@ Linkify =
regExp: /.*gfycat.com\/(?:iframe\/)?(\S*)/ regExp: /.*gfycat.com\/(?:iframe\/)?(\S*)/
el: (a) -> el: (a) ->
div = $.el 'iframe', div = $.el 'iframe',
src: "http://gfycat.com/iframe/#{a.dataset.uid}" src: "//gfycat.com/iframe/#{a.dataset.uid}"
, ,
key: 'SoundCloud' key: 'SoundCloud'
regExp: /.*(?:soundcloud.com\/|snd.sc\/)([^#\&\?]*).*/ regExp: /.*(?:soundcloud.com\/|snd.sc\/)([^#\&\?]*).*/
style: 'border: 0; width: 500px; height: 400px;' style: 'border: 0; width: 500px; height: 400px;'
el: (a) -> el: (a) ->
$.el 'iframe', $.el 'iframe',
src: "//w.soundcloud.com/player/?visual=true&show_comments=false&url=https%3A%2F%2Fsoundcloud.com%2F#{encodeURIComponent a.dataset.uid}" src: "https://w.soundcloud.com/player/?visual=true&show_comments=false&url=https%3A%2F%2Fsoundcloud.com%2F#{encodeURIComponent a.dataset.uid}"
title: title:
api: (uid) -> "//soundcloud.com/oembed?format=json&url=https%3A%2F%2Fsoundcloud.com%2F#{encodeURIComponent uid}" api: (uid) -> "//soundcloud.com/oembed?format=json&url=https%3A%2F%2Fsoundcloud.com%2F#{encodeURIComponent uid}"
text: (_) -> _.title text: (_) -> _.title