From cd0c125feb86bbafab3558f677ef70219c5ecd2c Mon Sep 17 00:00:00 2001 From: arichornlover <78001398+arichorn@users.noreply.github.com> Date: Tue, 28 Nov 2023 19:35:16 -0600 Subject: [PATCH] Updated YTNoModernUI YTNoModernUI had an urgent update! Google has changed the way ambient works and I decided to do an implementation to fix it! --- uYouPlus.xm | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/uYouPlus.xm b/uYouPlus.xm index 8a2cd1f..a0fd725 100644 --- a/uYouPlus.xm +++ b/uYouPlus.xm @@ -603,14 +603,19 @@ int main(int argc, char * argv[]) { } %end -%hook YTQTMButton // No Modern/Rounded Buttons - YTNoModernUI +%hook YTQTMButton // Disable Modern/Rounded Buttons - YTNoModernUI + (BOOL)buttonModernizationEnabled { return NO; } %end -%hook YTBubbleHintView // No Modern/Rounded Hints - YTNoModernUI +%hook YTBubbleHintView // Disable Modern/Rounded Hints - YTNoModernUI + (BOOL)modernRoundedCornersEnabled { return NO; } %end +%hook YTCinematicContainerView // Disable Ambient Mode Container - YTNoModernUI +- (void)didMoveToWindow { +} +%end + %hook YTColdConfig // Disable Modern Content - YTNoModernUI - (BOOL)creatorClientConfigEnableStudioModernizedMdeThumbnailPickerForClient { return NO; } @@ -674,6 +679,10 @@ int main(int argc, char * argv[]) { %end %group gDisableAmbientMode +%hook YTCinematicContainerView +- (void)didMoveToWindow { +} +%end %hook YTColdConfig - (BOOL)disableCinematicForLowPowerMode { return NO; } - (BOOL)enableCinematicContainer { return NO; } @@ -1069,7 +1078,7 @@ static void replaceTab(YTIGuideResponse *response) { } %end -// Hide the (Remix / Thanks / Download / Clip / Save) Buttons under the Video Player - @arichorn +// Hide the (Remix / Thanks / Download / Clip / Save) Buttons under the Video Player - 17.x.x and up - @arichorn %hook _ASDisplayView - (void)layoutSubviews { %orig;