mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-04-20 02:32:10 +00:00
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:
parent
de49d8800c
commit
85f0dd3874
1 changed files with 2 additions and 18 deletions
|
|
@ -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/
|
||||
|
|
|
|||
Loading…
Reference in a new issue