Skip to content

Autoplay disabled when in party #20

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

zzulanas
Copy link
Collaborator

@zzulanas zzulanas commented Nov 5, 2020

📃 Summary

Small new function to disable autoplay for when users are in a party.

🔍 What's the new behavior?

  • Autoplay is disabled upon joining/creating a party with a small message next to it

🏷 Task Link

↩️ Depends On

Link any other PRs here.

🧪 QA

  • List the steps to test the changes here.

🛑 Risk Analysis

  • Does it update dependencies?

export const disableAutoplay = () => {
const autoPlayBtn = document.getElementsByClassName(
'style-scope ytd-compact-autoplay-renderer'
)[3] as HTMLInputElement;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will the auto play button always be the 3rd element in this list?

Copy link
Collaborator

@RyanMatthewJacobs RyanMatthewJacobs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work!

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

Successfully merging this pull request may close these issues.

3 participants