Last active
September 3, 2026 11:14
-
-
Save safaorhan/de2f47afef7468db4594b000a87df754 to your computer and use it in GitHub Desktop.
Boost audio of a video in Google Drive
This file contains hidden or 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
| // 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; |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is how you select correct console context for Step 2: