Update Openings.moe embedding.

This commit is contained in:
ccd0 2020-03-29 11:54:31 -07:00
parent 5070f2c613
commit 96bb1d66ad

View File

@ -413,13 +413,12 @@ Embedding =
, ,
key: 'Openings.moe' key: 'Openings.moe'
regExp: /^\w+:\/\/openings.moe\/\?video=([^.&=]+)/ regExp: /^\w+:\/\/openings.moe\/\?video=([^.&=]+)/
style: 'max-width: 80vw; max-height: 80vh;' style: 'width: 1280px; height: 720px; max-width: 80vw; max-height: 80vh;'
el: (a) -> el: (a) ->
$.el 'video', el = $.el 'iframe',
controls: true src: "https://openings.moe/?video=#{a.dataset.uid}",
preload: 'auto' el.setAttribute "allowfullscreen", "true"
src: "//openings.moe/video/#{a.dataset.uid}.webm" el
loop: true
, ,
key: 'Pastebin' key: 'Pastebin'
regExp: /^\w+:\/\/(?:\w+\.)?pastebin\.com\/(?!u\/)(?:[\w.]+(?:\/|\?i\=))?(\w+)/ regExp: /^\w+:\/\/(?:\w+\.)?pastebin\.com\/(?!u\/)(?:[\w.]+(?:\/|\?i\=))?(\w+)/