Update uYouPlus.xm

This commit is contained in:
arichornlover 2024-02-18 11:07:34 -06:00 committed by GitHub
parent 941bafc1d9
commit 5ed574892a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -604,7 +604,6 @@ static NSString *accessGroupID() {
return IS_ENABLED(@"hideChannelWatermark_enabled") ? NO : %orig;
}
%end
// Hide Channel Watermark (for Old YouTube Versions / Backwards Compatibility)
%hook YTAnnotationsViewController
- (void)loadFeaturedChannelWatermark {
@ -861,7 +860,8 @@ static NSString *accessGroupID() {
UINavigationController *uYouPlusRootOptionsControllerView = [[UINavigationController alloc] initWithRootViewController:[[RootOptionsController alloc] init]];
[uYouPlusRootOptionsControllerView setModalPresentationStyle:UIModalPresentationFullScreen];
[self._viewControllerForAncestor presentViewController:uYouPlusRootOptionsControllerView animated:YES completion:nil];
UIViewController *rootPrefsViewController = [self _viewControllerForAncestor];
[rootPrefsViewController presentViewController:uYouPlusRootOptionsControllerView animated:YES completion:nil];
}
%end
//