From 8848c35cf0817264112c949de7e00b1c61ec2f3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nguy=E1=BB=85n=20=C4=90=E1=BA=A1t?= <52943116+qnblackcat@users.noreply.github.com> Date: Tue, 4 Apr 2023 13:12:13 +0700 Subject: [PATCH] Fix blocking ads not working? --- uYouPlus.xm | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/uYouPlus.xm b/uYouPlus.xm index de2ba4b..4e99f0d 100644 --- a/uYouPlus.xm +++ b/uYouPlus.xm @@ -246,11 +246,15 @@ static BOOL didFinishLaunching; } %end -// https://github.com/PoomSmart/YouTube-X/blob/1e62b68e9027fcb849a75f54a402a530385f2a51/Tweak.x#L27 -%hook YTAdsInnerTubeContextDecorator -- (void)decorateContext:(id)context {} +%hook YTHotConfig +- (BOOL)disableAfmaIdfaCollection { return NO; } %end +// https://github.com/PoomSmart/YouTube-X/blob/1e62b68e9027fcb849a75f54a402a530385f2a51/Tweak.x#L27 +// %hook YTAdsInnerTubeContextDecorator +// - (void)decorateContext:(id)context {} +// %end + // Fix login for YouTube 17.33.2 and higher %hook SSOKeychainCore + (NSString *)accessGroup {