This is the code for those people who wanna listen with friends, but don't have a premium account.
All you have to do is go to your friend's profile, press CTRL + SHIFT + I, go to console and paste the following code:
setInterval(() => {
document.getElementsByClassName('tabBar-2hXqzU')[0].children[1].click()
document.getElementsByClassName('button-2IFFQ4')[0].click();
}, 1000);
And let the profile popup open. I recommend opening it in a browser, and not in the app, so you can keep using it despite using this trick.
Now, I'll start getting technical because of the warning message from Discord itself:
I know, you're probably reading this and thinking "This person is scamming me" Well, for those people, I'm gonna explain step by step what is this code doing, and why you don't have anything to be afraid of.
First of all, you should know that listen along is not possible without a premium account. But you can actually play song by song from your friend's profile. So this script is just doing it automatically.
The button of "Play on Spotify" has some unique ID's, between them there is the one called button-2IFFQ4
We're gonna take that ID, and click the button but inside the console of Discord. That command is:
document.getElementsByClassName('button-2IFFQ4')[0].click()
Making that, you can actually use it to click a button with a command, but you need to do it automatically. You'll only need to add the following part to solve that, we're gonna make that it executes the command every 1 second, so there's no call-spam:
setInterval(() => {
document.getElementsByClassName('button-2IFFQ4')[0].click();
}, 1000);
And that's it, now the code it's gonna execute itself every second, so you don't have to worry about sync issues.
UPDATE: Thanks to Discord, we now should add the following code before even reach the spotify button:
document.getElementsByClassName('tabBar-2hXqzU')[0].children[1].click()
That just selects the Activity
tab inside every Discord profile. In case somebody pause their music for a second and the tab disappear.
You should hover the profile, and then click the

view profile
button on the profile pic. Then in activity you should see thePlay on Spotify
button.I recommend doing it in a browser, because you're not gonna be able to use the client while you're listening.