Add Flash Youtube to anti-autoplay.
This commit is contained in:
parent
8f13c7e9e0
commit
83f1d4ca01
@ -26,3 +26,5 @@ AntiAutoplay =
|
||||
process: (root) ->
|
||||
for iframe in $$ 'iframe[src*="youtube"][src*="autoplay=1"]', root
|
||||
iframe.src = iframe.src.replace(/\?autoplay=1&?/, '?').replace('&autoplay=1', '')
|
||||
for object in $$ 'object[data*="youtube"][data*="autoplay=1"]', root
|
||||
object.data = object.data.replace(/\?autoplay=1&?/, '?').replace('&autoplay=1', '')
|
||||
Loading…
x
Reference in New Issue
Block a user