mirror of
https://github.com/SoPat712/YTLitePlus.git
synced 2025-08-22 02:58:45 -04:00
New Flags for YTNoModernUI
Hey Balackburn. YouTube added new flags related to Ambient mode so I fixed that! And I did add a new option for users that only ambient mode disabled. I hope it helps?
This commit is contained in:
@@ -137,7 +137,7 @@ static BOOL IsEnabled(NSString *key) {
|
|||||||
+ (NSString *)appVersion { return @"17.38.10"; }
|
+ (NSString *)appVersion { return @"17.38.10"; }
|
||||||
%end
|
%end
|
||||||
|
|
||||||
%hook YTSettingsCell // made by Dayanch96
|
%hook YTSettingsCell // Remove v17.38.10 Version Number - @Dayanch96
|
||||||
- (void)setDetailText:(id)arg1 {
|
- (void)setDetailText:(id)arg1 {
|
||||||
NSDictionary *infoDictionary = [[NSBundle mainBundle] infoDictionary];
|
NSDictionary *infoDictionary = [[NSBundle mainBundle] infoDictionary];
|
||||||
NSString *appVersion = infoDictionary[@"CFBundleShortVersionString"];
|
NSString *appVersion = infoDictionary[@"CFBundleShortVersionString"];
|
||||||
@@ -148,24 +148,24 @@ static BOOL IsEnabled(NSString *key) {
|
|||||||
}
|
}
|
||||||
%end
|
%end
|
||||||
|
|
||||||
%hook YTInlinePlayerBarContainerView // Red Progress Bar - YTNoModernUI - made by Dayanch96
|
%hook YTInlinePlayerBarContainerView // Red Progress Bar - YTNoModernUI
|
||||||
- (id)quietProgressBarColor {
|
- (id)quietProgressBarColor {
|
||||||
return [UIColor redColor];
|
return [UIColor redColor];
|
||||||
}
|
}
|
||||||
%end
|
%end
|
||||||
|
|
||||||
%hook YTSegmentableInlinePlayerBarView // Gray Buffer Progress - YTNoModernUI - made by Dayanch96
|
%hook YTSegmentableInlinePlayerBarView // Gray Buffer Progress - YTNoModernUI
|
||||||
- (void)setBufferedProgressBarColor:(id)arg1 {
|
- (void)setBufferedProgressBarColor:(id)arg1 {
|
||||||
[UIColor colorWithRed:1.00 green:1.00 blue:1.00 alpha:0.90];
|
[UIColor colorWithRed:1.00 green:1.00 blue:1.00 alpha:0.90];
|
||||||
}
|
}
|
||||||
%end
|
%end
|
||||||
|
|
||||||
%hook YTQTMButton
|
%hook YTQTMButton // No Modern/Rounded Buttons - YTNoModernUI
|
||||||
- (BOOL)buttonModernizationEnabled { return NO; }
|
+ (BOOL)buttonModernizationEnabled { return NO; }
|
||||||
%end
|
%end
|
||||||
|
|
||||||
%hook YTSearchBarView
|
%hook YTBubbleHintView // No Modern/Rounded Hints - YTNoModernUI
|
||||||
- (BOOL)_roundedSearchBarEnabled { return NO; }
|
+ (BOOL)modernRoundedCornersEnabled { return NO; }
|
||||||
%end
|
%end
|
||||||
|
|
||||||
%hook YTColdConfig
|
%hook YTColdConfig
|
||||||
@@ -200,13 +200,15 @@ static BOOL IsEnabled(NSString *key) {
|
|||||||
- (BOOL)enableCinematicContainer { return NO; }
|
- (BOOL)enableCinematicContainer { return NO; }
|
||||||
- (BOOL)enableCinematicContainerOnClient { return NO; }
|
- (BOOL)enableCinematicContainerOnClient { return NO; }
|
||||||
- (BOOL)enableCinematicContainerOnTablet { return NO; }
|
- (BOOL)enableCinematicContainerOnTablet { return NO; }
|
||||||
|
- (BOOL)enableTurnOffCinematicForFrameWithBlackBars { return YES; }
|
||||||
|
- (BOOL)enableTurnOffCinematicForVideoWithBlackBars { return YES; }
|
||||||
- (BOOL)iosCinematicContainerClientImprovement { return NO; }
|
- (BOOL)iosCinematicContainerClientImprovement { return NO; }
|
||||||
- (BOOL)iosEnableFullScreenAmbientMode { return NO; }
|
|
||||||
- (BOOL)iosEnableGhostCardInlineTitleCinematicContainerFix { return NO; }
|
- (BOOL)iosEnableGhostCardInlineTitleCinematicContainerFix { return NO; }
|
||||||
- (BOOL)iosUseFineScrubberMosaicStoreForCinematic { return NO; }
|
- (BOOL)iosUseFineScrubberMosaicStoreForCinematic { return NO; }
|
||||||
- (BOOL)mainAppCoreClientEnableClientCinematicPlaylists { return NO; }
|
- (BOOL)mainAppCoreClientEnableClientCinematicPlaylists { return NO; }
|
||||||
- (BOOL)mainAppCoreClientEnableClientCinematicPlaylistsPostMvp { return NO; }
|
- (BOOL)mainAppCoreClientEnableClientCinematicPlaylistsPostMvp { return NO; }
|
||||||
- (BOOL)mainAppCoreClientEnableClientCinematicTablets { return NO; }
|
- (BOOL)mainAppCoreClientEnableClientCinematicTablets { return NO; }
|
||||||
|
- (BOOL)iosEnableFullScreenAmbientMode { return NO; }
|
||||||
// 16.42.3 Styled YouTube Channel Page Interface - YTNoModernUI
|
// 16.42.3 Styled YouTube Channel Page Interface - YTNoModernUI
|
||||||
- (BOOL)channelsClientConfigIosChannelNavRestructuring { return NO; }
|
- (BOOL)channelsClientConfigIosChannelNavRestructuring { return NO; }
|
||||||
- (BOOL)channelsClientConfigIosMultiPartChannelHeader { return NO; }
|
- (BOOL)channelsClientConfigIosMultiPartChannelHeader { return NO; }
|
||||||
@@ -221,12 +223,31 @@ static BOOL IsEnabled(NSString *key) {
|
|||||||
%end
|
%end
|
||||||
|
|
||||||
%hook YTHotConfig
|
%hook YTHotConfig
|
||||||
- (BOOL)liveChatIosUseModernRotationDetectiom { return NO; } // Disable Modern Content (YTHotConfig)
|
- (BOOL)liveChatIosUseModernRotationDetection { return NO; } // Disable Modern Content (YTHotConfig)
|
||||||
|
- (BOOL)liveChatModernizeClassicElementizeTextMessage { return NO; }
|
||||||
- (BOOL)iosShouldRepositionChannelBar { return NO; }
|
- (BOOL)iosShouldRepositionChannelBar { return NO; }
|
||||||
- (BOOL)enableElementRendererOnChannelCreation { return NO; }
|
- (BOOL)enableElementRendererOnChannelCreation { return NO; }
|
||||||
%end
|
%end
|
||||||
%end
|
%end
|
||||||
|
|
||||||
|
%group gDisableAmbientMode
|
||||||
|
%hook YTColdConfig
|
||||||
|
- (BOOL)disableCinematicForLowPowerMode { return NO; }
|
||||||
|
- (BOOL)enableCinematicContainer { return NO; }
|
||||||
|
- (BOOL)enableCinematicContainerOnClient { return NO; }
|
||||||
|
- (BOOL)enableCinematicContainerOnTablet { return NO; }
|
||||||
|
- (BOOL)enableTurnOffCinematicForFrameWithBlackBars { return YES; }
|
||||||
|
- (BOOL)enableTurnOffCinematicForVideoWithBlackBars { return YES; }
|
||||||
|
- (BOOL)iosCinematicContainerClientImprovement { return NO; }
|
||||||
|
- (BOOL)iosEnableGhostCardInlineTitleCinematicContainerFix { return NO; }
|
||||||
|
- (BOOL)iosUseFineScrubberMosaicStoreForCinematic { return NO; }
|
||||||
|
- (BOOL)mainAppCoreClientEnableClientCinematicPlaylists { return NO; }
|
||||||
|
- (BOOL)mainAppCoreClientEnableClientCinematicPlaylistsPostMvp { return NO; }
|
||||||
|
- (BOOL)mainAppCoreClientEnableClientCinematicTablets { return NO; }
|
||||||
|
- (BOOL)iosEnableFullScreenAmbientMode { return NO; }
|
||||||
|
%end
|
||||||
|
%end
|
||||||
|
|
||||||
// Hide YouTube Heatwaves in Video Player (YouTube v17.19.2-present) - @level3tjg - https://www.reddit.com/r/jailbreak/comments/v29yvk/
|
// Hide YouTube Heatwaves in Video Player (YouTube v17.19.2-present) - @level3tjg - https://www.reddit.com/r/jailbreak/comments/v29yvk/
|
||||||
%group gHideHeatwaves
|
%group gHideHeatwaves
|
||||||
%hook YTInlinePlayerBarContainerView
|
%hook YTInlinePlayerBarContainerView
|
||||||
@@ -465,6 +486,9 @@ static BOOL IsEnabled(NSString *key) {
|
|||||||
if (IsEnabled(@"ytNoModernUI_enabled")) {
|
if (IsEnabled(@"ytNoModernUI_enabled")) {
|
||||||
%init(gYTNoModernUI);
|
%init(gYTNoModernUI);
|
||||||
}
|
}
|
||||||
|
if (IsEnabled(@"disableAmbientMode_enabled")) {
|
||||||
|
%init(gDisableAmbientMode);
|
||||||
|
}
|
||||||
if (IsEnabled(@"ytSpeed_enabled")) {
|
if (IsEnabled(@"ytSpeed_enabled")) {
|
||||||
%init(gYTSpeed);
|
%init(gYTSpeed);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user