From 83f1d4ca013cd4b669abbc2809c041abe5d90437 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Wed, 21 Jan 2015 15:59:34 -0800 Subject: [PATCH] Add Flash Youtube to anti-autoplay. --- src/Miscellaneous/AntiAutoplay.coffee | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Miscellaneous/AntiAutoplay.coffee b/src/Miscellaneous/AntiAutoplay.coffee index 919bd8fb5..1f7dbee7a 100644 --- a/src/Miscellaneous/AntiAutoplay.coffee +++ b/src/Miscellaneous/AntiAutoplay.coffee @@ -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', '') \ No newline at end of file