temporary fix for issue #54

This commit is contained in:
qnblackcat 2022-05-24 01:13:41 +07:00
parent f9e05fee77
commit fb0e5073ae

View file

@ -209,6 +209,14 @@ BOOL ytMiniPlayer() {
}
%end
// Workaround for issue #54
%hook YTMainAppVideoPlayerOverlayViewController
- (void)updateRelatedVideos {
if ([[NSUserDefaults standardUserDefaults] boolForKey:@"relatedVideosAtTheEndOfYTVideos"] == NO) {}
else { return %orig; }
}
%end
// OLED dark mode by BandarHL
UIColor* oledColor = [UIColor colorWithRed:0.0 green:0.0 blue:0.0 alpha:1.0];