mfs wont trust you even if the code quite literally does exactly what it was designed to do.
const myaudio = document.createElement("audio")
Creates an audio element, e.g <audio>
myaudio.autoplay = true; myaudio.loop = true;
Makes it auto play and loop
const myaudiosource = document.createElement("source");
Creates an audio source
myaudiosource.src = "https://fi.zophar.net/soundfiles/sega-mega-drive-genesis/sonic-cd-jp-scd/01%20-%20Palmtree%20Panic%20Zone%20Past.mp3";
myaudiosource.type = "audio/mpeg";
Sets the audio source to a URL which contains an mp3.
myaudio.appendChild(myaudiosource);
Adds the audiosource node to your audio node which for some reason plays the audio without having to add the audio node to the document.
Note that this shouldn't really be used because this site runs on fucking php and people could abuse it without better forethought, basically needs a control bar so people can stop the music, but thankfully firefox has a disable autoplay feature built in
View attachment 21805
so I guess that's fine. This code works on every website though if you inject it in the console.