Fix uYou repeat

This commit is contained in:
Bryce Hackel 2024-04-10 17:56:20 -07:00
parent 997f125517
commit 851ae64988
No known key found for this signature in database
GPG key ID: F031960F08455E88

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 {