Merge pull request #533 from bhackel/fix/uYou-repeat-suggested-videos

Fix uYou repeat
This commit is contained in:
arichornlover 2024-04-10 22:16:38 -05:00 committed by GitHub
commit 98ddb2a738
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -532,6 +532,17 @@ BOOL isAd(YTIElementRenderer *self) {
%end
%end
// Fix uYou Repeat - @bhackel
// When uYou repeat is enabled, and Suggested Video Popup is disabled,
// the endscreen view with multiple suggestions is overlayed when it
// should not be.
%hook YTFullscreenEngagementOverlayController
- (BOOL)isEnabled {
// repeatVideo is the key for uYou Repeat
return IS_ENABLED(@"repeatVideo") ? NO : %orig;
}
%end
# pragma mark - Hide Notification Button && SponsorBlock Button && uYouPlus Button
%hook YTRightNavigationButtons
- (void)layoutSubviews {