Merge branch 'v3'

Conflicts:
	builds/appchan-x.user.js
	builds/crx/script.js
	src/Linkification/Linkify.coffee
This commit is contained in:
Zixaphir 2013-12-16 14:05:03 -07:00
commit b7d6fa2659
3 changed files with 23 additions and 23 deletions

View File

@ -7962,16 +7962,16 @@
LiveLeak: {
regExp: /.*(?:liveleak.com\/view.+i=)([0-9a-z_]+)/,
el: function(a) {
var ret;
var el;
ret = $.el('iframe', {
el = $.el('iframe', {
width: "640",
height: "360",
src: "http://www.liveleak.com/ll_embed?i=" + a.dataset.uid,
frameborder: "0"
});
ret.setAttribute("allowfullscreen", "true");
return ret;
el.setAttribute("allowfullscreen", "true");
return el;
}
},
MediaCrush: {
@ -8131,13 +8131,13 @@
YouTube: {
regExp: /.*(?:youtu.be\/|youtube.*v=|youtube.*\/embed\/|youtube.*\/v\/|youtube.*videos\/)([^#\&\?]*)\??(t\=.*)?/,
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"
});
ret.setAttribute("allowfullscreen", "true");
return ret;
el.setAttribute("allowfullscreen", "true");
return el;
},
title: {
api: function(uid) {

View File

@ -7968,16 +7968,16 @@
LiveLeak: {
regExp: /.*(?:liveleak.com\/view.+i=)([0-9a-z_]+)/,
el: function(a) {
var ret;
var el;
ret = $.el('iframe', {
el = $.el('iframe', {
width: "640",
height: "360",
src: "http://www.liveleak.com/ll_embed?i=" + a.dataset.uid,
frameborder: "0"
});
ret.setAttribute("allowfullscreen", "true");
return ret;
el.setAttribute("allowfullscreen", "true");
return el;
}
},
MediaCrush: {
@ -8137,13 +8137,13 @@
YouTube: {
regExp: /.*(?:youtu.be\/|youtube.*v=|youtube.*\/embed\/|youtube.*\/v\/|youtube.*videos\/)([^#\&\?]*)\??(t\=.*)?/,
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"
});
ret.setAttribute("allowfullscreen", "true");
return ret;
el.setAttribute("allowfullscreen", "true");
return el;
},
title: {
api: function(uid) {

View File

@ -288,13 +288,13 @@ Linkify =
LiveLeak:
regExp: /.*(?:liveleak.com\/view.+i=)([0-9a-z_]+)/
el: (a) ->
ret = $.el 'iframe',
el = $.el 'iframe',
width: "640",
height: "360",
src: "http://www.liveleak.com/ll_embed?i=#{a.dataset.uid}",
frameborder: "0"
ret.setAttribute "allowfullscreen", "true"
ret
frameborder: "0"
el.setAttribute "allowfullscreen", "true"
el
MediaCrush:
regExp: /.*(?:mediacru.sh\/)([0-9a-z_]+)/i
@ -409,10 +409,10 @@ Linkify =
YouTube:
regExp: /.*(?:youtu.be\/|youtube.*v=|youtube.*\/embed\/|youtube.*\/v\/|youtube.*videos\/)([^#\&\?]*)\??(t\=.*)?/
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"
ret.setAttribute "allowfullscreen", "true"
ret
el.setAttribute "allowfullscreen", "true"
el
title:
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