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

Certain buttons are not recognized in the YouTube UI #770

Open
eedo31 opened this issue Jan 18, 2024 · 2 comments
Open

Certain buttons are not recognized in the YouTube UI #770

eedo31 opened this issue Jan 18, 2024 · 2 comments

Comments

@eedo31
Copy link

eedo31 commented Jan 18, 2024

I use styleboot mainly to make my UIs cleaner, especially after having already learned shortcuts for certain websites.
On YouTube for example, I removed most of the player buttons but apparently only some are removed while others are not, in particular I can't remove the "picture in picture" button (button.ytp-pip-button). The code is the same as the other keys but that one remains visible no matter what I do.
Can anyone help me? Maybe I'm doing something wrong?

image

image

Chrome 120.0.6099.225
Win11 23H2 22635.2915

@Obsidianninja11
Copy link

Obsidianninja11 commented Jun 15, 2024

This comment is a bit late, but if you're still having the problem:

This is not a bug with stylebot.

The PiP button is from an extension, it's not something from official Youtube.
I use the Enhancer for YouTube™ extension, which has this button, and uses a bit of weird styling to make the button.

Image

image

Because it has display: inline-block !important;, and uses a more specific selector, your display: none; is being overridden.
To fix this, you need to also have a specific css selector (stylebot automatically adds !important, so you don't need to add it).

This css works for me, and should work for you.

#movie_player div.ytp-chrome-controls button.ytp-pip-button.ytp-button {
  display: none !important;
}

@eedo31
Copy link
Author

eedo31 commented Jun 18, 2024

@Obsidianninja11
Copied, pasted and it works flawlessly.
Thanks a lot!

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

No branches or pull requests

2 participants