Skip to content

Commit

Permalink
fix(spotify,youtubemusic): fix classes
Browse files Browse the repository at this point in the history
Closes #138
  • Loading branch information
GabeDuarteM committed Mar 23, 2023
1 parent 98028b4 commit ca90509
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/background.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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/*',
Expand Down Expand Up @@ -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/*',
Expand Down

0 comments on commit ca90509

Please sign in to comment.