Disable Collapse Button - v

Allows the user to disable the **v** icon in the Video Player.
This commit is contained in:
arichornlover 2024-02-28 17:04:24 -06:00 committed by GitHub
parent 8ec566537b
commit df4c49820a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -602,7 +602,24 @@ static NSString *accessGroupID() {
}
%end
// Hide Fullscreen Button
// Hide Video Player Collapse Button - @arichornlover
%hook YTMainAppControlsOverlayView
- (void)layoutSubviews {
%orig;
if (IS_ENABLED(@"disableCollapseButton_enabled")) {
if (self.watchCollapseButton) {
[self.watchCollapseButton removeFromSuperview];
}
}
}
- (BOOL)watchCollapseButtonHidden {
return YES;
}
- (void)setWatchCollapseButtonAvailable:(BOOL)available {
}
%end
// Hide Fullscreen Button - @arichornlover
%hook YTInlinePlayerBarContainerView
- (void)layoutSubviews {
%orig;