Hacker News new | ask | show | jobs
by leddt 590 days ago
I made a very simple chrome extension that automatically redirects you to your preferred music service when visiting another service. In my case I have it set to YouTube Music, so if I click a Spotify (or other) link in Slack, I'll be redirected to YouTube Music.

https://chromewebstore.google.com/detail/music-link/gnhphofp...

3 comments

Do you have a Firefox version of this?
No, sorry. The code should be pretty easy to port, if you want to give it a go.

https://github.com/leddt/music-link

Can I port it to FF?
From the parent comment: yes.
Is this not a perfect use-case for greasemonkey/tampermonkey? Browser independence FTW
Absolutely!
Orion supports FF and Chrome extensions, if you're in the market for a (good) Safari clone.
This type of stuff is what make chrome extension development fun
sounds amazing, how did you map the urls manually?
Exactly! Their docs are here: https://linktree.notion.site/API-d0ebe08a5e304a55928405eb682...

It has a 10 request per minute rate limit, but no api key needed, so each user runs their own queries.