Caprine: Customize the notification sound

Created on 10 May 2017  路  5Comments  路  Source: sindresorhus/caprine

I think it would be great to customize the incoming messages tone, because on Macs it sounds like an app just installed. Giving more customization options could be a huge opportunity for caprine.

enhancement help wanted

Most helpful comment

For reference, here are the resources used for incoming call & message tones.

"ringtone_mp3_url":"https://www.static.xx.fbcdn.net/rsrc.php/yh/r/taJw7SpZVz2.mp3",
"ringtone_ogg_url":"https://www.static.xx.fbcdn.net/rsrc.php/yO/r/kTasEyE42gs.ogg",
"sound.notif_mp3_url":"https://www.static.xx.fbcdn.net/rsrc.php/yq/r/OC4-KYxmKsR.mp3",
"sound.notif_ogg_url":"https://www.static.xx.fbcdn.net/rsrc.php/yy/r/XFhtdTsftOC.ogg"

.ogg files are used by default with .mp3 being fallback options. We could replace the sound files by intercepting requests and serving a locally stored sound file instead.

All 5 comments

馃憤 I doubt I'll work on this, but a pull request would be welcome :)

I really think this is not so necessary since the "final user" does not really think about those things, he just wants them to work.

But you can add with this no problem

For reference, here are the resources used for incoming call & message tones.

"ringtone_mp3_url":"https://www.static.xx.fbcdn.net/rsrc.php/yh/r/taJw7SpZVz2.mp3",
"ringtone_ogg_url":"https://www.static.xx.fbcdn.net/rsrc.php/yO/r/kTasEyE42gs.ogg",
"sound.notif_mp3_url":"https://www.static.xx.fbcdn.net/rsrc.php/yq/r/OC4-KYxmKsR.mp3",
"sound.notif_ogg_url":"https://www.static.xx.fbcdn.net/rsrc.php/yy/r/XFhtdTsftOC.ogg"

.ogg files are used by default with .mp3 being fallback options. We could replace the sound files by intercepting requests and serving a locally stored sound file instead.

is there anyway to change incoming messenger sound?or still not?

I've found a workaround that doesn't involve intercepting requests or anything dealing with obfuscated client react bs.
Upon receiveing a notification this is loaded into the page dom:
screenshot from 2019-01-24 21-10-47
I manually changed the src url to a local express app serving static content with the correct MIME type:
screenshot from 2019-01-24 21-06-03
This changes the notification sound. Any guidelines on how this could be implement would be appreciated.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

willashley23 picture willashley23  路  3Comments

0wlyW00d picture 0wlyW00d  路  3Comments

ChristianKlee picture ChristianKlee  路  4Comments

vogu66 picture vogu66  路  3Comments

Vexorify picture Vexorify  路  3Comments