Fix Google sign in

This commit is contained in:
arichornlover 2024-04-29 22:20:33 -05:00 committed by GitHub
parent c8f0fef06c
commit ae2957dfcb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -67,6 +67,16 @@ static BOOL IsEnabled(NSString *key) {
}
%end
// Fix Google Sign in by @PoomSmart and @level3tjg (qnblackcat/uYouPlus#684)
%hook NSBundle
- (NSDictionary *)infoDictionary {
NSMutableDictionary *info = %orig.mutableCopy;
if ([self isEqual:NSBundle.mainBundle])
info[@"CFBundleIdentifier"] = @"com.google.ios.youtube";
return info;
}
%end
// Skips content warning before playing *some videos - @PoomSmart
%hook YTPlayabilityResolutionUserActionUIController
- (void)showConfirmAlert { [self confirmAlertDidPressConfirm]; }