beaufortfrancois / spotify-hotkeys-chrome-extension

Spotify Web Player Hotkeys Chrome Extension
https://chrome.google.com/webstore/detail/kimlaecdbfehihbiieeaeelbdkahophn
95 stars 29 forks source link

Update to work with latest version of spotify #5

Closed vikaspotluri123 closed 9 years ago

vikaspotluri123 commented 9 years ago

Adds support for https://player.spotify.com and used the main id instead of app-player because app-player seems to not exist anymore.

beaufortfrancois commented 9 years ago

It sadly removes compatibility with the current play.spotify.com website from what i can tell. I'd love to try but I can't access player.spotify.com as it always redirects me to play.spotify.com

vikaspotluri123 commented 9 years ago

hmm... That's really weird. I'm in the US (because Geography sometimes makes a difference) and player.spotify.com works, with play.spotify.com redirecting to player.spotify.com.

I am using a modified version of the extension that I made, and it works fine. One other thing I modified in mine is setting the command to "play" if it was "play-pause". That might have been a problem. I'll go ahead and make a new pull request with my code that's relevant, but here's the code I'm using that works:

http://pastebin.com/c9z7xiJe