This userscript redirects open.spotify.com links to the desktop app
good idea, thanks for sharing!
and by adding
// @run-at document-start
we don't even need to load the web player!
Author, please add those changes to your script
Your window.close()
extension actually doesn't work for me if combined with // @run-at document-start
. Any idea how to fix this?
While this works perfectly in Firefox, chromium based browsers show the confirmation dialog inside the tab and do not pause the script execution. If you haven't set the "always open these types of links in the app" checkmark, the tab will close and so will the dialog. I've tried several workarounds, but none of them seem to work perfectly every time. If anyone has any solutions I'm happy to include them, but at the moment I'm not adding a "close tab" behaviour.
Thanks, exactly what I was lacking. +1 for the author to add it
[removed]
Works perfectly, thanks! I added a "close tab" to mine
Thanks! 👍🏻