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);