From 8df8fed3204be25b067295907fa6524186cca620 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Thu, 5 May 2016 13:57:46 -0700 Subject: [PATCH] Add openings.moe embedding. --- src/Linkification/Embedding.coffee | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/Linkification/Embedding.coffee b/src/Linkification/Embedding.coffee index d231d7e61..e979d3d9c 100644 --- a/src/Linkification/Embedding.coffee +++ b/src/Linkification/Embedding.coffee @@ -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+)/