GithubHelp home page GithubHelp logo

lidel / google-music-hotkeys Goto Github PK

View Code? Open in Web Editor NEW
32.0 32.0 5.0 515 KB

Browser extension that adds keyboard control to Google / YouTube Music

Home Page: https://github.com/lidel/google-music-hotkeys#install

License: Creative Commons Zero v1.0 Universal

JavaScript 84.84% HTML 15.16%
chrome-extension chromium firefox firefox-extension google-music keyboard playback-controls webextension

google-music-hotkeys's Introduction

Hi there ๐Ÿ‘‹

  • ๐Ÿ”ญ I work at the intersections of IPFS, HTTP, the web, and user agency.

google-music-hotkeys's People

Contributors

ajuanjojjj avatar lidel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

sv1k

google-music-hotkeys's Issues

Custom shortcuts don't work on macOS

macOS 10.12.6
Firefox Quantum 66.0.3 (64-bit)

Even with the default shortcuts, they don't work, even when the Google Play Music tab is in focus.

Clicking on the toolbar button for the extension does the appropriate play/pause, so that part of the code is working at least. Shortcuts don't work at all for me.

All Media Keys will only play/pause music

Howdy!
Using Mozilla Firefox - just updated to version 70 - with Logitech Setpoint (ver 6.69.123, driver ver 5.94.124) and a Logitech K350 keyboard.

For whatever reason, all the media keys only perform the play/pause function. I'm not sure what's causing this. I made sure everything is up to date and restarted my computer, and I double-checked to make sure that I had the correct key assignments in your app, but to no avail.

Any help would be greatly appreciated.
Capture

Shortcut using numpad?

This is a great little plugin, but I wish I could do Ctrl+Shift+8 (as well as the other functions) on the numpad as well (doesn't currently work). Is this possible?

Link to shortcuts

Please add a link to open the shortcuts:

function openShortcuts(event) {
    chrome.tabs.update({
        url: 'chrome://extensions/shortcuts'
    });
    event.preventDefault();
}
document.addEventListener('DOMContentLoaded', function () {
    document.getElementById('btn_extensions_shortcuts').addEventListener('click', openShortcuts);
}

Add Repeat to commands

I'm not sure if people would back it, but I think it would be great if there's a command for repeat.

Also, according to issue #6, for Chrome only four commands can be given so this would do fit in instead of like/dislike.

Great extension, thanks!

YouTube Music Support

Google Music is being deprecated in favour of Youtube Music:

TODO:

  • keyboard shortcuts should work on Youtube Music if opened instead of Google Music
    • shipped in v1.7.0
  • switch remaining logic to YouTube music and remove dead code, rename extension, update icon
    • waiting for Google to sunset Google Music

Triggering autoplay via URL parameter

A feature requested by a user via email:

Hi, I am using your extension for Google play music keyboard controls (Thanks a lot btw).
I have created a chrome shortcut on my desktop for google music
however I would like if opening the shortcut would start playing music.
I am using Windows 7

Ok, just to clarify: you want to have "autoplay" functionality,
meaning as soon google music is loaded, it starts playing?

Yes, that is correct.

Quick idea dump:

  • inject content-script on pages matching https://play.google.com/music/listen*
    • executes on document_idle
    • reads window.location.href and if it ends with autoplay=true triggers playback button

This will enable users to create bookmarks that automatically start playing. (eg. favourite album, playlist, artist, radio).

Apple keyboard shortcuts?

Thanks for the quick reply on firefox addons.

The keyboard shortcuts "MediaNextTrack", "MediaPlayPause", "MediaPrevTrack" don't seem to work with Firefox. Insterad as Chrome isn't open they open iTunes.

Ctrl-<space> stopped working

When I first started using the add-on I was able to use Ctrl- to play/pause by typing "space" in the Key identifier box. However, that functionality appears to have gone missing. Now, when I type in "space" or a ' ' and move to the next box, my entry is wiped out. Please either let me know what I'm doing wrong, or see if there's a bug.
Thanks!

Media Previous/Next Track Hotkeys not Working

When I hit the media next or previous key on my keyboard, Google Play Music pauses/resumes the music.
These keys work with desktop application music players. (I do not have these players open at the moment.) I specified MediaPrevTrack and MediaNextTrack without Control, Alt or Shift in the Customize Bindings section. If I right-click on the Google Music Hotkey icon in the toolbar and click on Previous Song or Next Song, then the music goes back or advances a song. So, I know that the functionality could work if the addon could respond correctly to the keys.

Create a new playlist when no playlist is loaded

Right now playback controls work only on preloaded playlists.
When there is no playlist, there is nothing to control.

It may be a better UX to create a new playlist instead of doing nothing.

  • If page is an album or shared playlist start playing the very first item
  • if there is no play button, go to 'Home' and start "I'm Feeling Lucky" radio

Support for Google Podcasts

Ref. https://podcasts.google.com

Not sure when I will be able to pick this up, so if someone wants to submit a PR, here are some starting tips:

  1. add podcasts.google.com to this list in manifest
  2. implement podcastsScriptThatClicksOn in background.js (use existing youTubeMusicScriptThatClicksOn as inspiration, you will need to figure out correct querySelector for each action)

Customizing keyboard shortcuts

Hi,

Using this addon on firefox, I would like to use the media key instead of some combo on my keyboard.

Is this feasible ?

Thanks

Cant set Global scope

I can't establish "Global" at the customization shortcut page.
Its like the setup didn't apply.
I tried to execute Chrome as admin aswell with the same result.

Any help would be aprecieate.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.