Add openings.moe embedding.

This commit is contained in:
ccd0 2016-05-05 13:57:46 -07:00
parent 49128b5399
commit 8df8fed320

View File

@ -225,6 +225,16 @@ Embedding =
src: "http://www.liveleak.com/ll_embed?i=#{a.dataset.uid}",
el.setAttribute "allowfullscreen", "true"
el
,
key: 'openings.moe'
regExp: /^\w+:\/\/openings.moe\/\?video=([^&=]+\.webm)/
style: 'max-width: 80vw; max-height: 80vh;'
el: (a) ->
$.el 'video',
controls: true
preload: 'auto'
src: "//openings.moe/video/#{a.dataset.uid}"
loop: true
,
key: 'Pastebin'
regExp: /^\w+:\/\/(?:\w+\.)?pastebin\.com\/(?!u\/)(?:[\w\.]+\?i\=)?(\w+)/