Skip to content

Commit

Permalink
Update uYouPlusPatches.xm
Browse files Browse the repository at this point in the history
  • Loading branch information
simonk83 authored Nov 8, 2024
1 parent daef4c8 commit c7fbffe
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions Sources/uYouPlusPatches.xm
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
# pragma mark - YouTube patches

// Fix Google Sign in by @PoomSmart and @level3tjg (qnblackcat/uYouPlus#684)
%hook NSBundle
- (NSDictionary *)infoDictionary {
NSMutableDictionary *info = %orig.mutableCopy;
if ([self isEqual:NSBundle.mainBundle] && [[NSUserDefaults standardUserDefaults] boolForKey:kGoogleSigninFix])
info[@"CFBundleIdentifier"] = @"com.google.ios.youtube";
return info;
}
%end
// %hook NSBundle
// - (NSDictionary *)infoDictionary {
// NSMutableDictionary *info = %orig.mutableCopy;
// if ([self isEqual:NSBundle.mainBundle] && [[NSUserDefaults standardUserDefaults] boolForKey:kGoogleSigninFix])
// info[@"CFBundleIdentifier"] = @"com.google.ios.youtube";
// return info;
// }
// %end

%hook YTHotConfig
- (BOOL)disableAfmaIdfaCollection { return NO; }
Expand Down Expand Up @@ -261,4 +261,4 @@ static void refreshUYouAppearance() {

// Disable uYou's adblock
[[NSUserDefaults standardUserDefaults] setBool:NO forKey:@"removeYouTubeAds"];
}
}

0 comments on commit c7fbffe

Please sign in to comment.