Created
August 23, 2021 15:32
-
-
Save emlautarom1/875afbe6cd7c9db36d14182550d1fb94 to your computer and use it in GitHub Desktop.
Increase Youtube volume
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
const video = document.querySelector('video'); | |
const audioCtx = new AudioContext(); | |
const mediaSource = audioCtx.createMediaElementSource(video); | |
const gainNode = audioCtx.createGain(); | |
mediaSource.connect(gainNode); | |
gainNode.connect(audioCtx.destination); | |
// Increase this value for higher volume | |
gainNode.value = 50.00; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment