New Option (Disable double tap to skip legacy)

I made another Disable Double tap to skip option in case the original option doesn’t work on an older version of the app.
This commit is contained in:
arichorn 2023-07-13 19:58:30 -05:00 committed by GitHub
parent af135dee9f
commit 525fd8cb4d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 {