From 9a9d557f6571647258d2f0792d73b2de6052ce29 Mon Sep 17 00:00:00 2001 From: arichornlover <78001398+arichornlover@users.noreply.github.com> Date: Tue, 2 Apr 2024 23:33:37 -0500 Subject: [PATCH] =?UTF-8?q?Updated=20=E2=80=9C=20Fix=20LowContrastMode?= =?UTF-8?q?=E2=80=9D=20Option?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I modified Settings.xm and I had to do this change if anyone wanted to bypass the new restrictions I added. --- Sources/uYouPlus.xm | 27 +++++++++++++++++++-------- 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/Sources/uYouPlus.xm b/Sources/uYouPlus.xm index d81c284..99d64c8 100644 --- a/Sources/uYouPlus.xm +++ b/Sources/uYouPlus.xm @@ -299,7 +299,7 @@ BOOL isAd(YTIElementRenderer *self) { - (BOOL)enablePlayerBarForVerticalVideoWhenControlsHiddenInFullscreen { return YES; } %end -// YTNoTracking - @arichorn - https://github.com/arichorn/YTNoTracking/ +// YTNoTracking - @arichornlover - https://github.com/arichornlover/YTNoTracking/ %hook UIApplication - (BOOL)application:(UIApplication *)application openURL:(NSURL *)url options:(NSDictionary *)options { NSString *originalURLString = [url absoluteString]; @@ -350,10 +350,21 @@ BOOL isAd(YTIElementRenderer *self) { } %end -// Fix LowContrastMode - @arichorn +// Fix LowContrastMode - @arichornlover %group gFixLowContrastMode -%hook YTVersionUtils // Supported LowContrastMode Version -+ (NSString *)appVersion { return @"17.38.10"; } +%hook NSBundle +- (id)objectForInfoDictionaryKey:(NSString *)key { + if ([key isEqualToString:@"CFBundleShortVersionString"]) { + return @"17.38.10"; + } + return %orig; +} +%end + +%hook YTVersionUtils ++ (NSString *)appVersion { + return @"17.38.10"; +} %end %hook YTSettingsCell // Remove v17.38.10 Version Number - @Dayanch96 @@ -368,21 +379,21 @@ BOOL isAd(YTIElementRenderer *self) { %end %end -// Disable Modern/Rounded Buttons (_ASDisplayView not included) - @arichorn +// Disable Modern/Rounded Buttons (_ASDisplayView not included) - @arichornlover %group gDisableModernButtons %hook YTQTMButton // Disable Modern/Rounded Buttons + (BOOL)buttonModernizationEnabled { return NO; } %end %end -// Disable Rounded Hints with no Rounded Corners - @arichorn +// Disable Rounded Hints with no Rounded Corners - @arichornlover %group gDisableRoundedHints %hook YTBubbleHintView // Disable Modern/Rounded Hints + (BOOL)modernRoundedCornersEnabled { return NO; } %end %end -// Disable Modern Flags - @arichorn +// Disable Modern Flags - @arichornlover %group gDisableModernFlags %hook YTColdConfig // Disable Modern Content @@ -423,7 +434,7 @@ BOOL isAd(YTIElementRenderer *self) { %end %end -// Disable Ambient Mode in Fullscreen - @arichorn +// Disable Ambient Mode in Fullscreen - @arichornlover %group gDisableAmbientMode %hook YTCinematicContainerView - (BOOL)watchFullScreenCinematicSupported {