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.