Add always remaining time/disable toggle time
This commit is contained in:
parent
1c4f5b96ba
commit
462dfee209
14 changed files with 106 additions and 0 deletions
|
|
@ -120,6 +120,8 @@ static const NSInteger YTLiteSection = 789;
|
||||||
BASIC_SWITCH(LOC(@"SEEK_ANYWHERE"), LOC(@"SEEK_ANYWHERE_DESC"), @"seekAnywhere_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"),
|
BASIC_SWITCH(LOC(@"DISABLE_PULL_TO_FULLSCREEN_GESTURE"), LOC(@"DISABLE_PULL_TO_FULLSCREEN_GESTURE_DESC"), @"disablePullToFull_enabled"),
|
||||||
|
BASIC_SWITCH(LOC(@"ALWAYS_USE_REMAINING_TIME"), LOC(@"ALWAYS_USE_REMAINING_TIME_DESC"), @"alwaysShowRemainingTime_enabled"),
|
||||||
|
BASIC_SWITCH(LOC(@"DISABLE_TOGGLE_TIME_REMAINING"), LOC(@"DISABLE_TOGGLE_TIME_REMAINING_DESC"), @"disableRemainingTime_enabled"),
|
||||||
];
|
];
|
||||||
YTSettingsPickerViewController *picker = [[%c(YTSettingsPickerViewController) alloc] initWithNavTitle:LOC(@"VIDEO_CONTROLS_OVERLAY_OPTIONS") pickerSectionTitle:nil rows:rows selectedItemIndex:NSNotFound parentResponder:[self parentResponder]];
|
YTSettingsPickerViewController *picker = [[%c(YTSettingsPickerViewController) alloc] initWithNavTitle:LOC(@"VIDEO_CONTROLS_OVERLAY_OPTIONS") pickerSectionTitle:nil rows:rows selectedItemIndex:NSNotFound parentResponder:[self parentResponder]];
|
||||||
[settingsViewController pushViewController:picker];
|
[settingsViewController pushViewController:picker];
|
||||||
|
|
|
||||||
|
|
@ -467,6 +467,38 @@ BOOL isTabSelected = NO;
|
||||||
%end
|
%end
|
||||||
%end
|
%end
|
||||||
|
|
||||||
|
// Always use remaining time in the video player - @bhackel
|
||||||
|
%hook YTPlayerBarController
|
||||||
|
// When a new video is played, enable time remaining flag
|
||||||
|
- (void)setActiveSingleVideo:(id)arg1 {
|
||||||
|
%orig;
|
||||||
|
if (IS_ENABLED(@"alwaysShowRemainingTime_enabled")) {
|
||||||
|
// Get the player bar view
|
||||||
|
YTInlinePlayerBarContainerView *playerBar = self.playerBar;
|
||||||
|
if (playerBar) {
|
||||||
|
// Enable the time remaining flag
|
||||||
|
playerBar.shouldDisplayTimeRemaining = YES;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
%end
|
||||||
|
|
||||||
|
// Disable toggle time remaining - @bhackel
|
||||||
|
%hook YTInlinePlayerBarContainerView
|
||||||
|
- (void)setShouldDisplayTimeRemaining:(BOOL)arg1 {
|
||||||
|
if (IS_ENABLED(@"disableRemainingTime_enabled")) {
|
||||||
|
// Set true if alwaysShowRemainingTime
|
||||||
|
if (IS_ENABLED(@"alwaysShowRemainingTime_enabled")) {
|
||||||
|
%orig(YES);
|
||||||
|
} else {
|
||||||
|
%orig(NO);
|
||||||
|
}
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
%orig;
|
||||||
|
}
|
||||||
|
%end
|
||||||
|
|
||||||
// BigYTMiniPlayer: https://github.com/Galactic-Dev/BigYTMiniPlayer
|
// BigYTMiniPlayer: https://github.com/Galactic-Dev/BigYTMiniPlayer
|
||||||
%group Main
|
%group Main
|
||||||
%hook YTWatchMiniBarView
|
%hook YTWatchMiniBarView
|
||||||
|
|
|
||||||
|
|
@ -29,6 +29,12 @@
|
||||||
"DISABLE_PULL_TO_FULLSCREEN_GESTURE" = "Disable pull-to-fullscreen gesture";
|
"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.";
|
"DISABLE_PULL_TO_FULLSCREEN_GESTURE_DESC" = "Disable the drag gesture to enter vertical fullscreen. Only applies to landscape videos.";
|
||||||
|
|
||||||
|
"ALWAYS_USE_REMAINING_TIME" = "Always use remaining time";
|
||||||
|
"ALWAYS_USE_REMAINING_TIME_DESC" = "Change the default to show time remaining in the player bar.";
|
||||||
|
|
||||||
|
"DISABLE_TOGGLE_TIME_REMAINING" = "Disable toggle time remaining";
|
||||||
|
"DISABLE_TOGGLE_TIME_REMAINING_DESC" = "Disables changing time elapsed to time remaining. Use with other setting to always show remaining time.";
|
||||||
|
|
||||||
// App settings overlay options
|
// App settings overlay options
|
||||||
"APP_SETTINGS_OVERLAY_OPTIONS" = "App Settings Overlay Options";
|
"APP_SETTINGS_OVERLAY_OPTIONS" = "App Settings Overlay Options";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -29,6 +29,12 @@
|
||||||
"DISABLE_PULL_TO_FULLSCREEN_GESTURE" = "Disable pull-to-fullscreen gesture";
|
"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.";
|
"DISABLE_PULL_TO_FULLSCREEN_GESTURE_DESC" = "Disable the drag gesture to enter vertical fullscreen. Only applies to landscape videos.";
|
||||||
|
|
||||||
|
"ALWAYS_USE_REMAINING_TIME" = "Always use remaining time";
|
||||||
|
"ALWAYS_USE_REMAINING_TIME_DESC" = "Change the default to show time remaining in the player bar.";
|
||||||
|
|
||||||
|
"DISABLE_TOGGLE_TIME_REMAINING" = "Disable toggle time remaining";
|
||||||
|
"DISABLE_TOGGLE_TIME_REMAINING_DESC" = "Disables changing time elapsed to time remaining. Use with other setting to always show remaining time.";
|
||||||
|
|
||||||
// App settings overlay options
|
// App settings overlay options
|
||||||
"APP_SETTINGS_OVERLAY_OPTIONS" = "Overlay-Optionen für App-Einstellungen";
|
"APP_SETTINGS_OVERLAY_OPTIONS" = "Overlay-Optionen für App-Einstellungen";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -29,6 +29,12 @@
|
||||||
"DISABLE_PULL_TO_FULLSCREEN_GESTURE" = "Disable pull-to-fullscreen gesture";
|
"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.";
|
"DISABLE_PULL_TO_FULLSCREEN_GESTURE_DESC" = "Disable the drag gesture to enter vertical fullscreen. Only applies to landscape videos.";
|
||||||
|
|
||||||
|
"ALWAYS_USE_REMAINING_TIME" = "Always use remaining time";
|
||||||
|
"ALWAYS_USE_REMAINING_TIME_DESC" = "Change the default to show time remaining in the player bar.";
|
||||||
|
|
||||||
|
"DISABLE_TOGGLE_TIME_REMAINING" = "Disable toggle time remaining";
|
||||||
|
"DISABLE_TOGGLE_TIME_REMAINING_DESC" = "Disables changing time elapsed to time remaining. Use with other setting to always show remaining time.";
|
||||||
|
|
||||||
// App settings overlay options
|
// App settings overlay options
|
||||||
"APP_SETTINGS_OVERLAY_OPTIONS" = "App Settings Overlay Options";
|
"APP_SETTINGS_OVERLAY_OPTIONS" = "App Settings Overlay Options";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -29,6 +29,12 @@
|
||||||
"DISABLE_PULL_TO_FULLSCREEN_GESTURE" = "Disable pull-to-fullscreen gesture";
|
"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.";
|
"DISABLE_PULL_TO_FULLSCREEN_GESTURE_DESC" = "Disable the drag gesture to enter vertical fullscreen. Only applies to landscape videos.";
|
||||||
|
|
||||||
|
"ALWAYS_USE_REMAINING_TIME" = "Always use remaining time";
|
||||||
|
"ALWAYS_USE_REMAINING_TIME_DESC" = "Change the default to show time remaining in the player bar.";
|
||||||
|
|
||||||
|
"DISABLE_TOGGLE_TIME_REMAINING" = "Disable toggle time remaining";
|
||||||
|
"DISABLE_TOGGLE_TIME_REMAINING_DESC" = "Disables changing time elapsed to time remaining. Use with other setting to always show remaining time.";
|
||||||
|
|
||||||
// App settings overlay options
|
// App settings overlay options
|
||||||
"APP_SETTINGS_OVERLAY_OPTIONS" = "Opciones de superposición de los ajustes de la aplicación";
|
"APP_SETTINGS_OVERLAY_OPTIONS" = "Opciones de superposición de los ajustes de la aplicación";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -29,6 +29,12 @@
|
||||||
"DISABLE_PULL_TO_FULLSCREEN_GESTURE" = "Disable pull-to-fullscreen gesture";
|
"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.";
|
"DISABLE_PULL_TO_FULLSCREEN_GESTURE_DESC" = "Disable the drag gesture to enter vertical fullscreen. Only applies to landscape videos.";
|
||||||
|
|
||||||
|
"ALWAYS_USE_REMAINING_TIME" = "Always use remaining time";
|
||||||
|
"ALWAYS_USE_REMAINING_TIME_DESC" = "Change the default to show time remaining in the player bar.";
|
||||||
|
|
||||||
|
"DISABLE_TOGGLE_TIME_REMAINING" = "Disable toggle time remaining";
|
||||||
|
"DISABLE_TOGGLE_TIME_REMAINING_DESC" = "Disables changing time elapsed to time remaining. Use with other setting to always show remaining time.";
|
||||||
|
|
||||||
// App settings overlay options
|
// App settings overlay options
|
||||||
"APP_SETTINGS_OVERLAY_OPTIONS" = "Paramètres des options d'overlay de l'application";
|
"APP_SETTINGS_OVERLAY_OPTIONS" = "Paramètres des options d'overlay de l'application";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -29,6 +29,12 @@
|
||||||
"DISABLE_PULL_TO_FULLSCREEN_GESTURE" = "Disable pull-to-fullscreen gesture";
|
"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.";
|
"DISABLE_PULL_TO_FULLSCREEN_GESTURE_DESC" = "Disable the drag gesture to enter vertical fullscreen. Only applies to landscape videos.";
|
||||||
|
|
||||||
|
"ALWAYS_USE_REMAINING_TIME" = "Always use remaining time";
|
||||||
|
"ALWAYS_USE_REMAINING_TIME_DESC" = "Change the default to show time remaining in the player bar.";
|
||||||
|
|
||||||
|
"DISABLE_TOGGLE_TIME_REMAINING" = "Disable toggle time remaining";
|
||||||
|
"DISABLE_TOGGLE_TIME_REMAINING_DESC" = "Disables changing time elapsed to time remaining. Use with other setting to always show remaining time.";
|
||||||
|
|
||||||
// App settings overlay options
|
// App settings overlay options
|
||||||
"APP_SETTINGS_OVERLAY_OPTIONS" = "アプリの設定オーバーレイの設定";
|
"APP_SETTINGS_OVERLAY_OPTIONS" = "アプリの設定オーバーレイの設定";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -29,6 +29,12 @@
|
||||||
"DISABLE_PULL_TO_FULLSCREEN_GESTURE" = "Disable pull-to-fullscreen gesture";
|
"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.";
|
"DISABLE_PULL_TO_FULLSCREEN_GESTURE_DESC" = "Disable the drag gesture to enter vertical fullscreen. Only applies to landscape videos.";
|
||||||
|
|
||||||
|
"ALWAYS_USE_REMAINING_TIME" = "Always use remaining time";
|
||||||
|
"ALWAYS_USE_REMAINING_TIME_DESC" = "Change the default to show time remaining in the player bar.";
|
||||||
|
|
||||||
|
"DISABLE_TOGGLE_TIME_REMAINING" = "Disable toggle time remaining";
|
||||||
|
"DISABLE_TOGGLE_TIME_REMAINING_DESC" = "Disables changing time elapsed to time remaining. Use with other setting to always show remaining time.";
|
||||||
|
|
||||||
// App settings overlay options
|
// App settings overlay options
|
||||||
"APP_SETTINGS_OVERLAY_OPTIONS" = "App Settings Overlay Options";
|
"APP_SETTINGS_OVERLAY_OPTIONS" = "App Settings Overlay Options";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -29,6 +29,12 @@
|
||||||
"DISABLE_PULL_TO_FULLSCREEN_GESTURE" = "Disable pull-to-fullscreen gesture";
|
"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.";
|
"DISABLE_PULL_TO_FULLSCREEN_GESTURE_DESC" = "Disable the drag gesture to enter vertical fullscreen. Only applies to landscape videos.";
|
||||||
|
|
||||||
|
"ALWAYS_USE_REMAINING_TIME" = "Always use remaining time";
|
||||||
|
"ALWAYS_USE_REMAINING_TIME_DESC" = "Change the default to show time remaining in the player bar.";
|
||||||
|
|
||||||
|
"DISABLE_TOGGLE_TIME_REMAINING" = "Disable toggle time remaining";
|
||||||
|
"DISABLE_TOGGLE_TIME_REMAINING_DESC" = "Disables changing time elapsed to time remaining. Use with other setting to always show remaining time.";
|
||||||
|
|
||||||
// App settings overlay options
|
// App settings overlay options
|
||||||
"APP_SETTINGS_OVERLAY_OPTIONS" = "Opțiuni Overlay Setări Aplicație";
|
"APP_SETTINGS_OVERLAY_OPTIONS" = "Opțiuni Overlay Setări Aplicație";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -29,6 +29,12 @@
|
||||||
"DISABLE_PULL_TO_FULLSCREEN_GESTURE" = "Disable pull-to-fullscreen gesture";
|
"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.";
|
"DISABLE_PULL_TO_FULLSCREEN_GESTURE_DESC" = "Disable the drag gesture to enter vertical fullscreen. Only applies to landscape videos.";
|
||||||
|
|
||||||
|
"ALWAYS_USE_REMAINING_TIME" = "Always use remaining time";
|
||||||
|
"ALWAYS_USE_REMAINING_TIME_DESC" = "Change the default to show time remaining in the player bar.";
|
||||||
|
|
||||||
|
"DISABLE_TOGGLE_TIME_REMAINING" = "Disable toggle time remaining";
|
||||||
|
"DISABLE_TOGGLE_TIME_REMAINING_DESC" = "Disables changing time elapsed to time remaining. Use with other setting to always show remaining time.";
|
||||||
|
|
||||||
// App settings overlay options
|
// App settings overlay options
|
||||||
"APP_SETTINGS_OVERLAY_OPTIONS" = "App Settings Overlay Options";
|
"APP_SETTINGS_OVERLAY_OPTIONS" = "App Settings Overlay Options";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -44,6 +44,12 @@ https://github.com/PoomSmart/Return-YouTube-Dislikes/tree/main/layout/Library/Ap
|
||||||
"DISABLE_PULL_TO_FULLSCREEN_GESTURE" = "Disable pull-to-fullscreen gesture";
|
"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.";
|
"DISABLE_PULL_TO_FULLSCREEN_GESTURE_DESC" = "Disable the drag gesture to enter vertical fullscreen. Only applies to landscape videos.";
|
||||||
|
|
||||||
|
"ALWAYS_USE_REMAINING_TIME" = "Always use remaining time";
|
||||||
|
"ALWAYS_USE_REMAINING_TIME_DESC" = "Change the default to show time remaining in the player bar.";
|
||||||
|
|
||||||
|
"DISABLE_TOGGLE_TIME_REMAINING" = "Disable toggle time remaining";
|
||||||
|
"DISABLE_TOGGLE_TIME_REMAINING_DESC" = "Disables changing time elapsed to time remaining. Use with other setting to always show remaining time.";
|
||||||
|
|
||||||
// App settings overlay options
|
// App settings overlay options
|
||||||
"APP_SETTINGS_OVERLAY_OPTIONS" = "App Settings Overlay Options";
|
"APP_SETTINGS_OVERLAY_OPTIONS" = "App Settings Overlay Options";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -29,6 +29,12 @@
|
||||||
"DISABLE_PULL_TO_FULLSCREEN_GESTURE" = "Disable pull-to-fullscreen gesture";
|
"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.";
|
"DISABLE_PULL_TO_FULLSCREEN_GESTURE_DESC" = "Disable the drag gesture to enter vertical fullscreen. Only applies to landscape videos.";
|
||||||
|
|
||||||
|
"ALWAYS_USE_REMAINING_TIME" = "Always use remaining time";
|
||||||
|
"ALWAYS_USE_REMAINING_TIME_DESC" = "Change the default to show time remaining in the player bar.";
|
||||||
|
|
||||||
|
"DISABLE_TOGGLE_TIME_REMAINING" = "Disable toggle time remaining";
|
||||||
|
"DISABLE_TOGGLE_TIME_REMAINING_DESC" = "Disables changing time elapsed to time remaining. Use with other setting to always show remaining time.";
|
||||||
|
|
||||||
// App settings overlay options
|
// App settings overlay options
|
||||||
"APP_SETTINGS_OVERLAY_OPTIONS" = "App Settings Overlay Options";
|
"APP_SETTINGS_OVERLAY_OPTIONS" = "App Settings Overlay Options";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -38,6 +38,12 @@
|
||||||
"DISABLE_PULL_TO_FULLSCREEN_GESTURE" = "Disable pull-to-fullscreen gesture";
|
"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.";
|
"DISABLE_PULL_TO_FULLSCREEN_GESTURE_DESC" = "Disable the drag gesture to enter vertical fullscreen. Only applies to landscape videos.";
|
||||||
|
|
||||||
|
"ALWAYS_USE_REMAINING_TIME" = "Always use remaining time";
|
||||||
|
"ALWAYS_USE_REMAINING_TIME_DESC" = "Change the default to show time remaining in the player bar.";
|
||||||
|
|
||||||
|
"DISABLE_TOGGLE_TIME_REMAINING" = "Disable toggle time remaining";
|
||||||
|
"DISABLE_TOGGLE_TIME_REMAINING_DESC" = "Disables changing time elapsed to time remaining. Use with other setting to always show remaining time.";
|
||||||
|
|
||||||
// Shorts controls overlay options
|
// Shorts controls overlay options
|
||||||
"SHORTS_CONTROLS_OVERLAY_OPTIONS" = "Tùy chọn lớp phủ điều khiển quần short";
|
"SHORTS_CONTROLS_OVERLAY_OPTIONS" = "Tùy chọn lớp phủ điều khiển quần short";
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue