From bab40999bff59412c693825696dcad65ac867764 Mon Sep 17 00:00:00 2001 From: shakhraj Date: Thu, 27 Sep 2018 00:27:41 +0300 Subject: [PATCH] feat(deezer): support new deezer design * support new deezer design * support new deezer design - swap prev/next keys * simplify deezer controls selector * support new deezer design - fix lint warnings closes #59 --- src/background.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/background.ts b/src/background.ts index eafa6ec..90116b3 100644 --- a/src/background.ts +++ b/src/background.ts @@ -14,9 +14,12 @@ const players: Player[] = [ }, { controlQueries: { - next: '.control.control-next', - play: '.control.control-play', - prev: '.control.control-prev', + next: + '.control.control-next, .player-controls .svg-icon-group-item:nth-of-type(5) button', + play: + '.control.control-play, .player-controls .svg-icon-group-item:nth-of-type(3) button', + prev: + '.control.control-prev, .player-controls .svg-icon-group-item:nth-of-type(1) button', }, default: false, tabQuery: '*://*.deezer.com/*',