mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-04-21 03:32:08 +00:00
Feature to disable chapter skipping
This commit is contained in:
parent
bdbe3ba428
commit
540d5f24f2
2 changed files with 11 additions and 0 deletions
|
|
@ -715,6 +715,16 @@ BOOL isAd(YTIElementRenderer *self) {
|
||||||
%end
|
%end
|
||||||
%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
|
// Disable snap to chapter
|
||||||
%hook YTSegmentableInlinePlayerBarView
|
%hook YTSegmentableInlinePlayerBarView
|
||||||
|
|
|
||||||
|
|
@ -259,6 +259,7 @@ extern NSBundle *uYouPlusBundle();
|
||||||
SWITCH_ITEM(LOC(@"YT_MINIPLAYER"), LOC(@"YT_MINIPLAYER_DESC"), @"ytMiniPlayer_enabled");
|
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(@"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_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
|
# pragma mark - Video controls overlay options
|
||||||
SECTION_HEADER(LOC(@"VIDEO_PLAYER_OPTIONS"));
|
SECTION_HEADER(LOC(@"VIDEO_PLAYER_OPTIONS"));
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue