From 661b7ddc5225071da34cce5e1bb9c30c164f92e6 Mon Sep 17 00:00:00 2001 From: arichornlover <78001398+arichornlover@users.noreply.github.com> Date: Thu, 4 Jul 2024 05:50:00 -0500 Subject: [PATCH] Update uYouPlusPatches.xm MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Also let me remind y’all that uYouEnhanced isn’t discontinued. Saying this as of July 4th 2024. --- Sources/uYouPlusPatches.xm | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/Sources/uYouPlusPatches.xm b/Sources/uYouPlusPatches.xm index 2f078c5..7430664 100644 --- a/Sources/uYouPlusPatches.xm +++ b/Sources/uYouPlusPatches.xm @@ -12,16 +12,6 @@ } %end -// Workaround for MiRO92/uYou-for-YouTube#12, qnblackcat/uYouPlus#263 -%hook YTDataUtils -+ (NSMutableDictionary *)spamSignalsDictionary { - return nil; -} -+ (NSMutableDictionary *)spamSignalsDictionaryWithoutIDFA { - return nil; -} -%end - %hook YTHotConfig - (BOOL)disableAfmaIdfaCollection { return NO; } %end @@ -175,7 +165,6 @@ static BOOL showNativeShareSheet(NSString *serializedShareEntity) { } %end - /* ------------------- iPhone Layout ------------------- */ %hook ELMPBShowActionSheetCommand @@ -351,4 +340,7 @@ static void refreshUYouAppearance() { // Disable uYou's playback speed controls (prevent crash on video playback https://github.com/therealFoxster/uYouPlus/issues/2#issuecomment-1894912963) // [[NSUserDefaults standardUserDefaults] setBool:NO forKey:@"showPlaybackRate"]; + + // Disable uYou's adblock + [[NSUserDefaults standardUserDefaults] setBool:NO forKey:@"removeYouTubeAds"]; }