New Option Classic Video Player

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.
This commit is contained in:
arichornlover 2024-06-10 16:43:00 -05:00 committed by GitHub
parent ab00a8bd7a
commit 2f81cbf22e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 <NSString *> *ide
if (IS_ENABLED(@"noVideosInFullscreen_enabled")) {
%init(gNoVideosInFullscreen);
}
if (IS_ENABLED(@"classicVideoPlayer_enabled")) {
%init(gClassicVideoPlayer);
}
if (IS_ENABLED(@"fixLowContrastMode_enabled")) {
%init(gFixLowContrastMode);
}