Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ADD ff2mpv button to Youtube Player controls #76

Open
allanlaal opened this issue Feb 15, 2022 · 8 comments
Open

ADD ff2mpv button to Youtube Player controls #76

allanlaal opened this issue Feb 15, 2022 · 8 comments

Comments

@allanlaal
Copy link

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

@woodruffw
Copy link
Owner

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
Copy link
Owner

(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?)

@allanlaal
Copy link
Author

allanlaal commented Feb 16, 2022

(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
Copy link
Author

allanlaal commented Feb 16, 2022

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

@woodruffw
Copy link
Owner

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.)

@benyaminl
Copy link
Contributor

@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).

@woodruffw
Copy link
Owner

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 🙂

@allanlaal
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants