Spicetify extension that creates a playlist of the user's 50 most recently played tracks per the Spotify Web API's Get Recently Played Tracks endpoint (https://developer.spotify.com/documentation/web-api/reference/get-recently-played). One-click button that sits on the top bar.
Icon used is "Activity Log Icon" from UXWing: https://uxwing.com/activity-log-icon/
- Install Spicetify: (https://spicetify.app/docs/getting-started)
- Download recentTrackPlaylist.js and put it in the Spicetify Extensions folder (https://spicetify.app/docs/advanced-usage/extensions)
- Open a terminal and run: spicetify config extensions recentTrackPlaylist.js
- In the terminal, run: spicetify apply
- Download the new version of recentTrackPlaylist.js and put it in the Spicetify Extensions folder, overwriting the old version
- Open a terminal and run: spicetify apply
- Open a terminal and run: spicetify config extensions recentTrackPlaylist.js-
- In the terminal, run: spicetify apply
- Delete recentTrackPlaylist.js from the Spicetify Extensions folder (if not deleted it will still no longer load in Spicetify at this point)
Click the icon and a notification should appear to indicate that the script has started. After completion, another notification will appear indicating success or failure.
There is an artificial delay of five seconds to limit API calls, so running should take about five seconds.
The recently played tracks are per the Web API endpoint linked above. The results seem to differ from both the list you can see in the Spotify desktop app and the one on mobile, which both seem to differ from each other as well...