Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@itaditya
Last active December 29, 2022 20:50
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save itaditya/5ff2174e979b28d2c17dfaca5860b818 to your computer and use it in GitHub Desktop.
Save itaditya/5ff2174e979b28d2c17dfaca5860b818 to your computer and use it in GitHub Desktop.
Increase volume above 100% on youtube and other sites.
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