mirror of
https://github.com/SoPat712/YTLitePlus.git
synced 2025-08-21 18:48:45 -04:00
Add Hide Speed Toast
This commit is contained in:
@@ -233,7 +233,7 @@ static const NSInteger YTLiteSection = 789;
|
||||
BASIC_SWITCH(LOC(@"HIDE_AUTOPLAY_MINI_PREVIEW"), LOC(@"HIDE_AUTOPLAY_MINI_PREVIEW_DESC"), @"hideAutoplayMiniPreview_enabled"),
|
||||
BASIC_SWITCH(LOC(@"HIDE_HUD_MESSAGES"), LOC(@"HIDE_HUD_MESSAGES_DESC"), @"hideHUD_enabled"),
|
||||
BASIC_SWITCH(LOC(@"HIDE_COLLAPSE_BUTTON"), LOC(@"HIDE_COLLAPSE_BUTTON_DESC"), @"disableCollapseButton_enabled"),
|
||||
|
||||
BASIC_SWITCH(LOC(@"HIDE_SPEED_TOAST"), LOC(@"HIDE_SPEED_TOAST_DESC"), @"hideSpeedToast_enabled"),
|
||||
];
|
||||
YTSettingsPickerViewController *picker = [[%c(YTSettingsPickerViewController) alloc] initWithNavTitle:LOC(@"VIDEO_CONTROLS_OVERLAY_OPTIONS") pickerSectionTitle:nil rows:rows selectedItemIndex:NSNotFound parentResponder:[self parentResponder]];
|
||||
[settingsViewController pushViewController:picker];
|
||||
|
@@ -179,6 +179,7 @@ BOOL isSelf() {
|
||||
%end
|
||||
%end
|
||||
|
||||
|
||||
// A/B flags
|
||||
%hook YTColdConfig
|
||||
- (BOOL)respectDeviceCaptionSetting { return NO; } // YouRememberCaption: https://poomsmart.github.io/repo/depictions/youremembercaption.html
|
||||
@@ -194,6 +195,30 @@ BOOL isSelf() {
|
||||
- (BOOL)shouldShowUpgradeDialog { return NO;}
|
||||
%end
|
||||
|
||||
// Hide Speed Toast - @bhackel
|
||||
// YTLite Speed Toast
|
||||
%hook PlayerToast
|
||||
- (void)showPlayerToastWithText:(id)text
|
||||
value:(CGFloat)value
|
||||
style:(NSInteger)style
|
||||
onView:(id)view
|
||||
{
|
||||
if (IsEnabled(@"hideSpeedToast_enabled")) {
|
||||
return;
|
||||
}
|
||||
%orig;
|
||||
}
|
||||
%end
|
||||
// Default YouTube Speed Toast
|
||||
%hook YTInlinePlayerScrubUserEducationView
|
||||
- (void)setVisible:(BOOL)visible {
|
||||
if (IsEnabled(@"hideSpeedToast_enabled")) {
|
||||
return;
|
||||
}
|
||||
%orig;
|
||||
}
|
||||
%end
|
||||
|
||||
// Hide Home Tab - @bhackel
|
||||
%group gHideHomeTab
|
||||
%hook YTPivotBarView
|
||||
|
@@ -70,6 +70,9 @@
|
||||
"HIDE_COLLAPSE_BUTTON" = "Hide Collapse Button";
|
||||
"HIDE_COLLAPSE_BUTTON_DESC" = "Hides the Arrow Collapse Button that was shown in the Top Left of the Video Player.";
|
||||
|
||||
"HIDE_SPEED_TOAST" = "Hide Speed Toast";
|
||||
"HIDE_SPEED_TOAST_DESC" = "Hide the 2X Speed popup when holding the player";
|
||||
|
||||
// App settings overlay options
|
||||
"APP_SETTINGS_OVERLAY_OPTIONS" = "App Settings Overlay Options";
|
||||
|
||||
|
@@ -70,6 +70,9 @@
|
||||
"HIDE_COLLAPSE_BUTTON" = "Hide Collapse Button";
|
||||
"HIDE_COLLAPSE_BUTTON_DESC" = "Hides the Arrow Collapse Button that was shown in the Top Left of the Video Player.";
|
||||
|
||||
"HIDE_SPEED_TOAST" = "Hide Speed Toast";
|
||||
"HIDE_SPEED_TOAST_DESC" = "Hide the 2X Speed popup when holding the player";
|
||||
|
||||
// App settings overlay options
|
||||
"APP_SETTINGS_OVERLAY_OPTIONS" = "Overlay-Optionen für App-Einstellungen";
|
||||
|
||||
|
@@ -70,6 +70,9 @@
|
||||
"HIDE_COLLAPSE_BUTTON" = "Hide Collapse Button";
|
||||
"HIDE_COLLAPSE_BUTTON_DESC" = "Hides the Arrow Collapse Button that was shown in the Top Left of the Video Player.";
|
||||
|
||||
"HIDE_SPEED_TOAST" = "Hide Speed Toast";
|
||||
"HIDE_SPEED_TOAST_DESC" = "Hide the 2X Speed popup when holding the player";
|
||||
|
||||
// App settings overlay options
|
||||
"APP_SETTINGS_OVERLAY_OPTIONS" = "App Settings Overlay Options";
|
||||
|
||||
|
@@ -70,6 +70,9 @@
|
||||
"HIDE_COLLAPSE_BUTTON" = "Hide Collapse Button";
|
||||
"HIDE_COLLAPSE_BUTTON_DESC" = "Hides the Arrow Collapse Button that was shown in the Top Left of the Video Player.";
|
||||
|
||||
"HIDE_SPEED_TOAST" = "Hide Speed Toast";
|
||||
"HIDE_SPEED_TOAST_DESC" = "Hide the 2X Speed popup when holding the player";
|
||||
|
||||
// App settings overlay options
|
||||
"APP_SETTINGS_OVERLAY_OPTIONS" = "Opciones de superposición de los ajustes de la aplicación";
|
||||
|
||||
|
@@ -70,6 +70,9 @@
|
||||
"HIDE_COLLAPSE_BUTTON" = "Hide Collapse Button";
|
||||
"HIDE_COLLAPSE_BUTTON_DESC" = "Hides the Arrow Collapse Button that was shown in the Top Left of the Video Player.";
|
||||
|
||||
"HIDE_SPEED_TOAST" = "Hide Speed Toast";
|
||||
"HIDE_SPEED_TOAST_DESC" = "Hide the 2X Speed popup when holding the player";
|
||||
|
||||
// App settings overlay options
|
||||
"APP_SETTINGS_OVERLAY_OPTIONS" = "Paramètres des options d'overlay de l'application";
|
||||
|
||||
|
@@ -70,6 +70,9 @@
|
||||
"HIDE_COLLAPSE_BUTTON" = "折りたたみボタンを隠す";
|
||||
"HIDE_COLLAPSE_BUTTON_DESC" = "プレーヤー左上の折りたたみボタンを非表示にします。";
|
||||
|
||||
"HIDE_SPEED_TOAST" = "Hide Speed Toast";
|
||||
"HIDE_SPEED_TOAST_DESC" = "Hide the 2X Speed popup when holding the player";
|
||||
|
||||
// App settings overlay options
|
||||
"APP_SETTINGS_OVERLAY_OPTIONS" = "アプリの設定オーバーレイの設定";
|
||||
|
||||
|
@@ -70,6 +70,9 @@
|
||||
"HIDE_COLLAPSE_BUTTON" = "Hide Collapse Button";
|
||||
"HIDE_COLLAPSE_BUTTON_DESC" = "Hides the Arrow Collapse Button that was shown in the Top Left of the Video Player.";
|
||||
|
||||
"HIDE_SPEED_TOAST" = "Hide Speed Toast";
|
||||
"HIDE_SPEED_TOAST_DESC" = "Hide the 2X Speed popup when holding the player";
|
||||
|
||||
// App settings overlay options
|
||||
"APP_SETTINGS_OVERLAY_OPTIONS" = "Configurações do Aplicativo";
|
||||
|
||||
|
@@ -70,6 +70,9 @@
|
||||
"HIDE_COLLAPSE_BUTTON" = "Hide Collapse Button";
|
||||
"HIDE_COLLAPSE_BUTTON_DESC" = "Hides the Arrow Collapse Button that was shown in the Top Left of the Video Player.";
|
||||
|
||||
"HIDE_SPEED_TOAST" = "Hide Speed Toast";
|
||||
"HIDE_SPEED_TOAST_DESC" = "Hide the 2X Speed popup when holding the player";
|
||||
|
||||
// App settings overlay options
|
||||
"APP_SETTINGS_OVERLAY_OPTIONS" = "Opțiuni Overlay Setări Aplicație";
|
||||
|
||||
|
@@ -70,6 +70,9 @@
|
||||
"HIDE_COLLAPSE_BUTTON" = "Hide Collapse Button";
|
||||
"HIDE_COLLAPSE_BUTTON_DESC" = "Hides the Arrow Collapse Button that was shown in the Top Left of the Video Player.";
|
||||
|
||||
"HIDE_SPEED_TOAST" = "Hide Speed Toast";
|
||||
"HIDE_SPEED_TOAST_DESC" = "Hide the 2X Speed popup when holding the player";
|
||||
|
||||
// App settings overlay options
|
||||
"APP_SETTINGS_OVERLAY_OPTIONS" = "App Settings Overlay Options";
|
||||
|
||||
|
@@ -85,6 +85,9 @@ https://github.com/PoomSmart/Return-YouTube-Dislikes/tree/main/layout/Library/Ap
|
||||
"HIDE_COLLAPSE_BUTTON" = "Hide Collapse Button";
|
||||
"HIDE_COLLAPSE_BUTTON_DESC" = "Hides the Arrow Collapse Button that was shown in the Top Left of the Video Player.";
|
||||
|
||||
"HIDE_SPEED_TOAST" = "Hide Speed Toast";
|
||||
"HIDE_SPEED_TOAST_DESC" = "Hide the 2X Speed popup when holding the player";
|
||||
|
||||
// App settings overlay options
|
||||
"APP_SETTINGS_OVERLAY_OPTIONS" = "App Settings Overlay Options";
|
||||
|
||||
|
@@ -70,6 +70,9 @@
|
||||
"HIDE_COLLAPSE_BUTTON" = "Daraltma Düğmesini Gizle";
|
||||
"HIDE_COLLAPSE_BUTTON_DESC" = "Video oynatıcıda sol üstte görünen ok ile daraltma düğmesini gizler.";
|
||||
|
||||
"HIDE_SPEED_TOAST" = "Hide Speed Toast";
|
||||
"HIDE_SPEED_TOAST_DESC" = "Hide the 2X Speed popup when holding the player";
|
||||
|
||||
// App settings overlay options
|
||||
"APP_SETTINGS_OVERLAY_OPTIONS" = "Uyg. Ayarları Kaplama Seç.";
|
||||
|
||||
|
@@ -79,6 +79,9 @@
|
||||
"HIDE_COLLAPSE_BUTTON" = "Hide Collapse Button";
|
||||
"HIDE_COLLAPSE_BUTTON_DESC" = "Hides the Arrow Collapse Button that was shown in the Top Left of the Video Player.";
|
||||
|
||||
"HIDE_SPEED_TOAST" = "Hide Speed Toast";
|
||||
"HIDE_SPEED_TOAST_DESC" = "Hide the 2X Speed popup when holding the player";
|
||||
|
||||
// Shorts controls overlay options
|
||||
"SHORTS_CONTROLS_OVERLAY_OPTIONS" = "Tùy chọn lớp phủ điều khiển quần short";
|
||||
|
||||
|
@@ -71,6 +71,9 @@
|
||||
"HIDE_COLLAPSE_BUTTON" = "Hide Collapse Button";
|
||||
"HIDE_COLLAPSE_BUTTON_DESC" = "Hides the Arrow Collapse Button that was shown in the Top Left of the Video Player.";
|
||||
|
||||
"HIDE_SPEED_TOAST" = "Hide Speed Toast";
|
||||
"HIDE_SPEED_TOAST_DESC" = "Hide the 2X Speed popup when holding the player";
|
||||
|
||||
// App settings overlay options
|
||||
"APP_SETTINGS_OVERLAY_OPTIONS" = "應用程式設定隱藏項目";
|
||||
|
||||
|
Reference in New Issue
Block a user