From 7ad0a722814d22a4e44cea2e58abfec67f403bbe Mon Sep 17 00:00:00 2001 From: arichornlover <78001398+arichornlover@users.noreply.github.com> Date: Tue, 13 Feb 2024 17:58:48 -0600 Subject: [PATCH] Remove In-App Rating Prompt Hopefully this removes the prompt asking you to rate the app. --- Sources/uYouPlus.xm | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Sources/uYouPlus.xm b/Sources/uYouPlus.xm index 9e1bc08..bb6fea0 100644 --- a/Sources/uYouPlus.xm +++ b/Sources/uYouPlus.xm @@ -221,6 +221,18 @@ static NSString *accessGroupID() { } %end +// Remove App Rating Prompt in YouTube - @arichornlover +%hook UIApplication +- (BOOL)canOpenURL:(NSURL *)url { + NSString *urlString = url.absoluteString; + if ([urlString containsString:@"itunes.apple.com/app/id"]) { + return NO; + } + + return %orig; +} +%end + // YTMiniPlayerEnabler: https://github.com/level3tjg/YTMiniplayerEnabler/ %hook YTWatchMiniBarViewController - (void)updateMiniBarPlayerStateFromRenderer {