From 851ae649882c2c3b6ba9064ce2671cbf9cba000d Mon Sep 17 00:00:00 2001 From: Bryce Hackel <34104885+bhackel@users.noreply.github.com> Date: Wed, 10 Apr 2024 17:56:20 -0700 Subject: [PATCH] Fix uYou repeat --- Sources/uYouPlus.xm | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Sources/uYouPlus.xm b/Sources/uYouPlus.xm index 737d905..fd3f25e 100644 --- a/Sources/uYouPlus.xm +++ b/Sources/uYouPlus.xm @@ -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 {