From 744dae4e7462ad11e82d2bca2bd600ac503bf7a2 Mon Sep 17 00:00:00 2001 From: Aevann Date: Thu, 18 Apr 2024 18:47:14 +0200 Subject: [PATCH] play videos by clicking on them --- files/assets/js/bottom.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/files/assets/js/bottom.js b/files/assets/js/bottom.js index 6c30725dd..45c3d4be9 100644 --- a/files/assets/js/bottom.js +++ b/files/assets/js/bottom.js @@ -234,6 +234,9 @@ document.addEventListener("click", function(e) { } } + if (element.tagName == "VIDEO" && element.readyState == 0) { + element.play() + } if (element.dataset.toggleelement) { if (element.dataset.toggleelement.startsWith('#reply-'))