Improved Crash Fix
This commit is contained in:
parent
d125e09ea3
commit
01500dee04
1 changed files with 7 additions and 7 deletions
14
uYouPlus.xm
14
uYouPlus.xm
|
|
@ -420,15 +420,15 @@ static BOOL didFinishLaunching;
|
|||
%end
|
||||
|
||||
// YTNoChannelLinks - crash fix for v16.42.3
|
||||
BOOL isButton(id node) {
|
||||
if ([node isKindOfClass:NSClassFromString(@"ELMContainerNode")]) {
|
||||
NSString *description = [[[node controller] owningComponent] description];
|
||||
if ([description containsString:@"eml.channel_header_links"]) {
|
||||
return YES;
|
||||
}
|
||||
%hook _ASDisplayView
|
||||
- (void)removeFromSuperview {
|
||||
if ([self.accessibilityIdentifier isEqualToString:@"eml.channel_header_links"]) {
|
||||
[self removeFromSuperview];
|
||||
}
|
||||
return NO;
|
||||
|
||||
%orig;
|
||||
}
|
||||
%end
|
||||
|
||||
// YTClassicVideoQuality: https://github.com/PoomSmart/YTClassicVideoQuality
|
||||
%hook YTVideoQualitySwitchControllerFactory
|
||||
|
|
|
|||
Loading…
Reference in a new issue