linkify fixes
This commit is contained in:
parent
3bc0fa4b32
commit
ebf2ae1999
@ -232,7 +232,7 @@ Linkify =
|
|||||||
src: a.href
|
src: a.href
|
||||||
,
|
,
|
||||||
key: 'gist'
|
key: 'gist'
|
||||||
regExp: /^\w+:\/\/gist\.github\.com\/(?:[\w-]+\/)?(\w+)/
|
regExp: /^\w+:\/\/gist\.github\.com\/(?:[\w\-]+\/)?(\w+)/
|
||||||
el: (a) ->
|
el: (a) ->
|
||||||
el = $.el 'iframe'
|
el = $.el 'iframe'
|
||||||
el.setAttribute 'sandbox', 'allow-scripts'
|
el.setAttribute 'sandbox', 'allow-scripts'
|
||||||
@ -275,7 +275,7 @@ Linkify =
|
|||||||
el
|
el
|
||||||
,
|
,
|
||||||
key: 'MediaCrush'
|
key: 'MediaCrush'
|
||||||
regExp: /^\w+:\/\/(?:www\.)?mediacru\.sh\/([\w-]+)/i
|
regExp: /^\w+:\/\/(?:www\.)?mediacru\.sh\/([\w\-]+)/i
|
||||||
style: 'border: 0;'
|
style: 'border: 0;'
|
||||||
el: (a) ->
|
el: (a) ->
|
||||||
el = $.el 'div'
|
el = $.el 'div'
|
||||||
@ -381,7 +381,7 @@ Linkify =
|
|||||||
src: "https://vine.co/v/#{a.dataset.uid}/card"
|
src: "https://vine.co/v/#{a.dataset.uid}/card"
|
||||||
,
|
,
|
||||||
key: 'YouTube'
|
key: 'YouTube'
|
||||||
regExp: /^\w+:\/\/(?:youtu.be\/|[\w\.]*youtube[\w\.]*\/.*(?:v=|\/embed\/|\/v\/|\/videos\/))([\w-]{11})[^#\&\?]?(.*)/
|
regExp: /^\w+:\/\/(?:youtu.be\/|[\w\.]*youtube[\w\.]*\/.*(?:v=|\/embed\/|\/v\/|\/videos\/))([\w\-]{11})[^#\&\?]?(.*)/
|
||||||
el: (a) ->
|
el: (a) ->
|
||||||
start = a.dataset.options.match /\b(?:star)?t\=(\w+)/
|
start = a.dataset.options.match /\b(?:star)?t\=(\w+)/
|
||||||
start = start[1] if start
|
start = start[1] if start
|
||||||
@ -410,8 +410,8 @@ Linkify =
|
|||||||
style: 'border: 0; width: auto; height: auto;'
|
style: 'border: 0; width: auto; height: auto;'
|
||||||
el: (a) ->
|
el: (a) ->
|
||||||
$.el 'video',
|
$.el 'video',
|
||||||
controls: 'controls'
|
controls: true
|
||||||
preload: 'auto'
|
preload: 'auto'
|
||||||
src: a.href
|
src: a.href
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user