Forgot a return
Also consistency.
This commit is contained in:
parent
0cafd9ae61
commit
0e1b8c099c
@ -5682,15 +5682,16 @@
|
|||||||
LiveLeak: {
|
LiveLeak: {
|
||||||
regExp: /.*(?:liveleak.com\/view.+i=)([0-9a-z_]+)/,
|
regExp: /.*(?:liveleak.com\/view.+i=)([0-9a-z_]+)/,
|
||||||
el: function(a) {
|
el: function(a) {
|
||||||
var ret;
|
var el;
|
||||||
|
|
||||||
ret = $.el('iframe', {
|
el = $.el('iframe', {
|
||||||
width: "640",
|
width: "640",
|
||||||
height: "360",
|
height: "360",
|
||||||
src: "http://www.liveleak.com/ll_embed?i=" + a.dataset.uid,
|
src: "http://www.liveleak.com/ll_embed?i=" + a.dataset.uid,
|
||||||
frameborder: "0"
|
frameborder: "0"
|
||||||
});
|
});
|
||||||
return ret.setAttribute("allowfullscreen", "true");
|
el.setAttribute("allowfullscreen", "true");
|
||||||
|
return el;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
MediaCrush: {
|
MediaCrush: {
|
||||||
@ -5850,13 +5851,13 @@
|
|||||||
YouTube: {
|
YouTube: {
|
||||||
regExp: /.*(?:youtu.be\/|youtube.*v=|youtube.*\/embed\/|youtube.*\/v\/|youtube.*videos\/)([^#\&\?]*)\??(t\=.*)?/,
|
regExp: /.*(?:youtu.be\/|youtube.*v=|youtube.*\/embed\/|youtube.*\/v\/|youtube.*videos\/)([^#\&\?]*)\??(t\=.*)?/,
|
||||||
el: function(a) {
|
el: function(a) {
|
||||||
var ret;
|
var el;
|
||||||
|
|
||||||
ret = $.el('iframe', {
|
el = $.el('iframe', {
|
||||||
src: "//www.youtube.com/embed/" + a.dataset.uid + (a.dataset.option ? '#' + a.dataset.option : '') + "?wmode=opaque"
|
src: "//www.youtube.com/embed/" + a.dataset.uid + (a.dataset.option ? '#' + a.dataset.option : '') + "?wmode=opaque"
|
||||||
});
|
});
|
||||||
ret.setAttribute("allowfullscreen", "true");
|
el.setAttribute("allowfullscreen", "true");
|
||||||
return ret;
|
return el;
|
||||||
},
|
},
|
||||||
title: {
|
title: {
|
||||||
api: function(uid) {
|
api: function(uid) {
|
||||||
|
|||||||
@ -5687,15 +5687,16 @@
|
|||||||
LiveLeak: {
|
LiveLeak: {
|
||||||
regExp: /.*(?:liveleak.com\/view.+i=)([0-9a-z_]+)/,
|
regExp: /.*(?:liveleak.com\/view.+i=)([0-9a-z_]+)/,
|
||||||
el: function(a) {
|
el: function(a) {
|
||||||
var ret;
|
var el;
|
||||||
|
|
||||||
ret = $.el('iframe', {
|
el = $.el('iframe', {
|
||||||
width: "640",
|
width: "640",
|
||||||
height: "360",
|
height: "360",
|
||||||
src: "http://www.liveleak.com/ll_embed?i=" + a.dataset.uid,
|
src: "http://www.liveleak.com/ll_embed?i=" + a.dataset.uid,
|
||||||
frameborder: "0"
|
frameborder: "0"
|
||||||
});
|
});
|
||||||
return ret.setAttribute("allowfullscreen", "true");
|
el.setAttribute("allowfullscreen", "true");
|
||||||
|
return el;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
MediaCrush: {
|
MediaCrush: {
|
||||||
@ -5855,13 +5856,13 @@
|
|||||||
YouTube: {
|
YouTube: {
|
||||||
regExp: /.*(?:youtu.be\/|youtube.*v=|youtube.*\/embed\/|youtube.*\/v\/|youtube.*videos\/)([^#\&\?]*)\??(t\=.*)?/,
|
regExp: /.*(?:youtu.be\/|youtube.*v=|youtube.*\/embed\/|youtube.*\/v\/|youtube.*videos\/)([^#\&\?]*)\??(t\=.*)?/,
|
||||||
el: function(a) {
|
el: function(a) {
|
||||||
var ret;
|
var el;
|
||||||
|
|
||||||
ret = $.el('iframe', {
|
el = $.el('iframe', {
|
||||||
src: "//www.youtube.com/embed/" + a.dataset.uid + (a.dataset.option ? '#' + a.dataset.option : '') + "?wmode=opaque"
|
src: "//www.youtube.com/embed/" + a.dataset.uid + (a.dataset.option ? '#' + a.dataset.option : '') + "?wmode=opaque"
|
||||||
});
|
});
|
||||||
ret.setAttribute("allowfullscreen", "true");
|
el.setAttribute("allowfullscreen", "true");
|
||||||
return ret;
|
return el;
|
||||||
},
|
},
|
||||||
title: {
|
title: {
|
||||||
api: function(uid) {
|
api: function(uid) {
|
||||||
|
|||||||
@ -288,12 +288,13 @@ Linkify =
|
|||||||
LiveLeak:
|
LiveLeak:
|
||||||
regExp: /.*(?:liveleak.com\/view.+i=)([0-9a-z_]+)/
|
regExp: /.*(?:liveleak.com\/view.+i=)([0-9a-z_]+)/
|
||||||
el: (a) ->
|
el: (a) ->
|
||||||
ret = $.el 'iframe',
|
el = $.el 'iframe',
|
||||||
width: "640",
|
width: "640",
|
||||||
height: "360",
|
height: "360",
|
||||||
src: "http://www.liveleak.com/ll_embed?i=#{a.dataset.uid}",
|
src: "http://www.liveleak.com/ll_embed?i=#{a.dataset.uid}",
|
||||||
frameborder: "0"
|
frameborder: "0"
|
||||||
ret.setAttribute "allowfullscreen", "true"
|
el.setAttribute "allowfullscreen", "true"
|
||||||
|
el
|
||||||
|
|
||||||
MediaCrush:
|
MediaCrush:
|
||||||
regExp: /.*(?:mediacru.sh\/)([0-9a-z_]+)/i
|
regExp: /.*(?:mediacru.sh\/)([0-9a-z_]+)/i
|
||||||
@ -408,10 +409,10 @@ Linkify =
|
|||||||
YouTube:
|
YouTube:
|
||||||
regExp: /.*(?:youtu.be\/|youtube.*v=|youtube.*\/embed\/|youtube.*\/v\/|youtube.*videos\/)([^#\&\?]*)\??(t\=.*)?/
|
regExp: /.*(?:youtu.be\/|youtube.*v=|youtube.*\/embed\/|youtube.*\/v\/|youtube.*videos\/)([^#\&\?]*)\??(t\=.*)?/
|
||||||
el: (a) ->
|
el: (a) ->
|
||||||
ret = $.el 'iframe',
|
el = $.el 'iframe',
|
||||||
src: "//www.youtube.com/embed/#{a.dataset.uid}#{if a.dataset.option then '#' + a.dataset.option else ''}?wmode=opaque"
|
src: "//www.youtube.com/embed/#{a.dataset.uid}#{if a.dataset.option then '#' + a.dataset.option else ''}?wmode=opaque"
|
||||||
ret.setAttribute "allowfullscreen", "true"
|
el.setAttribute "allowfullscreen", "true"
|
||||||
ret
|
el
|
||||||
title:
|
title:
|
||||||
api: (uid) -> "https://gdata.youtube.com/feeds/api/videos/#{uid}?alt=json&fields=title/text(),yt:noembed,app:control/yt:state/@reasonCode"
|
api: (uid) -> "https://gdata.youtube.com/feeds/api/videos/#{uid}?alt=json&fields=title/text(),yt:noembed,app:control/yt:state/@reasonCode"
|
||||||
text: (data) -> data.entry.title.$t
|
text: (data) -> data.entry.title.$t
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user