mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-04-21 11:52:00 +00:00
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:
parent
ab00a8bd7a
commit
2f81cbf22e
1 changed files with 15 additions and 0 deletions
|
|
@ -546,6 +546,18 @@ NSData *cellDividerData;
|
||||||
}
|
}
|
||||||
%end
|
%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
|
// Fix LowContrastMode - @arichornlover
|
||||||
static int contrastMode() {
|
static int contrastMode() {
|
||||||
NSString *appVersion = [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleShortVersionString"];
|
NSString *appVersion = [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleShortVersionString"];
|
||||||
|
|
@ -1639,6 +1651,9 @@ static BOOL findCell(ASNodeController *nodeController, NSArray <NSString *> *ide
|
||||||
if (IS_ENABLED(@"noVideosInFullscreen_enabled")) {
|
if (IS_ENABLED(@"noVideosInFullscreen_enabled")) {
|
||||||
%init(gNoVideosInFullscreen);
|
%init(gNoVideosInFullscreen);
|
||||||
}
|
}
|
||||||
|
if (IS_ENABLED(@"classicVideoPlayer_enabled")) {
|
||||||
|
%init(gClassicVideoPlayer);
|
||||||
|
}
|
||||||
if (IS_ENABLED(@"fixLowContrastMode_enabled")) {
|
if (IS_ENABLED(@"fixLowContrastMode_enabled")) {
|
||||||
%init(gFixLowContrastMode);
|
%init(gFixLowContrastMode);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue