Turn on looping for webms on is.4chan.org.

This commit is contained in:
ccd0 2016-11-17 19:34:29 -08:00
parent 67a862dba5
commit 30a87b5057

View File

@ -194,7 +194,7 @@ Embedding =
controls: true
preload: 'auto'
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', ->
if el.videoHeight is 0 and el.parentNode
$.replace el, Embedding.types.audio.el(a)