From 41e309eb6c124ffdb37fe04a528c97b9f5abbd3b Mon Sep 17 00:00:00 2001 From: arichornloverALT <157071384+arichornloverALT@users.noreply.github.com> Date: Sat, 13 Jul 2024 18:34:18 -0500 Subject: [PATCH] Fix ASNodeController I changed it! and it works successfully! --- Sources/uYouPlus.xm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Sources/uYouPlus.xm b/Sources/uYouPlus.xm index 7027914e0c..729839da63 100644 --- a/Sources/uYouPlus.xm +++ b/Sources/uYouPlus.xm @@ -1389,7 +1389,7 @@ static BOOL findCell(ASNodeController *nodeController, NSArray *ide %hook ASCollectionView // This stopped working on May 14th 2024 due to a Server-Side Change from YouTube. - (CGSize)sizeForElement:(ASCollectionElement * _Nullable)element { - if ([self.accessibilityIdentifier isEqualToString:@"id.video.scrollable_action_bar"]) { + if ([self.accessibilityIdentifier isEqualToString:@"video_action_bar.eml"]) { // id.video.scrollable_action_bar ASCellNode *node = [element node]; ASNodeController *nodeController = [node controller]; if (IS_ENABLED(@"hideShareButton_enabled") && findCell(nodeController, @[@"id.video.share.button"])) { @@ -1408,11 +1408,11 @@ static BOOL findCell(ASNodeController *nodeController, NSArray *ide return CGSizeZero; } - if (IS_ENABLED(@"hideDownloadButton_enabled") && findCell(nodeController, @[@"id.ui.add_to.offline.button"])) { + if (IS_ENABLED(@"hideDownloadButton_enabled") && findCell(nodeController, @[@"download_button.eml"])) { // id.ui.add_to.offline.button return CGSizeZero; } - if (IS_ENABLED(@"hideCommentSection_enabled") && findCell(nodeController, @[@"id.ui.carousel_header"])) { + if (IS_ENABLED(@"hideCommentSection_enabled") && findCell(nodeController, @[@"comment_teaser_carousel_item.eml"])) { // id.ui.carousel_header return CGSizeZero; } }