Changes to some stuff
This commit is contained in:
parent
e7fa6191cb
commit
5fb36e29bb
1 changed files with 25 additions and 11 deletions
36
uYouPlus.xm
36
uYouPlus.xm
|
|
@ -1102,8 +1102,14 @@ static void replaceTab(YTIGuideResponse *response) {
|
||||||
%group gRedSubscribeButton
|
%group gRedSubscribeButton
|
||||||
%hook ELMContainerNode
|
%hook ELMContainerNode
|
||||||
- (void)setBackgroundColor:(id)color {
|
- (void)setBackgroundColor:(id)color {
|
||||||
if ([self.description isEqualToString:@"eml.compact_subscribe_button"]) {
|
id displayView = [self valueForKey:@"_asDisplayView"];
|
||||||
|
if ([displayView isKindOfClass:NSClassFromString(@"_ASDisplayView")]) {
|
||||||
|
|
||||||
|
NSString *accessibilityIdentifier = [self accessibilityIdentifier];
|
||||||
|
|
||||||
|
if ([accessibilityIdentifier isEqualToString:@"eml.compact_subscribe_button"]) {
|
||||||
color = [UIColor redColor];
|
color = [UIColor redColor];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
%orig(color);
|
%orig(color);
|
||||||
}
|
}
|
||||||
|
|
@ -1113,16 +1119,24 @@ static void replaceTab(YTIGuideResponse *response) {
|
||||||
// Hide the Button Containers under the Video Player - 17.x.x and up - @arichorn
|
// Hide the Button Containers under the Video Player - 17.x.x and up - @arichorn
|
||||||
%group gHideButtonContainers
|
%group gHideButtonContainers
|
||||||
%hook ELMContainerNode
|
%hook ELMContainerNode
|
||||||
- (void)setBackgroundColor:(id)color {
|
|
||||||
if ([self.description isEqualToString:@"id.video.like.button"] ||
|
- (void)setBackgroundColor:(id)color
|
||||||
[self.description isEqualToString:@"id.video.dislike.button"] ||
|
id displayView = [self valueForKey:@"_asDisplayView"];
|
||||||
[self.description isEqualToString:@"id.video.share.button"] ||
|
|
||||||
[self.description isEqualToString:@"id.video.remix.button"] ||
|
if ([displayView isKindOfClass:NSClassFromString(@"_ASDisplayView")]) {
|
||||||
[self.description isEqualToString:@"Thanks"] ||
|
NSString *accessibilityIdentifier = [displayView accessibilityIdentifier];
|
||||||
[self.description isEqualToString:@"id.ui.add_to.offline.button"] ||
|
NSString *accessibilityLabel = [displayView accessibilityLabel];
|
||||||
[self.description isEqualToString:@"Clip"] ||
|
|
||||||
[self.description isEqualToString:@"Save to playlist"]) {
|
if ([accessibilityIdentifier isEqualToString:@"id.video.like.button"] ||
|
||||||
color = [UIColor clearColor];
|
[accessibilityIdentifier isEqualToString:@"id.video.dislike.button"] ||
|
||||||
|
[accessibilityIdentifier isEqualToString:@"id.video.share.button"] ||
|
||||||
|
[accessibilityIdentifier isEqualToString:@"id.video.remix.button"] ||
|
||||||
|
[accessibilityLabel isEqualToString:@"Thanks"] ||
|
||||||
|
[accessibilityIdentifier isEqualToString:@"id.ui.add_to.offline.button"] ||
|
||||||
|
[accessibilityLabel isEqualToString:@"Clip"] ||
|
||||||
|
[accessibilityLabel isEqualToString:@"Save to playlist"]) {
|
||||||
|
color = [UIColor clearColor];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
%orig(color);
|
%orig(color);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue