Skip to content

Commit

Permalink
Merge pull request #55 from mountainash/44-update-deps
Browse files Browse the repository at this point in the history
#44 update deps + fix track/artist/show DOM hooks
  • Loading branch information
mountainash authored Oct 27, 2020
2 parents 1a84d38 + d85d1e3 commit 300f7b3
Show file tree
Hide file tree
Showing 4 changed files with 651 additions and 684 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,10 @@ Mixcloud Play is the missing desktop experience for [Mixcloud.com](https://www.m
[![screenshot](https://raw.githubusercontent.com/mountainash/Mixcloud-Play/master/Screenshot.jpg)](https://github.com/mountainash/Mixcloud-Play/releases/latest)

## Features
1. Media controls - play/pause, next, back (back [requires Mixcloud _PREMIUM_ or _SELECT_](https://help.mixcloud.com/hc/en-us/articles/360004054059))
1. Media controls: ⏪ ⏯️ ⏩ (⏪ [requires Mixcloud _PREMIUM_ or _SELECT_](https://help.mixcloud.com/hc/en-us/articles/360004054059))
2. Menu bar track title
3. Song notifications
4. Modern desktop look
5. Last.fm [Scrobbing](https://www.last.fm/about/trackmymusic) (_comming soon_)
5. Last.fm [Scrobbing](https://www.last.fm/about/trackmymusic) ([_coming soon_](https://github.com/mountainash/Mixcloud-Play/projects/1))

## Enable Media Controls

Expand Down
8 changes: 5 additions & 3 deletions browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,15 @@ function concatEndpoints(endpoints) {

var is_playing = false;

// The web-scrobbler project can help with these selectors when MixCloud change the DOM
// https://github.com/web-scrobbler/web-scrobbler/blob/master/src/connectors/mixcloud.js
const DomHooks = {
playbutton: '[class*=PlayButton__PlayerControl]',
seekbutton: '[aria-label="Seek forwards"]',
backbutton: '[aria-label="Seek backwards"]',
showtitle: '[class*=RebrandPlayerControls__ShowTitle]',
trackartist: '[class*=RebrandPlayerSliderComponent__Artist]',
tracktitle: '[class*=RebrandPlayerSliderComponent__Track-]'
showtitle: '[class*=PlayerControls__ShowTitle]',
trackartist: '[class*=PlayerSliderComponent__Artist]',
tracktitle: '[class*=PlayerSliderComponent__Track-]'
};

const Endpoints = concatEndpoints({
Expand Down
Loading

0 comments on commit 300f7b3

Please sign in to comment.