Add Spotify links on iTunes album/artist pages

Is everyone sending you links from Apple Music? Here’s a userscript for Greasemonkey/Tampermonkey that adds Spotify links to iTunes album and artist pages. You can also choose to embed a Spotify player directly on the album page.

iTunes album page screenshot



  • If you want the Spotify link to open in the Web Player instead of the desktop app, look for the open_in_app variable at the top of the script and set it to false.
  • If you don’t want an embedded Spotify player on album pages, look for the embed_player variable at the top of the script and set it to false.

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.
  • The search API may have trouble finding a match due to minor naming discrepancies. If you suspect this is the case, you can always look for it manually on Spotify.


v3.0 — 2017/01/29

  • Vastly improve album matching (Will now handle the majority of naming inconsistencies, including live albums and deluxe editions. Also tries fuzzier search queries for better matching of classical music and soundtracks. Sorry for the occasional false positives.)

v2.0 — 2016/11/04

  • Add option to embed Spotify player on album pages

iTunes: 30-second skip podcasts/audiobooks only

Here’s a nice AppleScript I use to rewind or skip 30 seconds in iTunes, but only when the current track is a podcast or audiobook.

This allows you to have a single keyboard shortcut that works as a normal “previous track” key when listening to music, but automatically switches to a 30-second rewind when listening to podcasts, audiobooks, or whatever else you specify.

property skip_secs : 30 -- use negative value to rewind, positive value to skip ahead
property genre_list : {"Podcast", "Books & Spoken"}

tell application "iTunes"
	if (exists of current track) is false then
	end if
	if genre of current track is in genre_list then
		set target_time to (player position + skip_secs)
		if (target_time > finish of current track) then
			next track
		else if (target_time < 2) then
			back track
			set player position to target_time
		end if
	else -- rewind/skip the whole track
		if (skip_secs < 0) then
			back track
			next track
		end if
	end if
end tell


Change the skip_secs property to your preferred interval in seconds. For example, setting skip_secs to 30 will result in a 30-sec fast forward, while setting it to -15 will make it a 15-sec rewind.

If you would like more kinds of tracks to respond to this skip behavior, add the genre names of those tracks to genre_list.