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

Hide Youtube Shorts, SUBSCRIPTIONS, and MORE FROM YOUTUBE #26

Closed
sincerelyzhen opened this issue Apr 27, 2022 · 2 comments
Closed

Hide Youtube Shorts, SUBSCRIPTIONS, and MORE FROM YOUTUBE #26

sincerelyzhen opened this issue Apr 27, 2022 · 2 comments

Comments

@sincerelyzhen
Copy link

Screen Shot 2022-04-27 at 10 27 33 AM

Pretty much keep Youtube to a clean search bar mostly. If possible would be great, otherwise still a great extension for a great price.

@sincerelyzhen sincerelyzhen changed the title Hide Youtube Shorts, SUBSCRIPTIONS, and MORE FROM YOUTUBE [Suggestion] Hide Youtube Shorts, SUBSCRIPTIONS, and MORE FROM YOUTUBE Apr 27, 2022
@sincerelyzhen sincerelyzhen changed the title [Suggestion] Hide Youtube Shorts, SUBSCRIPTIONS, and MORE FROM YOUTUBE Hide Youtube Shorts, SUBSCRIPTIONS, and MORE FROM YOUTUBE Apr 27, 2022
@george-botros
Copy link
Member

Thanks for the idea, @sincerelyzhen. This has now been implemented. Actually, those little guide items were kind of hard to select via css, so this solution may not work reliably for future iterations of YouTube. Hence, I may end up removing this later on. For now, though, it seems to work well enough.

BlockableElement(withName: "Subscriptions", andRules: [BlockerRule(selector: "a[href='/feed/subscriptions'], ytd-guide-entry-renderer a[href^='/c/'], ytd-guide-entry-renderer a[title^='Show 1'], ytd-guide-entry-renderer a[title^='Show 2'], ytd-guide-entry-renderer a[title^='Show 3'], ytd-guide-entry-renderer a[title^='Show 4'], ytd-guide-entry-renderer a[title^='Show 5'], ytd-guide-entry-renderer a[title^='Show 6'], ytd-guide-entry-renderer a[title^='Show 7'], ytd-guide-entry-renderer a[title^='Show 8'], ytd-guide-entry-renderer a[title^='Show 9']"), BlockerRule(triggers: [.urlFilter: "https?://www.youtube.com/feed/subscriptions"], actionType: .block)], isBlockedByDefault: false),
BlockableElement(withName: "More From YouTube Guide Items", andRule: BlockerRule(selector: "ytd-guide-entry-renderer a[href='/premium'], ytd-guide-entry-renderer a[href='/premiu'], ytd-guide-entry-renderer a[href^='/feed/storefront'], ytd-guide-entry-renderer a[href='/gaming'], ytd-guide-entry-renderer a[href='/channel/UC4R8DWoMoI7CAwX8_LjQHig'], ytd-guide-entry-renderer a[href='/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ'], a[href='/channel/UCtFRv9O2AHqOZjjynzrv-xg'], a[href='/channel/UCEgdi0XIXXZ-qJOFPf4JSKw']"), isBlockedByDefault: false),

@sincerelyzhen
Copy link
Author

sincerelyzhen commented Apr 29, 2022 via email

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