diff --git a/builds/appchan-x.user.js b/builds/appchan-x.user.js index 83aa1d21b..7f7b6f1b6 100644 --- a/builds/appchan-x.user.js +++ b/builds/appchan-x.user.js @@ -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) { diff --git a/builds/crx/script.js b/builds/crx/script.js index c0144f128..eb3ac0690 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -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) { diff --git a/src/Linkification/Linkify.coffee b/src/Linkification/Linkify.coffee index 9085da970..50e6dfe21 100755 --- a/src/Linkification/Linkify.coffee +++ b/src/Linkification/Linkify.coffee @@ -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