Skip to content

Commit

Permalink
Update uYouPlus.xm
Browse files Browse the repository at this point in the history
  • Loading branch information
aricloverALT authored Aug 10, 2024
1 parent dc680e8 commit 80acdd6
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions Sources/uYouPlus.xm
Original file line number Diff line number Diff line change
Expand Up @@ -1287,14 +1287,11 @@ static int contrastMode() {
- (void)didMoveToWindow {
%orig;
if (IS_ENABLED(@"hidePreviewCommentSection_enabled")) {
if ([[self valueForKeyPath:@"node.accessibilityIdentifier"] isEqualToString:@"comments_entry_point_teaser.eml"]) {
id node = [self valueForKeyPath:@"node"];
if ([node isKindOfClass:[ASDisplayNode class]]) {
node.hidden = YES;
node.opaque = YES;
node.userInteractionEnabled = NO;
[node removeFromSuperview];
}
if ([[self accessibilityIdentifier] isEqualToString:@"comments_entry_point_teaser.eml"]) {
self.hidden = YES;
self.opaque = YES;
self.userInteractionEnabled = NO;
[self removeFromSuperview];
}
}
}
Expand Down

0 comments on commit 80acdd6

Please sign in to comment.