This script provides a context menu option in Spotify's desktop app that allows you to move a track to the top or bottom of a playlist.
- Install Spicetify and set it up according to the instructions.
- Navigate to your Spicetify config directory via the command
spicetify config-dir
. - Download tracksToEdges.js and place it in
/extensions
. - Run
spicetify config extensions tracksToEdges.js
andSpicetify apply
in terminal.
Enable "custom order" on your playlists "sort by" dropdown (top right).
Right-click on a track in the playlist to open the context menu, you should see a submenu called "Move track" with two options: "Move to top" and "Move to bottom". Click on either option to move the selected track accordingly.
Note: Hold shift to select and move multiple tracks.
This extension relies on internal Spotify API's, they are not guaranteed to be stable and may drastically change in future. For best compatibility make sure you are running the latest versions of Spotify and Spicetify.