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

Autoplay on page load #222

Open
YumYummity opened this issue Oct 20, 2023 · 0 comments
Open

Autoplay on page load #222

YumYummity opened this issue Oct 20, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@YumYummity
Copy link

What's the problem this feature will solve?

By default, when you open a youtube page, it'll start to autoplay the video when it's loaded.

Describe the solution you'd like

A toggle at the start of the userscript, defaulting to autoplay = true;

Additional context

You can use var src = https://www.youtube.com/embed/${videoId}?enablejsapi=1&autoplay=1`;`
Additionally, I see <iframe id="aab-embed" width="100%" height="100%" src="${src}" allow="autoplay"></iframe> which appears to try to use autoplay; this isn't enough (you need to load the script with autoplay=1)

@YumYummity YumYummity added the enhancement New feature or request label Oct 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant