This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// https://github.com/qnblackcat/uYouPlus/discussions/447#discussioncomment-3672653 | |
%hook SSORPCService | |
+ (id)URLFromURL:(id)arg1 withAdditionalFragmentParameters:(NSDictionary *)arg2 { | |
NSURL *orig = %orig; | |
NSURLComponents *urlComponents = [[NSURLComponents alloc] initWithURL:orig resolvingAgainstBaseURL:NO]; | |
NSMutableArray *newQueryItems = [urlComponents.queryItems mutableCopy]; | |
for (NSURLQueryItem *queryItem in urlComponents.queryItems) { | |
if ([queryItem.name isEqualToString:@"system_version"] | |
|| [queryItem.name isEqualToString:@"app_version"] |