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

fix: re-hide shorts on homepage #47

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

thejewdude
Copy link

@thejewdude thejewdude commented Dec 22, 2024

Closes #44, and closes #38.

This PR fixes hiding the shorts section on the YT homepage by removing the requirement that the 'Shorts' element be a descendant of an element with a .reel-shelf-title-wrapper class. From my investigation of the DOM it looks like the 'Shorts' heading no longer has an ancestor element that has a class of .reel-shelf-title-wrapper (see attached screenshot).

Let me know if the filter isn't narrow enough and I'll look for elements that indicate that they're only used for shorts

CleanShot 2024-12-22 at 14 10 06@2x

@thejewdude thejewdude marked this pull request as ready for review December 22, 2024 19:11
@HubKing
Copy link

HubKing commented Dec 28, 2024

Shorts still appear in android Firefox.

@thejewdude
Copy link
Author

I was testing on chrome on macOS using the dev tools to emulate mobile. While I don’t have an android phone, I’ll test out my changes on Firefox as well.

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.

m.youtube.com##.rich-section-single-column New Shorts Element has appeared 2024-09-17
2 participants