3 ms·
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 t
by leddt 2y 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/gnhphofplilnmjlbakmplapbhbcifdip https://chromewebstore.google.com/detail/music-link/gnhphofp...
- mettamage 2y agoThis type of stuff is what make chrome extension development fun
- vivzkestrel 2y agosounds amazing, how did you map the urls manually?
- lelandfe 2y agohttps://github.com/leddt/music-link/blob/8faa5ceb0caa620499ed8bf11d7da770fb426115/src/background.js#L40 https://github.com/leddt/music-link/blob/8faa5ceb0caa620499e... I guess this is a free service? E.g https://api.song.link/v1-alpha.1/links?url=https://open.spotify.com/track/3Lzvh7TqjpAqybfejzX0hR https://api.song.link/v1-alpha.1/links?url=https://open.spot...
- leddt 2y agoExactly! Their docs are here: https://linktree.notion.site/API-d0ebe08a5e304a55928405eb682f6741 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.
- paranoidrobot 2y agoDo you have a Firefox version of this?
- leddt 2y agoNo, sorry. The code should be pretty easy to port, if you want to give it a go. https://github.com/leddt/music-link https://github.com/leddt/music-link
- hknws2023saio 2y agoCan I port it to FF?
- jeffhuys 2y agoOrion supports FF and Chrome extensions, if you're in the market for a (good) Safari clone.