Skip to content

Commit

Permalink
Update uYouPlusPatches.xm
Browse files Browse the repository at this point in the history
  • Loading branch information
CurssedCoffin committed Jul 20, 2024
1 parent 55f3764 commit 0f9ee25
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions Sources/uYouPlusPatches.xm
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,6 @@

# pragma mark - YouTube patches

// Fix Google Sign in by @PoomSmart and @level3tjg (qnblackcat/uYouPlus#684)
%hook NSBundle
- (NSDictionary *)infoDictionary {
NSMutableDictionary *info = %orig.mutableCopy;
if ([self isEqual:NSBundle.mainBundle])
info[@"CFBundleIdentifier"] = @"com.google.ios.youtube";
return info;
}
%end

%hook YTHotConfig
- (BOOL)disableAfmaIdfaCollection { return NO; }
%end

// https://github.com/PoomSmart/YouTube-X/blob/1e62b68e9027fcb849a75f54a402a530385f2a51/Tweak.x#L27
// %hook YTAdsInnerTubeContextDecorator
// - (void)decorateContext:(id)context {}
Expand Down Expand Up @@ -208,4 +194,4 @@ static void refreshUYouAppearance() {

// Disable uYou's adblock
[[NSUserDefaults standardUserDefaults] setBool:NO forKey:@"removeYouTubeAds"];
}
}

0 comments on commit 0f9ee25

Please sign in to comment.