It works!

This commit is contained in:
arichornlover 2024-02-20 21:47:08 -06:00 committed by GitHub
parent 81d65dbe48
commit b8ddd45bcf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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