From b8ddd45bcf3309f3d3d5813069b6934c59645bdd Mon Sep 17 00:00:00 2001 From: arichornlover <78001398+arichornlover@users.noreply.github.com> Date: Tue, 20 Feb 2024 21:47:08 -0600 Subject: [PATCH] It works! --- Sources/uYouPlus.xm | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/Sources/uYouPlus.xm b/Sources/uYouPlus.xm index b112fce..0c18432 100644 --- a/Sources/uYouPlus.xm +++ b/Sources/uYouPlus.xm @@ -809,7 +809,6 @@ static NSString *accessGroupID() { } %end -/* disabled so you guys can compile uYouEnhanced. // uYouPlus Button in Navigation Bar (for Clear Cache and Color Options) - @arichornlover %hook YTRightNavigationButtons %property (retain, nonatomic) YTQTMButton *uYouPlusButton; @@ -861,14 +860,12 @@ static NSString *accessGroupID() { } %new; - (void)uYouPlusRootOptionsAction { - UINavigationController *uYouPlusRootOptionsControllerView = [[UINavigationController alloc] initWithRootViewController:[[RootOptionsController alloc] init]]; - [uYouPlusRootOptionsControllerView setModalPresentationStyle:UIModalPresentationFullScreen]; - - UIViewController *rootPrefsViewController = [self _viewControllerForAncestor]; - [rootPrefsViewController presentViewController:uYouPlusRootOptionsControllerView animated:YES completion:nil]; + UINavigationController *rootOptionsControllerView = [[UINavigationController alloc] initWithRootViewController:[[RootOptionsController alloc] init]]; + [rootOptionsControllerView setModalPresentationStyle:UIModalPresentationFullScreen]; + + [self._viewControllerForAncestor presentViewController:rootOptionsControllerView animated:YES completion:nil]; } %end -*/ // Hide the (Connect / Share / Remix / Thanks / Download / Clip / Save) Buttons under the Video Player - 17.x.x and up - @arichornlover %hook _ASDisplayView