ff2mpv icon indicating copy to clipboard operation
ff2mpv copied to clipboard

ADD ff2mpv button to Youtube Player controls

Open allanlaal opened this issue 2 years ago • 8 comments

Is your feature request related to a problem? Please describe.

ff2mpv currently takes up room in Firefox's Toolbar, but I only use it in Youtube

Describe the solution you'd like

Youtube player controls would have a ff2mpv button in them

Describe alternatives you've considered

tolerating it

Additional context

speed_buttons

allanlaal avatar Feb 15 '22 07:02 allanlaal

Thanks for the request. Could you describe how we'd implement this in the extension? Does it involve injecting detecting whether the page is YouTube and then injecting (more) JS into it?

woodruffw avatar Feb 15 '22 15:02 woodruffw

(Also, note that the extension currently binds Ctrl + Shift + V to the "play in MPV" action. Does that work for you in terms of convenience?)

woodruffw avatar Feb 15 '22 15:02 woodruffw

(Also, note that the extension currently binds Ctrl + Shift + V to the "play in MPV" action. Does that work for you in terms of convenience?)

I only use a mouse for my "TV" computer, so a keyboard shortcut does not work

allanlaal avatar Feb 16 '22 08:02 allanlaal

Thanks for the request. Could you describe how we'd implement this in the extension? Does it involve injecting detecting whether the page is YouTube and then injecting (more) JS into it?

yes, commonly userscripts and plugins just inject those buttons into youtube controls if the site matches youtube.com. https://github.com/ajayyy/SponsorBlock would be an example of such a plugin

allanlaal avatar Feb 16 '22 08:02 allanlaal

Hmm. I'm not opposed to this feature per se, but I'd like to see some more buy-in from other active users of ff2mpv (since it's not a feature that I'm likely to use). So I'll leave this open for a while and let people submit their opinions.

(A separate concern: I can see this being an arms race where we're always catching up to YouTube's frontend changes. I'd strongly prefer to avoid any changes that put us in that position, so this would have to be done in a way that avoids the need for constant new releases of ff2mpv.)

woodruffw avatar Feb 16 '22 22:02 woodruffw

@woodruffw I think this is like "cat and mouse" game, so we need to kept updating it, that means we will often update with minor version when this is broken. Will it be okay? I'm okay to opening PR for this, but I will only open if it breaks, and I also not everyday accessing the youtube. Invidious is better and just right click the link open in MPV.

I also have this kind of implementation on Google Drive sidebar to hide and show the sidebar, where I do frequently update the injected script (it's on greasyfork).

benyaminl avatar Mar 05 '23 02:03 benyaminl

If you're willing to be the feature owner for these changes, then I'd happily accept a PR for this functionality. I'll probably end up pinging you if/when users report problems with it :slightly_smiling_face:

woodruffw avatar Mar 05 '23 03:03 woodruffw

youtube doesn't scramble their generated class names each update like gcal and others

allanlaal avatar Mar 06 '23 17:03 allanlaal