From 948f478229f562f2b9a2ed2b75bbf1811503d7d7 Mon Sep 17 00:00:00 2001 From: arichorn <78001398+arichorn@users.noreply.github.com> Date: Sun, 1 Oct 2023 00:28:35 -0500 Subject: [PATCH] Fix #138 Fixed a problem that was caused by me --- uYouPlus.xm | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/uYouPlus.xm b/uYouPlus.xm index fb2249e..e3a2de2 100644 --- a/uYouPlus.xm +++ b/uYouPlus.xm @@ -1028,17 +1028,30 @@ static void replaceTab(YTIGuideResponse *response) { %end %end +/* // Hide Suggested Videos in Video Player - @arichorn %hook YTAutonavEndscreenView - (void)didMoveToWindow { %orig; self.hidden = YES; - self.userInteractionEnabled = NO; + [self sizeToFit]; [self setNeedsLayout]; - [self layoutIfNeeded]; + [self removeFromSuperview]; } %end +// Hide Preview Videos whenever video ends in Video Player - @arichorn +%hook YTAutonavPreviewView +- (void)didMoveToWindow { + %orig; + self.hidden = YES; + [self sizeToFit]; + [self setNeedsLayout]; + [self removeFromSuperview]; +} +%end +*/ + # pragma mark - ctor %ctor { // Load uYou first so its functions are available for hooks.