diff --git a/expandvideo.js b/expandvideo.js index 60e50906..e63f07f6 100644 --- a/expandvideo.js +++ b/expandvideo.js @@ -106,6 +106,9 @@ function setupVideo(thumb, url) { if (bottom > window.innerHeight) { window.scrollBy(0, bottom - window.innerHeight); } + // work around Firefox volume control bug + video.volume = Math.max(setting("videovolume") - 0.001, 0); + video.volume = setting("videovolume"); } // Hovering over thumbnail displays video