Add Disable pull-to-full
This commit is contained in:
parent
93f75c7d7e
commit
1c4f5b96ba
14 changed files with 62 additions and 1 deletions
|
|
@ -118,7 +118,8 @@ static const NSInteger YTLiteSection = 789;
|
|||
BASIC_SWITCH(LOC(@"HIDE_RIGHT_PANEL"), LOC(@"HIDE_RIGHT_PANEL_DESC"), @"hideRightPanel_enabled"),
|
||||
BASIC_SWITCH(LOC(@"HIDE_HEATWAVES"), LOC(@"HIDE_HEATWAVES_DESC"), @"hideHeatwaves_enabled"),
|
||||
BASIC_SWITCH(LOC(@"SEEK_ANYWHERE"), LOC(@"SEEK_ANYWHERE_DESC"), @"seekAnywhere_enabled"),
|
||||
BASIC_SWITCH(LOC(@"ENABLE_TAP_TO_SEEK"), LOC(@"ENABLE_TAP_TO_SEEK_DESC"), @"YTTapToSeek_enabled")
|
||||
BASIC_SWITCH(LOC(@"ENABLE_TAP_TO_SEEK"), LOC(@"ENABLE_TAP_TO_SEEK_DESC"), @"YTTapToSeek_enabled"),
|
||||
BASIC_SWITCH(LOC(@"DISABLE_PULL_TO_FULLSCREEN_GESTURE"), LOC(@"DISABLE_PULL_TO_FULLSCREEN_GESTURE_DESC"), @"disablePullToFull_enabled"),
|
||||
];
|
||||
YTSettingsPickerViewController *picker = [[%c(YTSettingsPickerViewController) alloc] initWithNavTitle:LOC(@"VIDEO_CONTROLS_OVERLAY_OPTIONS") pickerSectionTitle:nil rows:rows selectedItemIndex:NSNotFound parentResponder:[self parentResponder]];
|
||||
[settingsViewController pushViewController:picker];
|
||||
|
|
|
|||
|
|
@ -446,6 +446,27 @@ BOOL isTabSelected = NO;
|
|||
%end
|
||||
%end
|
||||
|
||||
// Disable pull to enter vertical/portrait fullscreen gesture - @bhackel
|
||||
// This was introduced in version 19.XX
|
||||
// This does not apply to portrait videos
|
||||
%group gDisablePullToFull
|
||||
%hook YTWatchPullToFullController
|
||||
- (BOOL)shouldRecognizeOverscrollEventsFromWatchOverscrollController:(id)arg1 {
|
||||
// Get the current player orientation
|
||||
YTWatchViewController *watchViewController = self.playerViewSource;
|
||||
NSUInteger allowedFullScreenOrientations = [watchViewController allowedFullScreenOrientations];
|
||||
// Check if the current player orientation is portrait
|
||||
if (allowedFullScreenOrientations == UIInterfaceOrientationMaskAllButUpsideDown
|
||||
|| allowedFullScreenOrientations == UIInterfaceOrientationMaskPortrait
|
||||
|| allowedFullScreenOrientations == UIInterfaceOrientationMaskPortraitUpsideDown) {
|
||||
return %orig;
|
||||
} else {
|
||||
return NO;
|
||||
}
|
||||
}
|
||||
%end
|
||||
%end
|
||||
|
||||
// BigYTMiniPlayer: https://github.com/Galactic-Dev/BigYTMiniPlayer
|
||||
%group Main
|
||||
%hook YTWatchMiniBarView
|
||||
|
|
@ -646,6 +667,9 @@ BOOL isTabSelected = NO;
|
|||
if (IsEnabled(@"YTTapToSeek_enabled")) {
|
||||
%init(gYTTapToSeek);
|
||||
}
|
||||
if (IsEnabled(@"disablePullToFull_enabled")) {
|
||||
%init(gDisablePullToFull);
|
||||
}
|
||||
|
||||
// Change the default value of some options
|
||||
NSArray *allKeys = [[[NSUserDefaults standardUserDefaults] dictionaryRepresentation] allKeys];
|
||||
|
|
|
|||
|
|
@ -26,6 +26,9 @@
|
|||
"ENABLE_TAP_TO_SEEK" = "Enable Tap To Seek";
|
||||
"ENABLE_TAP_TO_SEEK_DESC" = "Jump to anywhere in a video by single-tapping the seek bar";
|
||||
|
||||
"DISABLE_PULL_TO_FULLSCREEN_GESTURE" = "Disable pull-to-fullscreen gesture";
|
||||
"DISABLE_PULL_TO_FULLSCREEN_GESTURE_DESC" = "Disable the drag gesture to enter vertical fullscreen. Only applies to landscape videos.";
|
||||
|
||||
// App settings overlay options
|
||||
"APP_SETTINGS_OVERLAY_OPTIONS" = "App Settings Overlay Options";
|
||||
|
||||
|
|
|
|||
|
|
@ -26,6 +26,9 @@
|
|||
"ENABLE_TAP_TO_SEEK" = "Enable Tap To Seek";
|
||||
"ENABLE_TAP_TO_SEEK_DESC" = "Jump to anywhere in a video by single-tapping the seek bar";
|
||||
|
||||
"DISABLE_PULL_TO_FULLSCREEN_GESTURE" = "Disable pull-to-fullscreen gesture";
|
||||
"DISABLE_PULL_TO_FULLSCREEN_GESTURE_DESC" = "Disable the drag gesture to enter vertical fullscreen. Only applies to landscape videos.";
|
||||
|
||||
// App settings overlay options
|
||||
"APP_SETTINGS_OVERLAY_OPTIONS" = "Overlay-Optionen für App-Einstellungen";
|
||||
|
||||
|
|
|
|||
|
|
@ -26,6 +26,9 @@
|
|||
"ENABLE_TAP_TO_SEEK" = "Enable Tap To Seek";
|
||||
"ENABLE_TAP_TO_SEEK_DESC" = "Jump to anywhere in a video by single-tapping the seek bar";
|
||||
|
||||
"DISABLE_PULL_TO_FULLSCREEN_GESTURE" = "Disable pull-to-fullscreen gesture";
|
||||
"DISABLE_PULL_TO_FULLSCREEN_GESTURE_DESC" = "Disable the drag gesture to enter vertical fullscreen. Only applies to landscape videos.";
|
||||
|
||||
// App settings overlay options
|
||||
"APP_SETTINGS_OVERLAY_OPTIONS" = "App Settings Overlay Options";
|
||||
|
||||
|
|
|
|||
|
|
@ -26,6 +26,9 @@
|
|||
"ENABLE_TAP_TO_SEEK" = "Enable Tap To Seek";
|
||||
"ENABLE_TAP_TO_SEEK_DESC" = "Jump to anywhere in a video by single-tapping the seek bar";
|
||||
|
||||
"DISABLE_PULL_TO_FULLSCREEN_GESTURE" = "Disable pull-to-fullscreen gesture";
|
||||
"DISABLE_PULL_TO_FULLSCREEN_GESTURE_DESC" = "Disable the drag gesture to enter vertical fullscreen. Only applies to landscape videos.";
|
||||
|
||||
// App settings overlay options
|
||||
"APP_SETTINGS_OVERLAY_OPTIONS" = "Opciones de superposición de los ajustes de la aplicación";
|
||||
|
||||
|
|
|
|||
|
|
@ -26,6 +26,9 @@
|
|||
"ENABLE_TAP_TO_SEEK" = "Enable Tap To Seek";
|
||||
"ENABLE_TAP_TO_SEEK_DESC" = "Jump to anywhere in a video by single-tapping the seek bar";
|
||||
|
||||
"DISABLE_PULL_TO_FULLSCREEN_GESTURE" = "Disable pull-to-fullscreen gesture";
|
||||
"DISABLE_PULL_TO_FULLSCREEN_GESTURE_DESC" = "Disable the drag gesture to enter vertical fullscreen. Only applies to landscape videos.";
|
||||
|
||||
// App settings overlay options
|
||||
"APP_SETTINGS_OVERLAY_OPTIONS" = "Paramètres des options d'overlay de l'application";
|
||||
|
||||
|
|
|
|||
|
|
@ -26,6 +26,9 @@
|
|||
"ENABLE_TAP_TO_SEEK" = "Enable Tap To Seek";
|
||||
"ENABLE_TAP_TO_SEEK_DESC" = "Jump to anywhere in a video by single-tapping the seek bar";
|
||||
|
||||
"DISABLE_PULL_TO_FULLSCREEN_GESTURE" = "Disable pull-to-fullscreen gesture";
|
||||
"DISABLE_PULL_TO_FULLSCREEN_GESTURE_DESC" = "Disable the drag gesture to enter vertical fullscreen. Only applies to landscape videos.";
|
||||
|
||||
// App settings overlay options
|
||||
"APP_SETTINGS_OVERLAY_OPTIONS" = "アプリの設定オーバーレイの設定";
|
||||
|
||||
|
|
|
|||
|
|
@ -26,6 +26,9 @@
|
|||
"ENABLE_TAP_TO_SEEK" = "Enable Tap To Seek";
|
||||
"ENABLE_TAP_TO_SEEK_DESC" = "Jump to anywhere in a video by single-tapping the seek bar";
|
||||
|
||||
"DISABLE_PULL_TO_FULLSCREEN_GESTURE" = "Disable pull-to-fullscreen gesture";
|
||||
"DISABLE_PULL_TO_FULLSCREEN_GESTURE_DESC" = "Disable the drag gesture to enter vertical fullscreen. Only applies to landscape videos.";
|
||||
|
||||
// App settings overlay options
|
||||
"APP_SETTINGS_OVERLAY_OPTIONS" = "App Settings Overlay Options";
|
||||
|
||||
|
|
|
|||
|
|
@ -26,6 +26,9 @@
|
|||
"ENABLE_TAP_TO_SEEK" = "Enable Tap To Seek";
|
||||
"ENABLE_TAP_TO_SEEK_DESC" = "Jump to anywhere in a video by single-tapping the seek bar";
|
||||
|
||||
"DISABLE_PULL_TO_FULLSCREEN_GESTURE" = "Disable pull-to-fullscreen gesture";
|
||||
"DISABLE_PULL_TO_FULLSCREEN_GESTURE_DESC" = "Disable the drag gesture to enter vertical fullscreen. Only applies to landscape videos.";
|
||||
|
||||
// App settings overlay options
|
||||
"APP_SETTINGS_OVERLAY_OPTIONS" = "Opțiuni Overlay Setări Aplicație";
|
||||
|
||||
|
|
|
|||
|
|
@ -26,6 +26,9 @@
|
|||
"ENABLE_TAP_TO_SEEK" = "Enable Tap To Seek";
|
||||
"ENABLE_TAP_TO_SEEK_DESC" = "Jump to anywhere in a video by single-tapping the seek bar";
|
||||
|
||||
"DISABLE_PULL_TO_FULLSCREEN_GESTURE" = "Disable pull-to-fullscreen gesture";
|
||||
"DISABLE_PULL_TO_FULLSCREEN_GESTURE_DESC" = "Disable the drag gesture to enter vertical fullscreen. Only applies to landscape videos.";
|
||||
|
||||
// App settings overlay options
|
||||
"APP_SETTINGS_OVERLAY_OPTIONS" = "App Settings Overlay Options";
|
||||
|
||||
|
|
|
|||
|
|
@ -41,6 +41,9 @@ https://github.com/PoomSmart/Return-YouTube-Dislikes/tree/main/layout/Library/Ap
|
|||
"ENABLE_TAP_TO_SEEK" = "Enable Tap To Seek";
|
||||
"ENABLE_TAP_TO_SEEK_DESC" = "Jump to anywhere in a video by single-tapping the seek bar";
|
||||
|
||||
"DISABLE_PULL_TO_FULLSCREEN_GESTURE" = "Disable pull-to-fullscreen gesture";
|
||||
"DISABLE_PULL_TO_FULLSCREEN_GESTURE_DESC" = "Disable the drag gesture to enter vertical fullscreen. Only applies to landscape videos.";
|
||||
|
||||
// App settings overlay options
|
||||
"APP_SETTINGS_OVERLAY_OPTIONS" = "App Settings Overlay Options";
|
||||
|
||||
|
|
|
|||
|
|
@ -26,6 +26,9 @@
|
|||
"ENABLE_TAP_TO_SEEK" = "Enable Tap To Seek";
|
||||
"ENABLE_TAP_TO_SEEK_DESC" = "Jump to anywhere in a video by single-tapping the seek bar";
|
||||
|
||||
"DISABLE_PULL_TO_FULLSCREEN_GESTURE" = "Disable pull-to-fullscreen gesture";
|
||||
"DISABLE_PULL_TO_FULLSCREEN_GESTURE_DESC" = "Disable the drag gesture to enter vertical fullscreen. Only applies to landscape videos.";
|
||||
|
||||
// App settings overlay options
|
||||
"APP_SETTINGS_OVERLAY_OPTIONS" = "App Settings Overlay Options";
|
||||
|
||||
|
|
|
|||
|
|
@ -35,6 +35,9 @@
|
|||
"ENABLE_TAP_TO_SEEK" = "Enable Tap To Seek";
|
||||
"ENABLE_TAP_TO_SEEK_DESC" = "Jump to anywhere in a video by single-tapping the seek bar";
|
||||
|
||||
"DISABLE_PULL_TO_FULLSCREEN_GESTURE" = "Disable pull-to-fullscreen gesture";
|
||||
"DISABLE_PULL_TO_FULLSCREEN_GESTURE_DESC" = "Disable the drag gesture to enter vertical fullscreen. Only applies to landscape videos.";
|
||||
|
||||
// Shorts controls overlay options
|
||||
"SHORTS_CONTROLS_OVERLAY_OPTIONS" = "Tùy chọn lớp phủ điều khiển quần short";
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue