Global Media Controls Panel
-
I added a little eye candy : drag and drop.
If anyone is interested, you just need to locate this :itemInfo.item = gnoh.createElement('div'
and append this, next to the class "item" :
draggable:"true", events : { drag : function (evt){ dragSource=evt.target; evt.dataTransfer.effectAllowed = "move"; }, dragover : function (evt){ evt.preventDefault(); evt.dataTransfer.dropEffect = "move"; }, drop : function (evt){ //drop evt.preventDefault(); evt.stopPropagation(); var parent = dragSource.parentNode; var dest = evt.target; while(!dest.classList.contains('item')){ dest = dest.parentNode; } var sourceIdx = Array.prototype.indexOf.call(parent.children, dragSource); var destIdx = Array.prototype.indexOf.call(parent.children, dest); if (sourceIdx === destIdx) return; let replaced = parent.replaceChild(dragSource, dest); parent.insertBefore(replaced, sourceIdx > destIdx ? dragSource.nextSibling : dragSource); } }
-
Thank you so much for making this mod! This was one feature from Chrome that I seriously missed! You even included the Picture in Picture button! Thank you!
-
Not sure what this "drag and drop" function is supposed to do, but it makes the volume slider a lot harder to use.
I thought the code you added would make it possible to rearrange the items in the GMC list, but that's not been the case for meLoving this modification! Excellent work. Makes it a lot more tolerable to visit sites like Bandcamp that doesn't have a volume slider (in 2022..)!
-
@RedSnt The drag and drop is supposed to let you reorder the items in the panel, yes. I made this before the 'volume slider' version, so there may be conflicts occuring.
-
-
@stardepp Support is possible and I actually made a version to support it. But releasing and installing it is quite complicated, it won't be like regular mods so I canceled it.
-
This post is deleted! -
@tam710562 This is just to report how well the Global Media Control panel works with German streaming services:
-
I added an update with some new features
-
@tam710562 Great update. The progress gets confused by live streams, but this is not really a problem.
-
5.6 seems to have broken this mod. The custom panel no longer seems to be added.
-
@AltCode No wonder, everything in the panel has changed.
-
I just updated the fix for the new toolbar, temporarily removed the panel close button as i haven't found a way to close the panel in the new version.
-
can you please add functionality for audio and/or video playing in web panels
(i have set spotify and youtube in a web panel so....) -
I just added a new update
- Fix disable pause button and mute button
- Add lucid mode button (New feature inspired by Opera)
-
Doesn't work for yandex music
-
I have added a small update
- Added support for some audio sites that didn't work previously
I just checked on Spotify and hope it works with other sites too
-
@tam710562 Thank you for this update. I can confirm that it works for Spotify and also for YouTube Music. Deezer on the other hand does not work.
-
@stardepp I added a fix and now it works on Deezer
-
@tam710562 Thanks again for this update and yes, I can confirm that it now works with Deezer.