This commit is contained in:
Balackburn
2023-07-06 19:11:06 +02:00
parent 9f332ea14a
commit 73276177f3

View File

@@ -71,6 +71,23 @@ static BOOL IsEnabled(NSString *key) {
}
%end
# pragma mark - Hide Notification Button
%hook YTRightNavigationButtons
- (void)didMoveToWindow {
%orig;
}
- (void)layoutSubviews {
%orig;
if (IsEnabled(@"hideNotificationButton_enabled")) {
self.notificationButton.hidden = YES;
}
if (IsEnabled(@"hideSponsorBlockButton_enabled")) {
self.sponsorBlockButton.hidden = YES;
}
}
%end
// Hide Cast Button since Cercube's option is not working
%group gHideCastButton
%hook MDXPlaybackRouteButtonController