Simplify the prompt method. (Part 4)

This time, I simplified it to where it should close it once it appears I hope.
This commit is contained in:
arichornlover 2024-02-17 22:31:40 -06:00 committed by GitHub
parent de49d8800c
commit 85f0dd3874
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -222,25 +222,9 @@ static NSString *accessGroupID() {
}
%end
// Remove App Rating Prompt in YouTube (for Sideloaded) - @arichornlover
%hook UIApplication
- (BOOL)canOpenURL:(NSURL *)url {
NSString *urlString = url.absoluteString;
if ([urlString containsString:@"itunes.apple.com/app/id"]) {
return NO;
}
return %orig;
}
%end
// Remove App Rating Prompt in YouTube (for Sideloaded - iOS 14+) - @arichornlover
%hook SKStoreReviewController
+ (void)load {
%orig;
UIWindow *window = [UIApplication sharedApplication].keyWindow;
if (window) {
[window.rootViewController presentViewController:[UIViewController new] animated:NO completion:nil];
}
}
+ (void)requestReview { }
%end
// YTMiniPlayerEnabler: https://github.com/level3tjg/YTMiniplayerEnabler/