mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-03-11 17:15:32 +00:00
Improved Hide Ambient Mode & Hide Button Containers
This commit is contained in:
parent
012725efa6
commit
c2c1f38662
1 changed files with 14 additions and 3 deletions
17
uYouPlus.xm
17
uYouPlus.xm
|
|
@ -612,7 +612,8 @@ int main(int argc, char * argv[]) {
|
|||
%end
|
||||
|
||||
%hook YTCinematicContainerView // Disable Ambient Mode Container - YTNoModernUI
|
||||
- (void)removeFromSuperview {
|
||||
- (instancetype)init {
|
||||
return NULL;
|
||||
}
|
||||
%end
|
||||
|
||||
|
|
@ -680,7 +681,8 @@ int main(int argc, char * argv[]) {
|
|||
|
||||
%group gDisableAmbientMode
|
||||
%hook YTCinematicContainerView
|
||||
- (void)removeFromSuperview {
|
||||
- (instancetype)init {
|
||||
return NULL;
|
||||
}
|
||||
%end
|
||||
%hook YTColdConfig
|
||||
|
|
@ -1082,7 +1084,16 @@ static void replaceTab(YTIGuideResponse *response) {
|
|||
%group gHideButtonContainers
|
||||
%hook ELMContainerNode
|
||||
- (void)setBackgroundColor:(id)color {
|
||||
color = [UIColor clearColor];
|
||||
if ([self.accessibilityIdentifier isEqualToString:@"id.video.like.button"] ||
|
||||
[self.accessibilityIdentifier isEqualToString:@"id.video.dislike.button"] ||
|
||||
[self.accessibilityIdentifier isEqualToString:@"id.video.share.button"] ||
|
||||
[self.accessibilityIdentifier isEqualToString:@"id.video.remix.button"] ||
|
||||
[self.accessibilityLabel isEqualToString:@"Thanks"] ||
|
||||
[self.accessibilityIdentifier isEqualToString:@"id.ui.add_to.offline.button"] ||
|
||||
[self.accessibilityLabel isEqualToString:@"Clip"] ||
|
||||
[self.accessibilityLabel isEqualToString:@"Save to playlist"]) {
|
||||
color = [UIColor clearColor];
|
||||
}
|
||||
%orig(color);
|
||||
}
|
||||
%end
|
||||
|
|
|
|||
Loading…
Reference in a new issue