From 5930bc031ba459af0a1af06cc10537f0a3c4e0a9 Mon Sep 17 00:00:00 2001 From: mahkoh <=> Date: Mon, 2 Dec 2013 22:29:14 +0100 Subject: [PATCH] fix liveleak embed --- src/Linkification/Linkify.coffee | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/Linkification/Linkify.coffee b/src/Linkification/Linkify.coffee index df06e1937..9085da970 100755 --- a/src/Linkification/Linkify.coffee +++ b/src/Linkification/Linkify.coffee @@ -288,8 +288,13 @@ Linkify = LiveLeak: regExp: /.*(?:liveleak.com\/view.+i=)([0-9a-z_]+)/ el: (a) -> - $.el 'object', - innerHTML: "" + ret = $.el 'iframe', + width: "640", + height: "360", + src: "http://www.liveleak.com/ll_embed?i=#{a.dataset.uid}", + frameborder: "0" + ret.setAttribute "allowfullscreen", "true" + ret MediaCrush: regExp: /.*(?:mediacru.sh\/)([0-9a-z_]+)/i