From 525fd8cb4d5262fb776130938c72fa074b675b94 Mon Sep 17 00:00:00 2001 From: arichorn <78001398+arichorn@users.noreply.github.com> Date: Thu, 13 Jul 2023 19:58:30 -0500 Subject: [PATCH] New Option (Disable double tap to skip legacy) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I made another Disable Double tap to skip option in case the original option doesn’t work on an older version of the app. --- uYouPlus.xm | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/uYouPlus.xm b/uYouPlus.xm index 0b762bb..98a1562 100644 --- a/uYouPlus.xm +++ b/uYouPlus.xm @@ -689,12 +689,20 @@ static void replaceTab(YTIGuideResponse *response) { %end %end +// Disable Double Tap to Skip %hook YTMainAppVideoPlayerOverlayViewController - (BOOL)allowDoubleTapToSeekGestureRecognizer { return IsEnabled(@"disableDoubleTapToSkip_enabled") ? NO : %orig; } %end +// Disable Double Tap to Skip (Legacy Version) +%hook YTDoubleTapToSeekController +- (void)enableDoubleTapToSeek:(BOOL)arg1 { + return IsEnabled(@"disableDoubleTapToSkipLegacy_disabled") ? %orig(NO) : %orig; +} +%end + // Video Controls Overlay Options // Hide CC / Autoplay switch %hook YTMainAppControlsOverlayView @@ -759,6 +767,7 @@ static void replaceTab(YTIGuideResponse *response) { %end %end +// Hide Shadow Overlay Buttons (Play/Pause, Next, previous, Fast forward & Rewind buttons) %group gHideVideoPlayerShadowOverlayButtons %hook YTMainAppControlsOverlayView - (void)layoutSubviews {