Created
April 27, 2024 07:11
-
-
Save Rohitbels/d6d6249eb45cb6fefe118f9ae463fa56 to your computer and use it in GitHub Desktop.
Increase Chrome Volume beyond 100%
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
(function() { | |
if (window["_gainNode"]) { | |
window["_gainNode"].gain.value = parseFloat(prompt('Set the playback rate')); | |
return; | |
} | |
var v = document.querySelector('video'); | |
var audioCtx = new AudioContext(); | |
var source = audioCtx.createMediaElementSource(v); | |
var gainNode = audioCtx.createGain(); | |
gainNode.gain.value = parseFloat(prompt('Set the audio gain')); | |
source.connect(gainNode); | |
gainNode.connect(audioCtx.destination); | |
window["_gainNode"] = gainNode; | |
})() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment