>>29861710Your (You) helped me finally confirm whether or not something worked. You can change the "BEEP" sound in 4chanx! Got tired of
https://freesound.org/people/pierrecartoons1979/sounds/90112/ blowing my eardrums out.
1. Find a sound you like. I am using "Utopia Default.WAV" from Microsoft Plus! as an example, I also made it quieter, so it's just a softer way of making a similar sound. You could use a Miko "ding" if you wanted.
2. Make it smaller. Much smaller. You'll see why.
3. Convert it to base64. You can use
https://base64.guru/converter/encode/file but make sure you choose "Data URI -- data:content/type;base64"
4. Edit your installed 4chanx userscript in TamperMonkey/ViolentMonkey/whatever
5. Ctrl-F data:audio/wav;base64
6. Replace what is between the ' with your base64 encoded sound.
7. Make sure the MIME type is correct. That converter likes to output "@file/" MIME types. e.g. for ogg/Vorbis, you don't want "data:@file/ogg;base64" but rather "data:audio/ogg;base64". Similarly "data:audio/mp4;base64" for AAC/HE-AAC, "data:audio/wav;base64" for PCM WAV. MP3 probably works too, but HE-AAC will make for the smallest files.
8. Save.
The file that was already in 4chanx was PCM so I thought it might have to be. Since my source was 22/16/mono PCM I initially just halved the bit-depth of my file to save some space. Then I realized it was just an HTML Audio element, so AAC/HE-ACC or OGG also work. Rename .opus to .ogg and it will work too.