Last active
July 23, 2022 09:43
-
-
Save Qubus0/474b54299331a371216041f8a21c22c0 to your computer and use it in GitHub Desktop.
Lower audio volume for a whole webpage until refresh. Paste into the page console
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
for (let audio of document.querySelectorAll('audio')) {audio.volume = 0.5} | |
// lower volume periodically - good for google meet etc. | |
function lowerVolume(vol = .5) { | |
for (let audio of document.querySelectorAll('audio')) { | |
audio.volume = vol | |
} | |
} | |
let volInterval = setInterval(lowerVolume, 2000, .1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment