How to disable WhatsApp Web's voice message chimes
It's pretty annoying to be playing a voice message just for the chime to play at max volume... because the voice message's volume was low.
Just to be clear, this can work on any site, and this can block any audio file. But just for the sake of this gist—we’ll be focusing on how to disable the sounds played when listening to a voice note.
The voice message chime is annoying—imagine listening to a voice note and you’re doing something else, just for a loud ass sound to go down in your eardrums as it goes to play the next one.
You can go look and use the userscript if you want to, it’s just that the .mp3 filename for both the “continuing” and the “finish” chimes has been changed since when this gist has been created. If you’ve imported the userscript and the chimes are still playing, continuing reading this gist to understand how to fetch and update the filename in the userscript.
Click Here!
// ==UserScript==
// @name Disable WhatsApp Web voice message chimes
// @match https://web.whatsapp.com/*
// @run-at document-start
// @version 1.0
// @author pparaxan
// @icon https://raw.githubusercontent.com/pparaxan/.profile/refs/heads/master/xan!Brand_GradientOverlay.png
// ==/UserScript==
HTMLMediaElement.prototype.play = (function(orig) {
return function() {
const src = this.src || '';
if (src.includes('ze2kHBO') || src.includes('WElxnwAGYY2')) {
return Promise.resolve();
}
return orig.apply(this, arguments);
};
})(HTMLMediaElement.prototype.play);This is how you fetch and update the filenames of the .mp3 you’ll want to block:
- Open your DevTools Console1 and paste this to intercept all audio play calls:
HTMLMediaElement.prototype.play = function() {
console.log('Audio played:', this.src);
};Trigger the sound you’ll want to identify, in this case—those annoying voice message chimes. Play a voice note and wait for those chimes to play, then—check the console for the logged
srcURL.Once you’ve gotten the filename(s) of the sound you’ll want to block, again in this case—the chimes, go on your userscript manager2 of choice and import the script3 provided earlier, then edit it by replacing the values that’s around both
src.includes(first for the “continuing” chime and the other is for the “finish” chime) with the filenames of the.mp3you’ve fetched via the Console.Save and close the script and refresh WhatsApp Web.
Ctrl + Shift + I≈⌥ + ⌘ + I↩︎Example of which is ViolentMonkey ; https://wikipedia.org/wiki/Userscript_manager . Do keep in note that for most userscripts managers out there doesn’t support Chrome (common L—use a Firefox-based browser) due to it being on Manifest V2 than V3. ↩︎
The
Click Here!text. ↩︎
