Skip to content

Commit

Permalink
Feature to disable chapter skipping
Browse files Browse the repository at this point in the history
  • Loading branch information
bhackel committed May 3, 2024
1 parent bdbe3ba commit 540d5f2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Sources/uYouPlus.xm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions Sources/uYouPlusSettings.xm
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
Expand Down

0 comments on commit 540d5f2

Please sign in to comment.