Skip to content

Commit

Permalink
minor adjustments to new css selectors
Browse files Browse the repository at this point in the history
  • Loading branch information
carlin-q-scott committed Oct 25, 2019
1 parent 6fb4ad9 commit 04bf5ff
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 13 deletions.
4 changes: 2 additions & 2 deletions data/di.fm-view.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
if (typeof MediaKeys == 'undefined') var MediaKeys = {};

var baseXpath = 'div.controls ';
MediaKeys.playButton = baseXpath + 'a[class*="play"]';
MediaKeys.pauseButton = baseXpath + 'a[class*="pause"]';
MediaKeys.playButton = baseXpath + 'a.icon-play';
MediaKeys.pauseButton = baseXpath + 'a.icon-pause';
8 changes: 4 additions & 4 deletions data/jango.com-view.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*/
if (typeof MediaKeys == 'undefined') var MediaKeys = {};

MediaKeys.playButton = 'a#btn-playpause/button';
MediaKeys.pauseButton = 'a#btn-playpause/button';
MediaKeys.skipButton = 'a#btn-ff/button';
MediaKeys.previousButton = 'a#btn-rewind/button';
MediaKeys.playButton = 'a#btn-playpause button';
MediaKeys.pauseButton = 'a#btn-playpause button';
MediaKeys.skipButton = 'a#btn-ff button';
MediaKeys.previousButton = 'a#btn-rewind button';
4 changes: 2 additions & 2 deletions data/pocketcasts.com-view.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
*/
if (typeof MediaKeys == 'undefined') var MediaKeys = {};

MediaKeys.playButton = 'div.play_button:not(.playing)';
MediaKeys.pauseButton = 'div.pause_button.playing';
MediaKeys.playButton = 'div.play_pause_button.play_button';
MediaKeys.pauseButton = 'div.play_pause_button.pause_button';
2 changes: 1 addition & 1 deletion data/radio.yandex.ru-view.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ if (typeof MediaKeys == 'undefined') var MediaKeys = {};

MediaKeys.playButton = 'div.player-controls__play';
MediaKeys.pauseButton = 'div.player-controls__play';
MediaKeys.skipButton = 'div.slider__item_track button';
MediaKeys.skipButton = 'div.slider__item_track:nth-of-type(4) button';
4 changes: 2 additions & 2 deletions data/stitcher.com-view.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
if (typeof MediaKeys == 'undefined') var MediaKeys = {};

MediaKeys.playButton = '#audio_player-play:not(.playing)';
MediaKeys.pauseButton = '#audio_player-play.playing';
MediaKeys.playButton = 'div:not(.playing) > div#player-container-wrapper a#audio_player-play';
MediaKeys.pauseButton = 'div.playing > div#player-container-wrapper #audio_player-play';
MediaKeys.skipButton = '#audio_player-skip';
1 change: 0 additions & 1 deletion data/tidal.com-view.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
*/
if (typeof MediaKeys == 'undefined') var MediaKeys = {};

MediaKeys.useXpath = true;
MediaKeys.playButton = 'button[data-test-id="play"]:not([style*="none"])]';
MediaKeys.pauseButton = 'button[data-test-id="pause"]:not([style*="none"])]';
MediaKeys.skipButton = 'button[data-test-id="next"]';
Expand Down
1 change: 0 additions & 1 deletion data/tunein.com-view.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@
*/
if (typeof MediaKeys == 'undefined') var MediaKeys = {};

MediaKeys.useXpath = true;
MediaKeys.playButton = 'div.playbutton:not([style*="none"])';
MediaKeys.pauseButton = 'div.playbutton:not([style*="none"])';

0 comments on commit 04bf5ff

Please sign in to comment.