mirror of
https://github.com/YTLitePlus/YTLitePlus.git
synced 2026-03-11 21:26:05 +00:00
fix issue #3
This commit is contained in:
parent
9f332ea14a
commit
73276177f3
1 changed files with 17 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue