From f03ab2fe3d0fb0261a1ec0e7346f7fe35f78ad67 Mon Sep 17 00:00:00 2001 From: arichorn <78001398+arichorn@users.noreply.github.com> Date: Sun, 17 Sep 2023 12:44:15 -0500 Subject: [PATCH] Added another Option #111 --- uYouPlus.xm | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/uYouPlus.xm b/uYouPlus.xm index 7e325cd..50d03fb 100644 --- a/uYouPlus.xm +++ b/uYouPlus.xm @@ -502,6 +502,15 @@ static void repositionCreateTab(YTIGuideResponse *response) { %end %end +%group gNoRelatedWatchNexts +%hook YTWatchNextResultsViewController +- (void)setVisibleSections:(NSInteger)arg1 { + arg1 = 1; + %orig(arg1); +} +%end +%end + # pragma mark - Hide Notification Button && SponsorBlock Button %hook YTRightNavigationButtons - (void)layoutSubviews { @@ -1047,6 +1056,9 @@ static void replaceTab(YTIGuideResponse *response) { if (IsEnabled(@"hideHeatwaves_enabled")) { %init(gHideHeatwaves); } + if (IsEnabled(@"noRelatedWatchNexts_enabled")) { + %init(gNoRelatedWatchNexts); + } if (IsEnabled(@"ytNoModernUI_enabled")) { %init(gYTNoModernUI); }