From f2cb699e3b7222121af38846564486029f00b09f Mon Sep 17 00:00:00 2001 From: level3tjg Date: Thu, 23 Jun 2022 12:19:22 -0400 Subject: [PATCH 1/2] Notification menu crash workaround --- uYouPlus.xm | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/uYouPlus.xm b/uYouPlus.xm index a163366..4e0251d 100644 --- a/uYouPlus.xm +++ b/uYouPlus.xm @@ -169,6 +169,14 @@ BOOL ytMiniPlayer() { - (void)decorateContext:(id)arg1 { %orig(nil); } %end +// Workaround for https://github.com/MiRO92/uYou-for-YouTube/issues/94 +%hook YTELMView +%new +- (id)entry { + return nil; +} +%end + // YTClassicVideoQuality: https://github.com/PoomSmart/YTClassicVideoQuality %hook YTVideoQualitySwitchControllerFactory - (id)videoQualitySwitchControllerWithParentResponder:(id)responder { From 2116d96e6ade110cc3ac6709472851c42a707ec3 Mon Sep 17 00:00:00 2001 From: level3tjg Date: Thu, 23 Jun 2022 12:42:28 -0400 Subject: [PATCH 2/2] uYouLocal crash workaround --- Header.h | 5 +++++ uYouPlus.xm | 8 ++++++++ 2 files changed, 13 insertions(+) diff --git a/Header.h b/Header.h index b9e7723..946b4d7 100644 --- a/Header.h +++ b/Header.h @@ -37,6 +37,11 @@ displayLanguage:(NSString *)displayLanguage; @end +// uYouLocal fix +@interface YTLocalPlaybackController : NSObject +- (id)activeVideo; +@end + // BigYTMiniPlayer @interface YTMainAppVideoPlayerOverlayView : UIView - (UIViewController *)_viewControllerForAncestor; diff --git a/uYouPlus.xm b/uYouPlus.xm index 4e0251d..f834d5d 100644 --- a/uYouPlus.xm +++ b/uYouPlus.xm @@ -177,6 +177,14 @@ BOOL ytMiniPlayer() { } %end +// Workaround for https://github.com/MiRO92/uYou-for-YouTube/issues/140 +%hook YTLocalPlaybackController +%new +- (id)activeVideoController { + return [self activeVideo]; +} +%end + // YTClassicVideoQuality: https://github.com/PoomSmart/YTClassicVideoQuality %hook YTVideoQualitySwitchControllerFactory - (id)videoQualitySwitchControllerWithParentResponder:(id)responder {