From 2f81cbf22ee5a71f839873f63721ae78efec6352 Mon Sep 17 00:00:00 2001 From: arichornlover <78001398+arichornlover@users.noreply.github.com> Date: Mon, 10 Jun 2024 16:43:00 -0500 Subject: [PATCH] New Option `Classic Video Player` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit a new tweak that restores the classic video player functionality from v16.xx.x. However, “Precise Scrubbing” isn’t gone yet. So not everything is restored. Yet. --- Sources/uYouPlus.xm | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Sources/uYouPlus.xm b/Sources/uYouPlus.xm index f566aa8..61d1a3f 100644 --- a/Sources/uYouPlus.xm +++ b/Sources/uYouPlus.xm @@ -546,6 +546,18 @@ NSData *cellDividerData; } %end +// Classic Video Player (Restores the v16.xx.x Video Player Functionality) - @arichornlover +// To-do: disabling "Precise Video Scrubbing" https://9to5google.com/2022/06/29/youtube-precise-video-scrubbing/ +%group gClassicVideoPlayer +%hook YTColdConfig +- (BOOL)isPinchToEnterFullscreenEnabled { return YES; } // Restore Pinch-to-fullscreen +- (BOOL)deprecateTabletPinchFullscreenGestures { return NO; } // Restore Pinch-to-fullscreen +%end +%hook YTHotConfig +- (BOOL)isTabletFullscreenSwipeGesturesEnabled { return NO; } // Disable Swipe-to-fullscreen (iPad) +%end +%end + // Fix LowContrastMode - @arichornlover static int contrastMode() { NSString *appVersion = [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleShortVersionString"]; @@ -1639,6 +1651,9 @@ static BOOL findCell(ASNodeController *nodeController, NSArray *ide if (IS_ENABLED(@"noVideosInFullscreen_enabled")) { %init(gNoVideosInFullscreen); } + if (IS_ENABLED(@"classicVideoPlayer_enabled")) { + %init(gClassicVideoPlayer); + } if (IS_ENABLED(@"fixLowContrastMode_enabled")) { %init(gFixLowContrastMode); }