Skip to content

Commit

Permalink
Merge pull request #37 from stevygee/master
Browse files Browse the repository at this point in the history
Add support for beta.music.apple.com
  • Loading branch information
carlin-q-scott authored Oct 23, 2019
2 parents 635561c + f1bd8ca commit 8551bdc
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
9 changes: 9 additions & 0 deletions data/music.apple.com-view.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/**
* MediaKeys namespace.
*/
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]";
11 changes: 11 additions & 0 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,17 @@
"*://*.tidal.com/*"
]
},
{
"js": [
"lib/browser-polyfill.min.js",
"data/music.apple.com-view.js",
"data/finder.js",
"data/orchestrator.js"
],
"matches": [
"*://*.music.apple.com/*"
]
},
{
"js": [
"lib/browser-polyfill.min.js",
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"pandora": "web-ext run --url https://www.pandora.com/station/play/3576905106862450009 --browser-console",
"youtube": "web-ext run --url https://www.youtube.com/watch?v=hKitZEncwro --pref=javascript.options.strict=false --browser-console",
"spotify": "web-ext run --url https://open.spotify.com --browser-console",
"apple": "web-ext run --url https://beta.music.apple.com --browser-console",
"debug": "web-ext run --browser-console",
"build": "web-ext build",
"deploy": "web-ext sign --channel=listed",
Expand Down

0 comments on commit 8551bdc

Please sign in to comment.