I know about the existence of browser extensions on this topic, but I am interested in the solution of this issue by the user (console, bookmarklet)

From what I found on this topic, it’s just the location of the original notification sounds *1 and the script responsible for it *2

 *1 https://vk.com/mp3/bb1.mp3 https://vk.com/mp3/bb2.mp3 https://vk.com/mp3/bb3.mp3 *2 https://vk.com/js/cmodules/web/notifier.js?72053950056 

I don’t know what to do next with this information, because I don’t really know anything about writing code

    1 answer 1

    In order to replace the notification sound, you can replace the Sound object in the sound_im property of the global curNotifier object

     curNotifier.sound_im = new Sound("mp3/bb1") 

    Where, as an argument, the uri part of the required sound file is passed to the Sound class constructor.

    Perhaps, depending on the settings, you need to change another property of the curNotifier object, namely sound or sound_im_current

     curNotifier.sound = new Sound("mp3/bb1") curNotifier.sound_im_current = new Sound("mp3/bb1") 

    Also, before replacing, you may need to make sure that the global curNotifier object exists and has been initialized. Otherwise, you will need to wait for this initialization, or initiate initialization yourself