From 0a0ed1d1c136ec09ed8638bd06842664a0cf3eee Mon Sep 17 00:00:00 2001 From: Gabriel Duarte Date: Thu, 2 Jan 2020 17:17:37 -0300 Subject: [PATCH] fix(spotify): change play/pause button class closes #102 --- src/background.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/background.ts b/src/background.ts index b2aaf03..34b7ecf 100644 --- a/src/background.ts +++ b/src/background.ts @@ -4,7 +4,8 @@ const players: Player[] = [ { controlQueries: { next: '.spoticon-skip-forward-16', - play: '.player-controls__buttons button:nth-child(3)', + play: + '[aria-label="Player controls"] button[title="Pause"],[aria-label="Player controls"] button[title="Play"]', prev: '.spoticon-skip-back-16', }, default: true,