Update uYouPlusPatches.xm

Also let me remind y’all that uYouEnhanced isn’t discontinued. Saying this as of July 4th 2024.
This commit is contained in:
arichornlover 2024-07-04 05:50:00 -05:00 committed by GitHub
parent ef338016e8
commit 661b7ddc52
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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"];
}