fix(YouTube - Hide layout components): Detect if a keyword filter hides all videos #3365
+1
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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