mirror of
				https://github.com/SoPat712/YTLitePlus.git
				synced 2025-10-30 20:34:03 -04:00 
			
		
		
		
	Hide comment previews by @arichornlover
This commit is contained in:
		| @@ -542,6 +542,25 @@ BOOL isTabSelected = NO; | ||||
| } | ||||
| %end | ||||
|  | ||||
|  | ||||
| // Hide the Comment Section Previews under the Video Player - @arichornlover | ||||
| %hook _ASDisplayView | ||||
| - (void)didMoveToWindow { | ||||
|     %orig; | ||||
|     if ((IsEnabled(@"hidePreviewCommentSection_enabled")) && ([self.accessibilityIdentifier isEqualToString:@"id.ui.comments_entry_point_teaser"])) { | ||||
|         self.hidden = YES; | ||||
|         self.opaque = YES; | ||||
|         self.userInteractionEnabled = NO; | ||||
|         CGRect bounds = self.frame; | ||||
|         bounds.size.height = 0; | ||||
|         self.frame = bounds; | ||||
|         [self.superview layoutIfNeeded]; | ||||
|         [self setNeedsLayout]; | ||||
|         [self removeFromSuperview]; | ||||
|     } | ||||
| } | ||||
| %end | ||||
|  | ||||
| // BigYTMiniPlayer: https://github.com/Galactic-Dev/BigYTMiniPlayer | ||||
| %group Main | ||||
| %hook YTWatchMiniBarView | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Bryce Hackel
					Bryce Hackel