Spotify Links On iTunes

Add a Spotify link and embedded player on iTunes album/artist pages

نووسەر
mirka
Daily installs
0
Total installs
231
Ratings
4 0 0
وەشان
4.0.3
Created
2016-04-30
Updated
2018-08-03
مۆڵەت
نییە
Applies to

Tested in Chrome Tampermonkey and Firefox Greasemonkey. Currently broken in Safari Tampermonkey due to a combination of Apple adding CSP rules to their iTunes pages and Safari ignoring the CSP spec :(

Important changes in v4.0

  • Due to recent changes in the Spotify API authentication rules, search calls now require client credentials. Unfortunately, this means your searches must be sent through my server to make API calls on your behalf. If you have privacy concerns, you can use your own credentials and bypass my server (see "Options" section below).
  • The embedded Spotify player had to be removed due to Content Security Policy restrictions that were added in the Apple Music redesign.

Options

  • If you want the Spotify link to open in the Web Player instead of the desktop app, set the open_in_app variable to false.
  • If you want to use your own credentials to communicate with the Spotify API directly, first register an application with Spotify. Set up your Client ID and Secret in the "User preferences (advanced)" section at the top of the script.

Match accuracy

  • When multiple matches are found in the Spotify catalog, the first one will be used.
  • The script will try to work across different locales, but may fail to find a match when the album/artist name on the iTunes page is in an alternative language, like the Chinese 史密斯飞船合唱团 for Aerosmith. This is a limitation of the Spotify search API. Japanese queries seem to work most of the time, but not always.