You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
The text was updated successfully, but these errors were encountered:
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)The text was updated successfully, but these errors were encountered: