carlin-q-scott / browser-media-keys

Lets you control many web players using the media keys on your keyboard.
Mozilla Public License 2.0
123 stars 31 forks source link

Support for brain.fm #136

Closed rjoomen closed 1 year ago

rjoomen commented 7 years ago

Hi Carlin,

Could you please add support for brain.fm? I already hacked it in on my pc, here's the working code:

brain.fm-view.js

/**
 * MediaKeys namespace.
 */
if (typeof MediaKeys == "undefined") var MediaKeys = {};

MediaKeys.playButton = "//div[@class='tc_play']";
MediaKeys.pauseButton = "//div[@class='tc_pause']";

And add to pageMods.json

{
    "name": "brain.fm",
    "include": "*.brain.fm"
}

It would be awesome if your already awesome extension would support this. Thanks a lot!

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/45503546-support-for-brain-fm?utm_campaign=plugin&utm_content=tracker%2F7600490&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F7600490&utm_medium=issues&utm_source=github).