Skip to content

Commit

Permalink
Merge pull request #398 from julioverne/main
Browse files Browse the repository at this point in the history
Completely fix Google Sign-in by julioverne (#319)
  • Loading branch information
qnblackcat authored Aug 20, 2022
2 parents 329fb16 + 2ff0f3f commit 4fee215
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion uYouPlus.xm
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,23 @@ BOOL hidePaidPromotionCard() {
}
%end

%hook NSJSONSerialization
+ (id)dataWithJSONObject:(id)arg1 options:(unsigned long long)arg2 error:(id*)arg3
{
@try {
if(arg1 && ([arg1 isKindOfClass:[NSDictionary class]] || [arg1 isKindOfClass:[NSMutableDictionary class]]) ) {
if(arg1[@"device_challenge_request"] != nil) {
NSMutableDictionary *MutRet = [arg1 mutableCopy];
[MutRet removeObjectForKey:@"device_challenge_request"];
arg1 = MutRet;
}
}
}@catch(NSException*e){
}
return %orig(arg1, arg2, arg3);
}
%end

# pragma mark - OLED dark mode by BandarHL
UIColor* raisedColor = [UIColor colorWithRed:0.035 green:0.035 blue:0.035 alpha:1.0];
%group gOLED
Expand Down Expand Up @@ -773,4 +790,4 @@ static void replaceTab(YTIGuideResponse *response) {
if (@available(iOS 16, *)) {
%init(iOS16);
}
}
}

0 comments on commit 4fee215

Please sign in to comment.