mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-01-11 22:40:19 +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
|
||||
|
||||
%hook YTQTMButton // No Modern/Rounded Buttons - YTNoModernUI
|
||||
%hook YTQTMButton // Disable Modern/Rounded Buttons - YTNoModernUI
|
||||
+ (BOOL)buttonModernizationEnabled { return NO; }
|
||||
%end
|
||||
|
||||
%hook YTBubbleHintView // No Modern/Rounded Hints - YTNoModernUI
|
||||
%hook YTBubbleHintView // Disable Modern/Rounded Hints - YTNoModernUI
|
||||
+ (BOOL)modernRoundedCornersEnabled { return NO; }
|
||||
%end
|
||||
|
||||
%hook YTCinematicContainerView // Disable Ambient Mode Container - YTNoModernUI
|
||||
- (void)didMoveToWindow {
|
||||
}
|
||||
%end
|
||||
|
||||
%hook YTColdConfig
|
||||
// Disable Modern Content - YTNoModernUI
|
||||
- (BOOL)creatorClientConfigEnableStudioModernizedMdeThumbnailPickerForClient { return NO; }
|
||||
|
|
@ -674,6 +679,10 @@ int main(int argc, char * argv[]) {
|
|||
%end
|
||||
|
||||
%group gDisableAmbientMode
|
||||
%hook YTCinematicContainerView
|
||||
- (void)didMoveToWindow {
|
||||
}
|
||||
%end
|
||||
%hook YTColdConfig
|
||||
- (BOOL)disableCinematicForLowPowerMode { return NO; }
|
||||
- (BOOL)enableCinematicContainer { return NO; }
|
||||
|
|
@ -1069,7 +1078,7 @@ static void replaceTab(YTIGuideResponse *response) {
|
|||
}
|
||||
%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
|
||||
- (void)layoutSubviews {
|
||||
%orig;
|
||||
|
|
|
|||
Loading…
Reference in a new issue