Turn on looping for webms on is.4chan.org.
This commit is contained in:
parent
67a862dba5
commit
30a87b5057
@ -194,7 +194,7 @@ Embedding =
|
|||||||
controls: true
|
controls: true
|
||||||
preload: 'auto'
|
preload: 'auto'
|
||||||
src: a.dataset.href
|
src: a.dataset.href
|
||||||
loop: /^https?:\/\/i\.4cdn\.org\//.test a.dataset.href
|
loop: /^https?:\/\/(i\.4cdn|is\.4chan)\.org\//.test a.dataset.href
|
||||||
$.on el, 'loadedmetadata', ->
|
$.on el, 'loadedmetadata', ->
|
||||||
if el.videoHeight is 0 and el.parentNode
|
if el.videoHeight is 0 and el.parentNode
|
||||||
$.replace el, Embedding.types.audio.el(a)
|
$.replace el, Embedding.types.audio.el(a)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user