mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-04-21 11:52:00 +00:00
Merge some changes
This commit is contained in:
parent
a1f8eb92be
commit
0e0fedc418
1 changed files with 12 additions and 27 deletions
39
uYouPlus.xm
39
uYouPlus.xm
|
|
@ -1054,33 +1054,24 @@ static void replaceTab(YTIGuideResponse *response) {
|
||||||
%hook ELMContainerNode
|
%hook ELMContainerNode
|
||||||
- (void)setBackgroundColor:(id)color {
|
- (void)setBackgroundColor:(id)color {
|
||||||
NSString *containerDescription = [self description];
|
NSString *containerDescription = [self description];
|
||||||
NSString *containerDebugDescription = [self debugDescription];
|
if (IsEnabled(@"redSubscribeButton_enabled")) {
|
||||||
|
if ([containerDescription containsString:@"eml.compact_subscribe_button"]) {
|
||||||
if ([containerDescription containsString:@"eml.compact_subscribe_button"]) {
|
color = [UIColor redColor];
|
||||||
color = [UIColor redColor];
|
}
|
||||||
}
|
}
|
||||||
%orig(color);
|
|
||||||
}
|
|
||||||
%end
|
|
||||||
%end
|
|
||||||
|
|
||||||
// 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
|
if (IsEnabled(@"hideButtonContainers_enabled")) {
|
||||||
%hook ELMContainerNode
|
if ([containerDescription containsString:@"id.video.like.button"] ||
|
||||||
- (void)setBackgroundColor:(id)color
|
[containerDescription containsString:@"id.video.dislike.button"] ||
|
||||||
NSString *containerDescription = [self description];
|
[containerDescription containsString:@"id.video.share.button"] ||
|
||||||
|
[containerDescription containsString:@"id.video.remix.button"] ||
|
||||||
if ([containerDescription containsString:@"id.video.like.button"] ||
|
[containerDescription containsString:@"id.ui.add_to.offline.button"]) {
|
||||||
[containerDescription containsString:@"id.video.dislike.button"] ||
|
color = [UIColor clearColor];
|
||||||
[containerDescription containsString:@"id.video.share.button"] ||
|
}
|
||||||
[containerDescription containsString:@"id.video.remix.button"] ||
|
|
||||||
[containerDescription containsString:@"id.ui.add_to.offline.button"]) {
|
|
||||||
color = [UIColor clearColor];
|
|
||||||
}
|
}
|
||||||
%orig(color);
|
%orig(color);
|
||||||
}
|
}
|
||||||
%end
|
%end
|
||||||
%end
|
|
||||||
|
|
||||||
// Hide the (Remix / Thanks / Download / Clip / Save) Buttons under the Video Player - 17.x.x and up - @arichorn
|
// Hide the (Remix / Thanks / Download / Clip / Save) Buttons under the Video Player - 17.x.x and up - @arichorn
|
||||||
%hook _ASDisplayView
|
%hook _ASDisplayView
|
||||||
|
|
@ -1397,12 +1388,6 @@ static void replaceTab(YTIGuideResponse *response) {
|
||||||
if (IsEnabled(@"hideVideoPlayerShadowOverlayButtons_enabled")) {
|
if (IsEnabled(@"hideVideoPlayerShadowOverlayButtons_enabled")) {
|
||||||
%init(gHideVideoPlayerShadowOverlayButtons);
|
%init(gHideVideoPlayerShadowOverlayButtons);
|
||||||
}
|
}
|
||||||
if (IsEnabled(@"redSubscribeButton_enabled")) {
|
|
||||||
%init(gRedSubscribeButton);
|
|
||||||
}
|
|
||||||
if (IsEnabled(@"hideButtonContainers_enabled")) {
|
|
||||||
%init(gHideButtonContainers);
|
|
||||||
}
|
|
||||||
if (IsEnabled(@"disableHints_enabled")) {
|
if (IsEnabled(@"disableHints_enabled")) {
|
||||||
%init(gDisableHints);
|
%init(gDisableHints);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue