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(YouTube - Hide layout components): Detect if a keyword filter hides all videos #3365

Conversation

LisoUseInAIKyrios
Copy link
Contributor

@LisoUseInAIKyrios LisoUseInAIKyrios commented Jun 21, 2024

Adds simple detection if a keyword is hiding all videos.

An example of this is a keyword that is also a playback parameter (such as ohct), or if a keyword matches an unidentified ui sub element that is not initially caught when adding the keyword.

If all videos are hidden, it shows a toast that includes the problematic keyword and temporarily turns of keyword filtering.

In practice if a user has way too many keywords and all videos are hidden, this still will not trip the detection since some extra UI elements are almost always present and make it thru (such as the video chapter summary below some videos). Only if everything is blocked will this be tripped.

Integration changes

@LisoUseInAIKyrios LisoUseInAIKyrios merged commit 6aa47ec into ReVanced:dev Jun 23, 2024
2 checks passed
@LisoUseInAIKyrios LisoUseInAIKyrios deleted the fix_hide_keywords_overly_broad_keywords branch June 23, 2024 12:47
revanced-bot pushed a commit that referenced this pull request Jun 23, 2024
## [4.10.1-dev.1](v4.10.0...v4.10.1-dev.1) (2024-06-23)

### Bug Fixes

* **YouTube - Hide layout components:** Detect if a keyword filter hides all videos ([#3365](#3365)) ([6aa47ec](6aa47ec))
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.

None yet

1 participant