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:
parent
3d1f708213
commit
2f0e7be20c
1 changed files with 6 additions and 3 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue