From 37a1461742783e9fcc657cc3df0cf0896539a618 Mon Sep 17 00:00:00 2001 From: arichorn <78001398+arichorn@users.noreply.github.com> Date: Thu, 21 Sep 2023 22:01:33 -0500 Subject: [PATCH] Updated `YTNoModernUI` + `YTShortsProgress` YTNoModernUI was updated to remove some stuff that is no longer in the app anymore. YTShortsProgress was updated to fix the PlayerBar but unfortunately when I checked it seems like YouTube removed the `shouldEnablePlayerBar` Feature which was needed. --- uYouPlus.xm | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/uYouPlus.xm b/uYouPlus.xm index 843e93c..de944f2 100644 --- a/uYouPlus.xm +++ b/uYouPlus.xm @@ -307,14 +307,17 @@ static void repositionCreateTab(YTIGuideResponse *response) { %end // YTShortsProgress - https://github.com/PoomSmart/YTShortsProgress/ +%hook YTShortsPlayerViewController +- (BOOL)shouldAlwaysEnablePlayerBar { return YES; } +- (BOOL)shouldEnablePlayerBarOnlyOnPause { return NO; } +%end + %hook YTReelPlayerViewController -- (BOOL)shouldEnablePlayerBar { return YES; } - (BOOL)shouldAlwaysEnablePlayerBar { return YES; } - (BOOL)shouldEnablePlayerBarOnlyOnPause { return NO; } %end %hook YTReelPlayerViewControllerSub -- (BOOL)shouldEnablePlayerBar { return YES; } - (BOOL)shouldAlwaysEnablePlayerBar { return YES; } - (BOOL)shouldEnablePlayerBarOnlyOnPause { return NO; } %end @@ -379,18 +382,14 @@ static void repositionCreateTab(YTIGuideResponse *response) { } %end -%hook YTSegmentableInlinePlayerBarView // Old Buffer Bar - YTNoModernUI +%hook YTSegmentableInlinePlayerBarView // Gray Buffer Progress - YTNoModernUI - (void)setBufferedProgressBarColor:(id)arg1 { [UIColor colorWithRed:0.65 green:0.65 blue:0.65 alpha:0.60]; } %end %hook YTQTMButton -- (BOOL)buttonModernizationEnabled { return NO; } -%end - -%hook YTSearchBarView -- (BOOL)_roundedSearchBarEnabled { return NO; } ++ (BOOL)buttonModernizationEnabled { return NO; } %end %hook YTColdConfig @@ -399,13 +398,11 @@ static void repositionCreateTab(YTIGuideResponse *response) { - (BOOL)cxClientEnableModernizedActionSheet { return NO; } - (BOOL)enableClientShortsSheetsModernization { return NO; } - (BOOL)enableTimestampModernizationForNative { return NO; } -- (BOOL)mainAppCoreClientIosEnableModernOssPage { return NO; } - (BOOL)modernizeElementsTextColor { return NO; } - (BOOL)modernizeElementsBgColor { return NO; } - (BOOL)modernizeCollectionLockups { return NO; } - (BOOL)uiSystemsClientGlobalConfigEnableEpUxUpdates { return NO; } - (BOOL)uiSystemsClientGlobalConfigEnableModernButtonsForNative { return NO; } -- (BOOL)uiSystemsClientGlobalConfigEnableModernButtonsForNativeLongTail { return NO; } - (BOOL)uiSystemsClientGlobalConfigEnableModernTabsForNative { return NO; } - (BOOL)uiSystemsClientGlobalConfigIosEnableSnackbarModernization { return NO; } // Disable Rounded Content - YTNoModernUI