Hello, I’m trying to extend a chrome extension which makes available global shortcuts (so you can use play/pause/next with your computer media keys), however one thing I am stuck on is how to trigger an event to rate a currently playing track.
Anyone have any idea how I can achieve this?
I currently tried to select the (first) star element and to click it, however that doesn’t do anything.
el = document.querySelector("#plex > div.player.mini-player.music > div > div > div.mini-controls-right > div.mini-controls-below-track-segment.player-dropdowns-container.rating-container > span > span:nth-child(1)")
el.click(); // nothing happens :(
Thanks!