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

Open
outsparkled opened this issue Nov 29, 2024 · 0 comments
Open

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

outsparkled opened this issue Nov 29, 2024 · 0 comments

Comments

@outsparkled
Copy link

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.

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

1 participant