Fix Crashing - v16.42.3
YouTube has added a new feature but this new particular feature was links under the channel profile. This commit removes the button to prevent the app from crashing.
This commit is contained in:
parent
5d1aeda416
commit
cac13be185
1 changed files with 20 additions and 0 deletions
20
uYouPlus.xm
20
uYouPlus.xm
|
|
@ -419,6 +419,17 @@ 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;
|
||||
}
|
||||
}
|
||||
return NO;
|
||||
}
|
||||
|
||||
// YTClassicVideoQuality: https://github.com/PoomSmart/YTClassicVideoQuality
|
||||
%hook YTVideoQualitySwitchControllerFactory
|
||||
- (id)videoQualitySwitchControllerWithParentResponder:(id)responder {
|
||||
|
|
@ -496,6 +507,15 @@ static BOOL didFinishLaunching;
|
|||
- (BOOL)enablePlayerBarForVerticalVideoWhenControlsHiddenInFullscreen { return YES; }
|
||||
%end
|
||||
|
||||
// YTNoTracking - https://github.com/arichorn/YTNoTracking/
|
||||
%hook YTICompactLinkRenderer
|
||||
- (BOOL)hasTrackingParams { return NO; }
|
||||
%end
|
||||
|
||||
%hook YTIReelPlayerOverlayRenderer
|
||||
- (BOOL)hasTrackingParams { return NO; }
|
||||
%end
|
||||
|
||||
%group gYouTubeAppPatcher // YTAppPatcher for 16.42.3 - @arichorn
|
||||
%hook YTVersionUtils
|
||||
+ (NSString *)appVersion { return @"17.05.2"; }
|
||||
|
|
|
|||
Loading…
Reference in a new issue