Skip to content

Autoplay disabled when in party#20

Open
zzulanas wants to merge 2 commits intomainfrom
task/disable-autoplay
Open

Autoplay disabled when in party#20
zzulanas wants to merge 2 commits intomainfrom
task/disable-autoplay

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