Feature to disable chapter skipping

This commit is contained in:
Bryce Hackel 2024-05-03 01:36:31 -07:00
parent bdbe3ba428
commit 540d5f24f2
No known key found for this signature in database
GPG key ID: F031960F08455E88
2 changed files with 11 additions and 0 deletions

View file

@ -715,6 +715,16 @@ BOOL isAd(YTIElementRenderer *self) {
%end
%end
// Disable Double tap to skip chapter - @bhackel
%hook YTDoubleTapToSeekController
- (void)didTwoFingerDoubleTap:(id)arg1 {
if (IS_ENABLED(@"disableChapterSkip_enabled")) {
return;
}
%orig;
}
%end
// Disable snap to chapter
%hook YTSegmentableInlinePlayerBarView

View file

@ -259,6 +259,7 @@ extern NSBundle *uYouPlusBundle();
SWITCH_ITEM(LOC(@"YT_MINIPLAYER"), LOC(@"YT_MINIPLAYER_DESC"), @"ytMiniPlayer_enabled");
SWITCH_ITEM2(LOC(@"STOCK_VOLUME_HUD"), LOC(@"STOCK_VOLUME_HUD_DESC"), @"stockVolumeHUD_enabled");
SWITCH_ITEM2(LOC(@"Disable pull-to-fullscreen gesture"), LOC(@"Disable the drag gesture to enter vertical fullscreen. Only applies to landscape videos."), @"disablePullToFull_enabled");
SWITCH_ITEM(LOC(@"Disable Double tap to skip chapter"), LOC(@"Disable the 2-finger double tap gesture that skips forward/backward by a chapter"), @"disableChapterSkip_enabled");
# pragma mark - Video controls overlay options
SECTION_HEADER(LOC(@"VIDEO_PLAYER_OPTIONS"));