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
|
%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
|
// Hide Cast Button since Cercube's option is not working
|
||||||
%group gHideCastButton
|
%group gHideCastButton
|
||||||
%hook MDXPlaybackRouteButtonController
|
%hook MDXPlaybackRouteButtonController
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue