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

Add support for YouTube Shorts blocking on mobile home page #29

Closed
outsparkled opened this issue Nov 29, 2024 · 1 comment · Fixed by #31
Closed

Add support for YouTube Shorts blocking on mobile home page #29

outsparkled opened this issue Nov 29, 2024 · 1 comment · Fixed by #31

Comments

@outsparkled
Copy link
Contributor

The code responsible for blocking shorts on the home page currently uses the is-shorts attribute on the ytd-rich-shelf-renderer element to detect the Shorts section. This however only works on desktop, since YouTube on mobile (m.youtube.com) does not use this attribute.

I did some poking around on the mobile home page and found that the grid-shelf-view-model on the mobile website seems to be used exclusively for the Shorts section. This could be used to block shorts on mobile as well by removing all grid-shelf-view-model elements.

If you are interested, I would be happy to make a pull request with such a change.

@M1ck0
Copy link
Owner

M1ck0 commented Dec 28, 2024

Yeah, this would be neat. If you don't have time, tell me and I'll make it.

Thanks a lot fore research <3

@outsparkled

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 a pull request may close this issue.

2 participants