Spotify Links On iTunes

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

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

Author
mirka
Daily installs
0
Total installs
241
Ratings
4 0 0
Version
4.0.3
Created
2016-04-30
Updated
2018-08-03
Size
7.12 KB
License
N/A
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.