Add PeerTube embedding.
This commit is contained in:
parent
5ebcaffbd7
commit
e5526185d6
@ -234,6 +234,15 @@ Embedding =
|
||||
else
|
||||
el.hidden = false
|
||||
el
|
||||
,
|
||||
key: 'PeerTube'
|
||||
regExp: /^(\w+:\/\/[^\/]+\/videos\/watch\/\w{8}-\w{4}-\w{4}-\w{4}-\w{12})(.*)/
|
||||
el: (a) ->
|
||||
options = if (start = a.dataset.options.match /[?&](start=\w+)/) then "?#{start[1]}" else ''
|
||||
el = $.el 'iframe',
|
||||
src: a.dataset.uid.replace('/videos/watch/', '/videos/embed/') + options
|
||||
el.setAttribute "allowfullscreen", "true"
|
||||
el
|
||||
,
|
||||
key: 'BitChute'
|
||||
regExp: /^\w+:\/\/(?:www\.)?bitchute\.com\/video\/([\w\-]+)/
|
||||
|
||||
BIN
src/css/linkify.peertube.png
Normal file
BIN
src/css/linkify.peertube.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 844 B |
Loading…
x
Reference in New Issue
Block a user