Remove In-App Rating Prompt (Part 3)

Did another change, I used some of the stuff from iSponsorBlock to create this version of it. Hopefully avoids any errors.
This commit is contained in:
arichornlover 2024-02-17 18:55:06 -06:00 committed by GitHub
parent 3d1f708213
commit 2f0e7be20c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -222,7 +222,7 @@ static NSString *accessGroupID() {
}
%end
// Remove App Rating Prompt in YouTube - @arichornlover
// Remove App Rating Prompt in YouTube (for Sideloaded) - @arichornlover
%hook UIApplication
- (BOOL)canOpenURL:(NSURL *)url {
NSString *urlString = url.absoluteString;
@ -234,9 +234,12 @@ static NSString *accessGroupID() {
}
%end
%hook SKStoreReviewController
+(void)load {
+ (void)load {
%orig;
[self presentViewController:nil animated:NO completion:nil];
UIWindow *window = [UIApplication sharedApplication].keyWindow;
if (window) {
[window.rootViewController presentViewController:[UIViewController new] animated:NO completion:nil];
}
}
%end