Skip to content

Commit

Permalink
Merge pull request #257 from minhhn/master
Browse files Browse the repository at this point in the history
Add support for mp3.zing.vn
  • Loading branch information
feedbee committed Mar 4, 2018
2 parents 6e5aa3b + 076e52d commit 869a8f2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
9 changes: 9 additions & 0 deletions extension/keysocket-zingmp3.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
keySocket.init(
"zing-mp3-player",
{
"play-pause": ".media-control-button.paused",
"prev": ".media-control-button.zp-button-prev",
"next": ".media-control-button.zp-button-next"
// stop is omitted
}
);
4 changes: 4 additions & 0 deletions extension/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@
"matches": ["<all_urls>"],
"js": ["media-control-api.js"]
},
{
"matches": ["*://mp3.zing.vn/*"],
"js": ["plugin-api.js","keysocket-zingmp3.js"]
},
{
"matches": ["*://8tracks.com/*"],
"js": ["plugin-api.js","keysocket-eighttracks.js"]
Expand Down

0 comments on commit 869a8f2

Please sign in to comment.