mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-05-12 01:00:38 +00:00
Updated YTNoModernUI
YTNoModernUI had an urgent update! Google has changed the way ambient works and I decided to do an implementation to fix it!
This commit is contained in:
parent
39fd5b783b
commit
cd0c125feb
1 changed files with 12 additions and 3 deletions
15
uYouPlus.xm
15
uYouPlus.xm
|
|
@ -603,14 +603,19 @@ int main(int argc, char * argv[]) {
|
||||||
}
|
}
|
||||||
%end
|
%end
|
||||||
|
|
||||||
%hook YTQTMButton // No Modern/Rounded Buttons - YTNoModernUI
|
%hook YTQTMButton // Disable Modern/Rounded Buttons - YTNoModernUI
|
||||||
+ (BOOL)buttonModernizationEnabled { return NO; }
|
+ (BOOL)buttonModernizationEnabled { return NO; }
|
||||||
%end
|
%end
|
||||||
|
|
||||||
%hook YTBubbleHintView // No Modern/Rounded Hints - YTNoModernUI
|
%hook YTBubbleHintView // Disable Modern/Rounded Hints - YTNoModernUI
|
||||||
+ (BOOL)modernRoundedCornersEnabled { return NO; }
|
+ (BOOL)modernRoundedCornersEnabled { return NO; }
|
||||||
%end
|
%end
|
||||||
|
|
||||||
|
%hook YTCinematicContainerView // Disable Ambient Mode Container - YTNoModernUI
|
||||||
|
- (void)didMoveToWindow {
|
||||||
|
}
|
||||||
|
%end
|
||||||
|
|
||||||
%hook YTColdConfig
|
%hook YTColdConfig
|
||||||
// Disable Modern Content - YTNoModernUI
|
// Disable Modern Content - YTNoModernUI
|
||||||
- (BOOL)creatorClientConfigEnableStudioModernizedMdeThumbnailPickerForClient { return NO; }
|
- (BOOL)creatorClientConfigEnableStudioModernizedMdeThumbnailPickerForClient { return NO; }
|
||||||
|
|
@ -674,6 +679,10 @@ int main(int argc, char * argv[]) {
|
||||||
%end
|
%end
|
||||||
|
|
||||||
%group gDisableAmbientMode
|
%group gDisableAmbientMode
|
||||||
|
%hook YTCinematicContainerView
|
||||||
|
- (void)didMoveToWindow {
|
||||||
|
}
|
||||||
|
%end
|
||||||
%hook YTColdConfig
|
%hook YTColdConfig
|
||||||
- (BOOL)disableCinematicForLowPowerMode { return NO; }
|
- (BOOL)disableCinematicForLowPowerMode { return NO; }
|
||||||
- (BOOL)enableCinematicContainer { return NO; }
|
- (BOOL)enableCinematicContainer { return NO; }
|
||||||
|
|
@ -1069,7 +1078,7 @@ static void replaceTab(YTIGuideResponse *response) {
|
||||||
}
|
}
|
||||||
%end
|
%end
|
||||||
|
|
||||||
// Hide the (Remix / Thanks / Download / Clip / Save) Buttons under the Video Player - @arichorn
|
// Hide the (Remix / Thanks / Download / Clip / Save) Buttons under the Video Player - 17.x.x and up - @arichorn
|
||||||
%hook _ASDisplayView
|
%hook _ASDisplayView
|
||||||
- (void)layoutSubviews {
|
- (void)layoutSubviews {
|
||||||
%orig;
|
%orig;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue