From b10699d24aca705e530968a85a1e10ffefccd86e Mon Sep 17 00:00:00 2001 From: ccd0 Date: Mon, 24 Jun 2019 02:40:45 -0700 Subject: [PATCH] Support BitChute embedding. #2038 --- src/Linkification/Embedding.coffee | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/Linkification/Embedding.coffee b/src/Linkification/Embedding.coffee index a4f25d254..1810a6ea3 100644 --- a/src/Linkification/Embedding.coffee +++ b/src/Linkification/Embedding.coffee @@ -234,6 +234,14 @@ Embedding = else el.hidden = false el + , + key: 'BitChute' + regExp: /^\w+:\/\/(?:www\.)?bitchute\.com\/video\/([\w\-]+)/ + el: (a) -> + el = $.el 'iframe', + src: "https://www.bitchute.com/embed/#{a.dataset.uid}/" + el.setAttribute "allowfullscreen", "true" + el , key: 'Clyp' regExp: /^\w+:\/\/(?:www\.)?clyp\.it\/(\w{8})/