From 9c85621b2d75ba4c7a8fec981a88c8583ab7ac7c Mon Sep 17 00:00:00 2001 From: arichornlover <78001398+arichorn@users.noreply.github.com> Date: Wed, 29 Nov 2023 16:48:31 -0600 Subject: [PATCH] New Option `Red Subscribe Button` New option to replace the subscribe button color from white to red! --- uYouPlus.xm | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/uYouPlus.xm b/uYouPlus.xm index 7f292d9..a37afa4 100644 --- a/uYouPlus.xm +++ b/uYouPlus.xm @@ -1080,6 +1080,18 @@ static void replaceTab(YTIGuideResponse *response) { } %end +// Red Subscribe Button - @arichorn +%group gRedSubscribeButton +%hook ELMContainerNode +- (void)setBackgroundColor:(id)color { + if ([self.accessibilityIdentifier isEqualToString:@"eml.compact_subscribe_button"] || { + color = [UIColor redColor]; + } + %orig(color); +} +%end +%end + // Hide the Button Containers under the Video Player - 17.x.x and up - @arichorn %group gHideButtonContainers %hook ELMContainerNode @@ -1480,6 +1492,9 @@ static void replaceTab(YTIGuideResponse *response) { if (IsEnabled(@"hideVideoPlayerShadowOverlayButtons_enabled")) { %init(gHideVideoPlayerShadowOverlayButtons); } + if (IsEnabled(@"redSubscribeButton_enabled")) { + %init(gRedSubscribeButton); + } if (IsEnabled(@"hideButtonContainers_enabled")) { %init(gHideButtonContainers); }