Spotify open in app

This userscript redirects open.spotify.com links to the desktop app

< Feedback on Spotify open in app

Review: Good - script works

§
Posted: 30.10.2020

A little refactor if you'd like :)

const [ , type, id ] = document.URL.match(
    /[\/\&](track|playlist|album|artist|show|episode)\/([^\&\#\/\?]+)/i
)
window.location.replace( `spotify:${ type }:${ id }` )
// window.close()

Post reply

Sign in to post a reply.