2

I use keyboard shortcuts for all of my media players, but Spotify's web player (open.spotify.com) seems to be pretty limited in the keyboard shortcuts it provides.

I know that Ctrl + left/right arrow works in Spotify's app to skip to the next or previous track, but is there an equivalent for their web player?

3

I don't know of a way to do this natively on Spotify's web player, but I created a userscript to allow the left and right keys go to the previous and next tracks, respectively (no Ctrl or anything needed).

You can install it through GreasyFork or copy-paste it below:

// ==UserScript==
// @name         Next and Previous key shortcuts for Spotify
// @description  Allows the left and right keyboard arrows to be used to go to the previous and next songs on Spotify.
// @author       Zach Saucier
// @namespace    https://zachsaucier.com/
// @version      1.1
// @match        https://open.spotify.com/*
// ==/UserScript==

(function() {
    'use strict';
    window.addEventListener('keydown', (event) => {
        switch(event.code) {
            case 'ArrowLeft':
                document.querySelector('.spoticon-skip-back-16').click();
                break;
            case 'ArrowRight':
                document.querySelector('.spoticon-skip-forward-16').click();
                break;
        }
    }, false);
})();
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.