From 9f4f453208613e4a269adb340dabfb07eec15c68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nguy=E1=BB=85n=20=C4=90=E1=BA=A1t?= <52943116+qnblackcat@users.noreply.github.com> Date: Mon, 26 Dec 2022 13:23:57 +0700 Subject: [PATCH] fix uYou's buttons missing in Shorts --- uYouPlus.xm | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/uYouPlus.xm b/uYouPlus.xm index c693275..ce89aba 100644 --- a/uYouPlus.xm +++ b/uYouPlus.xm @@ -127,8 +127,7 @@ static BOOL oldDarkTheme() { %end %hook YTReelContentView -- (void)didTapOverflowButton:(id)sender { -} +- (void)didTapOverflowButton:(id)sender {} %end %hook NSLayoutConstraint @@ -449,8 +448,11 @@ static BOOL didFinishLaunching; - (BOOL)respectDeviceCaptionSetting { return NO; } // YouRememberCaption: https://poomsmart.github.io/repo/depictions/youremembercaption.html - (BOOL)isLandscapeEngagementPanelSwipeRightToDismissEnabled { return YES; } // Swipe right to dismiss the right panel in fullscreen mode - (BOOL)mainAppCoreClientIosTransientVisualGlitchInPivotBarFix { return NO; } // Fix uYou's label glitching - qnblackcat/uYouPlus#552 -- (BOOL)enableSwipeToRemoveInPlaylistWatchEp { return YES; } // Enable swipe right to remove video in Playlist. -- (BOOL)iosEnableShortsPlayerSplitViewController { return NO; } // Fix uYou's button missing in Shorts +- (BOOL)enableSwipeToRemoveInPlaylistWatchEp { return YES; } // Enable swipe right to remove video in Playlist. +%end + +%hook YTHotConfig +- (BOOL)iosEnableShortsPlayerSplitViewController { return NO; } // Fix uYou's button missing in Shorts: qnblackcat/uYouPlus#800 %end // NOYTPremium - https://github.com/PoomSmart/NoYTPremium/ @@ -1332,4 +1334,4 @@ UIColor* raisedColor = [UIColor colorWithRed:0.035 green:0.035 blue:0.035 alpha: if (![[[[NSUserDefaults standardUserDefaults] dictionaryRepresentation] allKeys] containsObject:@"uYouPiPButtonVideoControlsOverlay"]) { [[NSUserDefaults standardUserDefaults] setBool:NO forKey:@"uYouPiPButtonVideoControlsOverlay"]; } -} \ No newline at end of file +}