From ed5da9903652cbc4cec5489e6775f4df1ed7acdd Mon Sep 17 00:00:00 2001 From: arichornlover <78001398+arichorn@users.noreply.github.com> Date: Sun, 26 Nov 2023 13:00:22 -0600 Subject: [PATCH] Update `uYouPlusExtra Logo` again MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I had to urgently change something. If YTHeaderLogoController was set to NULL, it will remove the controller and then the custom logo won’t show up. --- uYouPlus.xm | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/uYouPlus.xm b/uYouPlus.xm index 05845be..5196f1e 100644 --- a/uYouPlus.xm +++ b/uYouPlus.xm @@ -202,9 +202,12 @@ static void repositionCreateTab(YTIGuideResponse *response) { [logoView addSubview:customLogoView]; } %end -%hook YTHeaderLogoController // Hide Original YouTube Logo - this will prevent Overlapping on the custom YouTube Logo -- (YTHeaderLogoController *)init { - return NULL; +%hook YTNavigationBarTitleView // Hide Original YouTube Logo - this will prevent Overlapping on the custom YouTube Logo +- (void)layoutSubviews { + %orig; + if (self.subviews.count > 1 && [self.subviews[1].accessibilityIdentifier isEqualToString:@"id.yoodle.logo"]) { + self.subviews[1].hidden = YES; + } } %end %end