mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-04-19 22:22:06 +00:00
Snap to chapter
This commit is contained in:
parent
a6e248b248
commit
bdbe3ba428
3 changed files with 8 additions and 3 deletions
|
|
@ -57,6 +57,11 @@
|
|||
@interface SSOConfiguration : NSObject
|
||||
@end
|
||||
|
||||
// Disable Snap to chapter
|
||||
@interface YTSegmentableInlinePlayerBarView : UIView
|
||||
@property(nonatomic, assign) BOOL enableSnapToChapter;
|
||||
@end
|
||||
|
||||
// Hide Double tap to seek Overlay
|
||||
@interface YTInlinePlayerDoubleTapIndicatorView : UIView
|
||||
@property (nonatomic, strong) UIView *scrimOverlay;
|
||||
|
|
|
|||
|
|
@ -715,7 +715,7 @@ BOOL isAd(YTIElementRenderer *self) {
|
|||
%end
|
||||
%end
|
||||
|
||||
/* This is disabled due to "self.enableSnapToChapter" not existing.
|
||||
|
||||
// Disable snap to chapter
|
||||
%hook YTSegmentableInlinePlayerBarView
|
||||
- (void)didMoveToWindow {
|
||||
|
|
@ -725,7 +725,7 @@ BOOL isAd(YTIElementRenderer *self) {
|
|||
}
|
||||
}
|
||||
%end
|
||||
*/
|
||||
|
||||
|
||||
// Disable Pinch to zoom
|
||||
%hook YTColdConfig
|
||||
|
|
|
|||
|
|
@ -254,7 +254,7 @@ extern NSBundle *uYouPlusBundle();
|
|||
SWITCH_ITEM2(LOC(@"SLIDE_TO_SEEK"), LOC(@"SLIDE_TO_SEEK_DESC"), @"slideToSeek_enabled");
|
||||
SWITCH_ITEM2(LOC(@"Enable Tap To Seek"), LOC(@"Jump to anywhere in a video by single-tapping the seek bar"), @"YTTapToSeek_enabled");
|
||||
SWITCH_ITEM(LOC(@"DISABLE_DOUBLE_TAP_TO_SEEK"), LOC(@"DISABLE_DOUBLE_TAP_TO_SEEK_DESC"), @"doubleTapToSeek_disabled");
|
||||
// SWITCH_ITEM2(LOC(@"SNAP_TO_CHAPTER"), LOC(@"SNAP_TO_CHAPTER_DESC"), @"snapToChapter_enabled");
|
||||
SWITCH_ITEM(LOC(@"SNAP_TO_CHAPTER"), LOC(@"SNAP_TO_CHAPTER_DESC"), @"snapToChapter_enabled");
|
||||
SWITCH_ITEM2(LOC(@"PINCH_TO_ZOOM"), LOC(@"PINCH_TO_ZOOM_DESC"), @"pinchToZoom_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");
|
||||
|
|
|
|||
Loading…
Reference in a new issue