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 a163366..f834d5d 100644 --- a/uYouPlus.xm +++ b/uYouPlus.xm @@ -169,6 +169,22 @@ 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 + +// 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 {