From 458f918c4dd20a0cba82f8b056f705e85b08c768 Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Thu, 8 Apr 2021 09:08:19 -0500 Subject: [PATCH] Remove the autoplay attribute from videos if they have it. Fixes #2973 --- Shared/Article Rendering/main.js | 1 + 1 file changed, 1 insertion(+) diff --git a/Shared/Article Rendering/main.js b/Shared/Article Rendering/main.js index 1ff819fc8..084eb0a5f 100644 --- a/Shared/Article Rendering/main.js +++ b/Shared/Article Rendering/main.js @@ -72,6 +72,7 @@ function inlineVideos() { element.setAttribute("playsinline", true); if (!element.classList.contains("nnwAnimatedGIF")) { element.setAttribute("controls", true); + element.removeAttribute("autoplay"); } }); }