Merge pull request #493 from mahkoh/liveleak

fix liveleak embed
This commit is contained in:
Zixaphir 2013-12-02 20:06:29 -08:00
commit 8fc3a6e329

View File

@ -288,8 +288,13 @@ Linkify =
LiveLeak:
regExp: /.*(?:liveleak.com\/view.+i=)([0-9a-z_]+)/
el: (a) ->
$.el 'object',
innerHTML: "<embed src='http://www.liveleak.com/e/#{a.dataset.uid}?autostart=true' wmode='opaque' width='640' height='390' pluginspage='http://get.adobe.com/flashplayer/' type='application/x-shockwave-flash'></embed>"
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