From ca905097ab0df1bd36cdd30e6568d6bf8ce71835 Mon Sep 17 00:00:00 2001 From: Gabriel Duarte Date: Thu, 23 Mar 2023 02:19:14 +0000 Subject: [PATCH] fix(spotify,youtubemusic): fix classes Closes #138 --- src/background.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/background.ts b/src/background.ts index 826c68f..5367960 100644 --- a/src/background.ts +++ b/src/background.ts @@ -3,10 +3,10 @@ import { Command, Player, PlayerTab } from './types' const players: Player[] = [ { controlQueries: { - next: '.spoticon-skip-forward-16', + next: '[aria-label="Player controls"] button[aria-label="Next"]', play: - '[aria-label="Player controls"] button[title="Pause"],[aria-label="Player controls"] button[title="Play"]', - prev: '.spoticon-skip-back-16', + '[aria-label="Player controls"] button[aria-label="Pause"],[aria-label="Player controls"] button[aria-label="Play"]', + prev: '[aria-label="Player controls"] button[aria-label="Previous"]', }, default: true, tabQuery: '*://*.spotify.com/*', @@ -40,9 +40,9 @@ const players: Player[] = [ }, { controlQueries: { - next: '.next-button.ytmusic-player-bar', + next: '.ytmusic-player-bar [aria-label="Next"]', play: '.play-pause-button.ytmusic-player-bar', - prev: '.previous-button.ytmusic-player-bar', + prev: '.ytmusic-player-bar [aria-label="Previous"]', }, default: false, tabQuery: '*://music.youtube.com/*',