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.
This commit is contained in:
arichorn 2023-08-11 17:30:16 -05:00 committed by GitHub
parent 0d3ab04bc5
commit 546f1f3603
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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