Update uYouPlus.xm

This commit is contained in:
arichornlover 2024-01-24 16:36:29 -06:00 committed by GitHub
parent 375a08c4cd
commit 838cc65cbc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -642,10 +642,16 @@ static void replaceTab(YTIGuideResponse *response) {
%end
%end
// Disable Double Tap to Seek
%hook YTMainAppVideoPlayerOverlayViewController
- (BOOL)allowDoubleTapToSeekGestureRecognizer {
return IS_ENABLED(@"disableDoubleTapToSkip_enabled") ? NO : %orig;
%hook YTColdConfig
- (BOOL)speedMasterArm2FastForwardWithoutSeekBySliding {
return IS_ENABLED(@"slideToSeek_enabled") ? NO : %orig;
}
%end
// Disable double tap to seek
%hook YTDoubleTapToSeekController
- (void)enableDoubleTapToSeek:(BOOL)arg1 {
return IS_ENABLED(@"doubleTapToSeek_disabled") ? %orig(NO) : %orig;
}
%end