Last active
December 29, 2022 20:50
-
-
Save itaditya/5ff2174e979b28d2c17dfaca5860b818 to your computer and use it in GitHub Desktop.
Increase volume above 100% on youtube and other sites.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var videoElem = document.querySelector('video'); | |
var audioCtx = new AudioContext(); | |
var source = audioCtx.createMediaElementSource(videoElem); | |
var gainNode = audioCtx.createGain(); | |
gainNode.gain.value = 5; | |
source.connect(gainNode); | |
gainNode.connect(audioCtx.destination); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment