Fix anti-autoplay regression causing some videos not to show up.
This commit is contained in:
parent
739785f7a5
commit
211dd1839f
@ -29,5 +29,5 @@ AntiAutoplay =
|
|||||||
|
|
||||||
processVideo: (el, attr) ->
|
processVideo: (el, attr) ->
|
||||||
el[attr] = el[attr].replace(/\?autoplay=1&?/, '?').replace('&autoplay=1', '')
|
el[attr] = el[attr].replace(/\?autoplay=1&?/, '?').replace('&autoplay=1', '')
|
||||||
el.style.display = 'block' if window.getComputedStyle(el).display is 'hidden'
|
el.style.display = 'block' if window.getComputedStyle(el).display is 'none'
|
||||||
$.addClass el, 'autoplay-removed'
|
$.addClass el, 'autoplay-removed'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user