-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed all the css selectors and switched " to '
- Loading branch information
1 parent
13cad2a
commit e02731d
Showing
35 changed files
with
191 additions
and
191 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
/** | ||
* MediaKeys namespace. | ||
*/ | ||
if (typeof MediaKeys == "undefined") var MediaKeys = {}; | ||
if (typeof MediaKeys == 'undefined') var MediaKeys = {}; | ||
|
||
MediaKeys.playButton = "div.playbutton"; | ||
MediaKeys.pauseButton = "div.playbutton.3"; | ||
MediaKeys.skipButton = "div.nextbutton"; | ||
MediaKeys.previousButton = "div.prevbutton"; | ||
MediaKeys.playButton = 'div.playbutton'; | ||
MediaKeys.pauseButton = 'div.playbutton.playing'; | ||
MediaKeys.skipButton = 'div.nextbutton'; | ||
MediaKeys.previousButton = 'div.prevbutton'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
/** | ||
* MediaKeys namespace. | ||
*/ | ||
if (typeof MediaKeys == "undefined") var MediaKeys = {}; | ||
if (typeof MediaKeys == 'undefined') var MediaKeys = {}; | ||
|
||
MediaKeys.playButton = "button.playButton.Play"; | ||
MediaKeys.pauseButton = "button.playButton.Pause"; | ||
MediaKeys.skipButton = "a.player-console-ui-nextButton"; | ||
MediaKeys.previousButton = "a.player-console-ui-prevButton"; | ||
MediaKeys.playButton = 'button.playButton.Play'; | ||
MediaKeys.pauseButton = 'button.playButton.Pause'; | ||
MediaKeys.skipButton = 'a.player-console-ui-nextButton'; | ||
MediaKeys.previousButton = 'a.player-console-ui-prevButton'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
/** | ||
* MediaKeys namespace. | ||
*/ | ||
if (typeof MediaKeys == "undefined") var MediaKeys = {}; | ||
let basePlayer = "div#page_player "; | ||
MediaKeys.playButton = basePlayer + "button .icon-play"; | ||
MediaKeys.pauseButton = basePlayer + "button .icon-pause"; | ||
MediaKeys.skipButton = basePlayer + "button .icon-next"; | ||
MediaKeys.previousButton = basePlayer + "button .icon-prev"; | ||
if (typeof MediaKeys == 'undefined') var MediaKeys = {}; | ||
let basePlayer = 'div#page_player '; | ||
MediaKeys.playButton = basePlayer + 'button .icon-play'; | ||
MediaKeys.pauseButton = basePlayer + 'button .icon-pause'; | ||
MediaKeys.skipButton = basePlayer + 'button .icon-next'; | ||
MediaKeys.previousButton = basePlayer + 'button .icon-prev'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
/** | ||
* MediaKeys namespace. | ||
*/ | ||
if (typeof MediaKeys == "undefined") var MediaKeys = {}; | ||
if (typeof MediaKeys == 'undefined') var MediaKeys = {}; | ||
|
||
MediaKeys.playButton = "a#playerPlay"; | ||
MediaKeys.pauseButton = "a#playerPlay"; | ||
MediaKeys.skipButton = "a#playerNext"; | ||
MediaKeys.previousButton = "a#playerPrev"; | ||
MediaKeys.playButton = 'a#playerPlay'; | ||
MediaKeys.pauseButton = 'a#playerPlay'; | ||
MediaKeys.skipButton = 'a#playerNext'; | ||
MediaKeys.previousButton = 'a#playerPrev'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
/** | ||
* MediaKeys namespace. | ||
*/ | ||
if (typeof MediaKeys == "undefined") var MediaKeys = {}; | ||
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'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/** | ||
* MediaKeys namespace. | ||
*/ | ||
if (typeof MediaKeys == "undefined") var MediaKeys = {}; | ||
if (typeof MediaKeys == 'undefined') var MediaKeys = {}; | ||
|
||
MediaKeys.playButton = "div.player-control"; | ||
MediaKeys.pauseButton = "div.player-control.pause-state"; | ||
MediaKeys.playButton = 'div.player-control'; | ||
MediaKeys.pauseButton = 'div.player-control.pause-state'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
/** | ||
* MediaKeys namespace. | ||
*/ | ||
if (typeof MediaKeys == "undefined") var MediaKeys = {}; | ||
if (typeof MediaKeys == 'undefined') var MediaKeys = {}; | ||
|
||
MediaKeys.playButton = "section.playbackControlsView//*[contains(@class, 'playerIconPlay')]"; | ||
MediaKeys.pauseButton = "section.playbackControlsView//*[contains(@class, 'playerIconPause')]"; | ||
MediaKeys.skipButton = "//*[contains(@class, 'nextButton')]"; | ||
MediaKeys.previousButton = "//*[contains(@class, 'previousButton')]"; | ||
let base = '.playbackControls ' | ||
MediaKeys.playButton = base + '.playerIconPlay:not(.disabled)'; | ||
MediaKeys.pauseButton = base + '.playerIconPause'; | ||
MediaKeys.skipButton = base + '.nextButton'; | ||
MediaKeys.previousButton = base + '.previousButton'; | ||
|
||
//MediaKeys.trackInfoContainer = "//*[@class='playbackControlsView']" | ||
MediaKeys.trackInfo = "//*[@class='trackInfoContainer']"; | ||
//MediaKeys.trackInfoContainer = ".playbackControlsView" | ||
MediaKeys.trackInfo = '.trackInfoContainer'; | ||
MediaKeys.trackImage = '.trackAlbumArt img' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
/** | ||
* MediaKeys namespace. | ||
*/ | ||
if (typeof MediaKeys == "undefined") var MediaKeys = {}; | ||
if (typeof MediaKeys == 'undefined') var MediaKeys = {}; | ||
|
||
MediaKeys.playButton = "//button[@data-test-playback-control-play]"; | ||
MediaKeys.pauseButton = "//button[@data-test-playback-control-pause]"; | ||
MediaKeys.skipButton = "//button[@data-test-playback-control-next]"; | ||
MediaKeys.previousButton = "//button[@data-test-playback-control-previous]"; | ||
MediaKeys.playButton = 'button[data-test-playback-control-play]'; | ||
MediaKeys.pauseButton = 'button[data-test-playback-control-pause]'; | ||
MediaKeys.skipButton = 'button[data-test-playback-control-next]'; | ||
MediaKeys.previousButton = 'button[data-test-playback-control-previous]'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
/** | ||
* MediaKeys namespace. | ||
*/ | ||
if (typeof MediaKeys == "undefined") var MediaKeys = {}; | ||
if (typeof MediaKeys == 'undefined') var MediaKeys = {}; | ||
|
||
MediaKeys.playButton = "div.player-controls__btn.player-controls__btn_play"; | ||
MediaKeys.pauseButton = "div.player-controls__btn.player-controls__btn_play.player-controls__btn_pause"; | ||
MediaKeys.skipButton = "div.player-controls__btn.player-controls__btn_next"; | ||
MediaKeys.previousButton = "div.player-controls__btn.player-controls__btn_prev"; | ||
MediaKeys.playButton = 'div.player-controls__btn.player-controls__btn_play'; | ||
MediaKeys.pauseButton = 'div.player-controls__btn.player-controls__btn_play.player-controls__btn_pause'; | ||
MediaKeys.skipButton = 'div.player-controls__btn.player-controls__btn_next'; | ||
MediaKeys.previousButton = 'div.player-controls__btn.player-controls__btn_prev'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,12 @@ | ||
/** | ||
* MediaKeys namespace. | ||
*/ | ||
if (typeof MediaKeys == "undefined") var MediaKeys = {}; | ||
if (typeof MediaKeys == 'undefined') var MediaKeys = {}; | ||
|
||
MediaKeys.playButton = "button.spoticon-play-*"; | ||
MediaKeys.pauseButton = "button.spoticon-pause-*"; | ||
MediaKeys.skipButton = "button.spoticon-skip-forward-*"; | ||
MediaKeys.previousButton = "button.spoticon-skip-back-*"; | ||
MediaKeys.playButton = 'button[class*="spoticon-play-"]'; | ||
MediaKeys.pauseButton = 'button[class*="spoticon-pause-"]'; | ||
MediaKeys.skipButton = 'button[class*="spoticon-skip-forward-"]'; | ||
MediaKeys.previousButton = 'button[class*="spoticon-skip-back-"]'; | ||
|
||
MediaKeys.trackInfo = 'div.now-playing' | ||
MediaKeys.trackImage = '' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
/** | ||
* MediaKeys namespace. | ||
*/ | ||
if (typeof MediaKeys == "undefined") var MediaKeys = {}; | ||
if (typeof MediaKeys == 'undefined') var MediaKeys = {}; | ||
|
||
MediaKeys.playButton = "a#playpausebutton"; | ||
MediaKeys.pauseButton = "a#playpausebutton"; | ||
MediaKeys.skipButton = "a#seekforwardbutton"; | ||
MediaKeys.previousButton = "a#seekbackbutton"; | ||
MediaKeys.playButton = 'a#playpausebutton'; | ||
MediaKeys.pauseButton = 'a#playpausebutton'; | ||
MediaKeys.skipButton = 'a#seekforwardbutton'; | ||
MediaKeys.previousButton = 'a#seekbackbutton'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
/** | ||
* MediaKeys namespace. | ||
*/ | ||
if (typeof MediaKeys == "undefined") var MediaKeys = {}; | ||
if (typeof MediaKeys == 'undefined') var MediaKeys = {}; | ||
|
||
MediaKeys.useXpath = true; | ||
MediaKeys.playButton = "//*[@data-qa='play_button' or @class='playButton' and not(contains(@style,'none'))]"; | ||
MediaKeys.pauseButton = "//*[@data-qa='pause_button' or @class='pauseButton' and not(contains(@style,'none'))]"; | ||
MediaKeys.previousButton = "//*[@data-qa='replay_button' or @class='skipButton']"; | ||
MediaKeys.skipButton = "//*[@data-qa='skip_button' or @class='skipButton']"; | ||
MediaKeys.trackInfoContainer = "//*[contains(@data-reactid,'NowPlaying') or @id='trackInfoContainer']"; | ||
MediaKeys.trackInfo = "//*[@class='nowPlayingTopInfo__current' or contains(@class,'trackData')]"; | ||
MediaKeys.basePlayer = null; | ||
MediaKeys.basePlayer = null; | ||
|
||
MediaKeys.playButton = 'button.PlayButton[data-qa="play_button"]'; | ||
MediaKeys.pauseButton = 'button.PlayButton[data-qa="pause_button"]'; | ||
MediaKeys.previousButton = 'button.ReplayButton'; | ||
MediaKeys.skipButton = 'button.SkipButton'; | ||
MediaKeys.trackInfo = 'div.Tuner__Audio__TrackDetail'; | ||
MediaKeys.trackImage = MediaKeys.trackInfo + ' img'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
/** | ||
* MediaKeys namespace. | ||
*/ | ||
if (typeof MediaKeys == "undefined") var MediaKeys = {}; | ||
if (typeof MediaKeys == 'undefined') var MediaKeys = {}; | ||
|
||
MediaKeys.useXpath = true; | ||
MediaKeys.playButton = "//*[@data-id='play-pause'][1]"; | ||
MediaKeys.pauseButton = "//*[@data-id='play-pause'][1]"; | ||
MediaKeys.skipButton = "//*[@data-id='forward'][1]"; | ||
MediaKeys.previousButton = "//*[@data-id='rewind'][1]"; | ||
MediaKeys.playButton = '#player-bar-play-pause'; | ||
MediaKeys.pauseButton = '#player-bar-play-pause.playing'; | ||
MediaKeys.skipButton = '#player-bar-forward'; | ||
MediaKeys.previousButton = '#player-bar-rewind'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
/** | ||
* MediaKeys namespace. | ||
*/ | ||
if (typeof MediaKeys == "undefined") var MediaKeys = {}; | ||
if (typeof MediaKeys == 'undefined') var MediaKeys = {}; | ||
|
||
MediaKeys.playButton = "div.play_button"; | ||
MediaKeys.pauseButton = "div.pause_button"; | ||
MediaKeys.skipButton = "div.skip_forward_button"; | ||
MediaKeys.previousButton = "div.skip_back_button"; | ||
MediaKeys.playButton = 'div.play_button'; | ||
MediaKeys.pauseButton = 'div.pause_button'; | ||
MediaKeys.skipButton = 'div.skip_forward_button'; | ||
MediaKeys.previousButton = 'div.skip_back_button'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
/** | ||
* MediaKeys namespace. | ||
*/ | ||
if (typeof MediaKeys == "undefined") var MediaKeys = {}; | ||
if (typeof MediaKeys == 'undefined') var MediaKeys = {}; | ||
|
||
MediaKeys.basePlayer = "iframe#app-player"; | ||
MediaKeys.playButton = "//button[@id='play-pause' and not(contains(@class,'playing'))]"; | ||
MediaKeys.pauseButton = "//button[@id='play-pause' and contains(@class,'playing')]"; | ||
MediaKeys.skipButton = "button#next"; | ||
MediaKeys.previousButton = "button#previous"; | ||
MediaKeys.basePlayer = 'iframe#app-player'; | ||
MediaKeys.playButton = 'button#play-pause:not([class*="playing"])'; | ||
MediaKeys.pauseButton = 'button#play-pause[class*="playing"]'; | ||
MediaKeys.skipButton = 'button#next'; | ||
MediaKeys.previousButton = 'button#previous'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
/** | ||
* MediaKeys namespace. | ||
*/ | ||
if (typeof MediaKeys == "undefined") var MediaKeys = {}; | ||
if (typeof MediaKeys == 'undefined') var MediaKeys = {}; | ||
|
||
MediaKeys.basePlayer = "iframe#main"; | ||
MediaKeys.playButton = "//button[@id='play' and not(contains(@class,'playing'))]"; | ||
MediaKeys.pauseButton = "//button[@id='play' and contains(@class,'playing')]"; | ||
MediaKeys.skipButton = "button#next"; | ||
MediaKeys.previousButton = "button#previous"; | ||
MediaKeys.basePlayer = 'iframe#main'; | ||
MediaKeys.playButton = 'button#play:not([class*="playing"])'; | ||
MediaKeys.pauseButton = 'button#play[class*="playing"]'; | ||
MediaKeys.skipButton = 'button#next'; | ||
MediaKeys.previousButton = 'button#previous'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.