From 546f1f36033424f17322f79b92cb9c731ef2df54 Mon Sep 17 00:00:00 2001 From: arichorn <78001398+arichorn@users.noreply.github.com> Date: Fri, 11 Aug 2023 17:30:16 -0500 Subject: [PATCH] New Option (16.42.3 App Fixer) This New Option is recommended in 2024. this option will be important because in that year Google will kill those APIs for older app versions like 16.42.3 but whenever enabling this option it will completely change and force the app into using newer APIs. Into making the app functional once again. --- uYouPlus.xm | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/uYouPlus.xm b/uYouPlus.xm index 1cf46b7..650a544 100644 --- a/uYouPlus.xm +++ b/uYouPlus.xm @@ -496,6 +496,23 @@ static BOOL didFinishLaunching; - (BOOL)enablePlayerBarForVerticalVideoWhenControlsHiddenInFullscreen { return YES; } %end +%group gYouTubeAppPatcher // YTAppPatcher for 16.42.3 - @arichorn +%hook YTVersionUtils ++ (NSString *)appVersion { return @"17.05.2"; } +%end + +%hook YTSettingsCell // made by Dayanch96 +- (void)setDetailText:(id)arg1 { + NSDictionary *infoDictionary = [[NSBundle mainBundle] infoDictionary]; + NSString *appVersion = infoDictionary[@"CFBundleShortVersionString"]; + + if ([arg1 isEqualToString:@"17.05.2"]) { + arg1 = appVersion; + } %orig(arg1); +} +%end +%end + // Disable Wifi Related Settings - @arichorn %group gDisableWifiRelatedSettings %hook YTSettingsSectionItemManager