Skip to content

Commit

Permalink
workaround missing ui elements
Browse files Browse the repository at this point in the history
  • Loading branch information
FDeaf committed Jul 21, 2024
1 parent 55f3764 commit 3d20058
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 3d20058

Please sign in to comment.