New Option Red Subscribe Button

New option to replace the subscribe button color from white to red!
This commit is contained in:
arichornlover 2023-11-29 16:48:31 -06:00 committed by GitHub
parent 91d3529261
commit 9c85621b2d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
}