New Option (Hide Subscriptions Notification Badge)

This commit is contained in:
arichorn 2023-07-13 03:47:13 -05:00 committed by GitHub
parent 4500f72969
commit 102e84656f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -414,7 +414,7 @@ BOOL isAd(id node) {
// YTNoModernUI - @arichorn
%group gYTNoModernUI
%hook YTVersionUtils // YTNoModernUI Version
+ (NSString *)appVersion { return @"16.42.3"; }
+ (NSString *)appVersion { return @"17.11.2"; }
%end
%hook YTInlinePlayerBarContainerView // Red Progress Bar - YTNoModernUI
@ -1608,6 +1608,14 @@ UIColor* raisedColor = [UIColor blackColor];
%end
%end
%group gHideSubscriptionsNotificationBadge
%hook YTPivotBarIndicatorView
- (void)setHidden:(BOOL)hidden {
%orig(YES);
}
%end
%end
// YT startup animation
%hook YTColdConfig
- (BOOL)mainAppCoreClientIosEnableStartupAnimation {
@ -1671,7 +1679,10 @@ UIColor* raisedColor = [UIColor blackColor];
}
if (IsEnabled(@"iPhoneLayout_enabled") && (UIDevice.currentDevice.userInterfaceIdiom == UIUserInterfaceIdiomPad)) {
%init(giPhoneLayout);
}
}
if (IsEnabled(@"hideSubscriptionsNotificationBadge_enabled")) {
%init(gHideSubscriptionsNotificationBadge);
}
if (IsEnabled(@"stockVolumeHUD_enabled")) {
%init(gStockVolumeHUD);
}