Merge pull request #240 from level3tjg/main

uYou crash workarounds
This commit is contained in:
Nguyễn Đạt
2022-06-24 10:45:55 +07:00
committed by GitHub
2 changed files with 21 additions and 0 deletions
+5
View File
@@ -37,6 +37,11 @@
displayLanguage:(NSString *)displayLanguage; displayLanguage:(NSString *)displayLanguage;
@end @end
// uYouLocal fix
@interface YTLocalPlaybackController : NSObject
- (id)activeVideo;
@end
// BigYTMiniPlayer // BigYTMiniPlayer
@interface YTMainAppVideoPlayerOverlayView : UIView @interface YTMainAppVideoPlayerOverlayView : UIView
- (UIViewController *)_viewControllerForAncestor; - (UIViewController *)_viewControllerForAncestor;
+16
View File
@@ -169,6 +169,22 @@ BOOL ytMiniPlayer() {
- (void)decorateContext:(id)arg1 { %orig(nil); } - (void)decorateContext:(id)arg1 { %orig(nil); }
%end %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 // YTClassicVideoQuality: https://github.com/PoomSmart/YTClassicVideoQuality
%hook YTVideoQualitySwitchControllerFactory %hook YTVideoQualitySwitchControllerFactory
- (id)videoQualitySwitchControllerWithParentResponder:(id)responder { - (id)videoQualitySwitchControllerWithParentResponder:(id)responder {