Skip to content

Commit

Permalink
Merge pull request qnblackcat#3 from TheNightRider12/revert-2-TheNigh…
Browse files Browse the repository at this point in the history
…tRider12-Fix-Missing-Icons

Revert "Try To Fix Icons Missing"
  • Loading branch information
TheNightRider12 authored Jul 11, 2024
2 parents 8a986ca + d0b2c30 commit 770de08
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions Sources/uYouPlusPatches.xm
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
# 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 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; }
Expand Down Expand Up @@ -208,4 +208,4 @@ static void refreshUYouAppearance() {

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

0 comments on commit 770de08

Please sign in to comment.