Skip to content

Instantly share code, notes, and snippets.

@safaorhan
Last active September 3, 2026 11:14
Show Gist options
  • Select an option

  • Save safaorhan/de2f47afef7468db4594b000a87df754 to your computer and use it in GitHub Desktop.

Select an option

Save safaorhan/de2f47afef7468db4594b000a87df754 to your computer and use it in GitHub Desktop.
Boost audio of a video in Google Drive
// Step 1: Open developer console
// Step 2: Select the correct console context. At the moment it is embed/youtube.googleapis.com
// Step 3: Paste the code below to console and hit Enter / Return. It will boost audio to 1000%.
(function boost(multiplier = 10.0) {
const video = document.querySelector('video');
if (!video) return console.error('No video element found.');
// Create or reuse existing Web Audio API context chain
window.audioCtx = window.audioCtx || new (window.AudioContext || window.webkitAudioContext)();
window.gainNode = window.gainNode || window.audioCtx.createGain();
window.audioSrc = window.audioSrc || window.audioCtx.createMediaElementSource(video);
// Apply volume multiplier and connect nodes
window.gainNode.gain.value = multiplier;
window.audioSrc.connect(window.gainNode).connect(window.audioCtx.destination);
console.log(`Audio boosted to ${multiplier * 100}%`);
})();
// You can then control the multiplier by running: window.gainNode.gain.value = 4.0;
@safaorhan

Copy link
Copy Markdown
Author

This is how you select correct console context for Step 2:

Screenshot 2026-09-03 at 10 37 27

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment