mirror of
https://github.com/SoPat712/YTLitePlus.git
synced 2025-08-22 02:58:45 -04:00
fix issue #3
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user