diff --git a/uYouPlus.xm b/uYouPlus.xm index 8c4a5ea..71f3049 100644 --- a/uYouPlus.xm +++ b/uYouPlus.xm @@ -150,11 +150,11 @@ static void repositionCreateTab(YTIGuideResponse *response) { if (self.pageStyle == 0) { UIImageView *customLogoView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 122, 48)]; customLogoView.image = [UIImage imageWithContentsOfFile:@"/Library/Application Support/uYouPlus.bundle/youtube_logo.png"]; - [self.view addSubview:customLogoView]; + [self.headerView addSubview:customLogoView]; } else if (self.pageStyle == 1) { UIImageView *customLogoView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 122, 48)]; customLogoView.image = [UIImage imageWithContentsOfFile:@"/Library/Application Support/uYouPlus.bundle/youtube_logo_dark.png"]; - [self.view addSubview:customLogoView]; + [self.headerView addSubview:customLogoView]; } } %end @@ -185,6 +185,15 @@ static void repositionCreateTab(YTIGuideResponse *response) { %end %end +// Hide YouTube Logo - @dayanch96 +%group gHideYouTubeLogo +%hook YTHeaderLogoController +- (YTHeaderLogoController *)init { + return NULL; +} +%end +%end + # pragma mark - Tweaks // IAmYouTube - https://github.com/PoomSmart/IAmYouTube/ %hook YTVersionUtils @@ -673,15 +682,6 @@ int main(int argc, char * argv[]) { %end %end -// Hide YouTube Logo -%group gHideYouTubeLogo -%hook YTHeaderLogoController -- (YTHeaderLogoController *)init { - return NULL; -} -%end -%end - // Hide YouTube Heatwaves in Video Player (YouTube v17.19.2-latest) - @level3tjg - https://www.reddit.com/r/jailbreak/comments/v29yvk/ %group gHideHeatwaves %hook YTInlinePlayerBarContainerView