mirror of
				https://github.com/SoPat712/YTLitePlus.git
				synced 2025-10-30 12:23:58 -04:00 
			
		
		
		
	Merge pull request #330 from bhackel/remove-speed-popup
Remove speed popup
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_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_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_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]]; |         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]; | ||||||
|   | |||||||
| @@ -179,6 +179,7 @@ BOOL isSelf() { | |||||||
| %end | %end | ||||||
| %end | %end | ||||||
|  |  | ||||||
|  |  | ||||||
| // A/B flags | // A/B flags | ||||||
| %hook YTColdConfig  | %hook YTColdConfig  | ||||||
| - (BOOL)respectDeviceCaptionSetting { return NO; } // YouRememberCaption: https://poomsmart.github.io/repo/depictions/youremembercaption.html | - (BOOL)respectDeviceCaptionSetting { return NO; } // YouRememberCaption: https://poomsmart.github.io/repo/depictions/youremembercaption.html | ||||||
| @@ -194,6 +195,30 @@ BOOL isSelf() { | |||||||
| - (BOOL)shouldShowUpgradeDialog { return NO;} | - (BOOL)shouldShowUpgradeDialog { return NO;} | ||||||
| %end | %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 | // Hide Home Tab - @bhackel | ||||||
| %group gHideHomeTab | %group gHideHomeTab | ||||||
| %hook YTPivotBarView | %hook YTPivotBarView | ||||||
|   | |||||||
| @@ -70,6 +70,9 @@ | |||||||
| "HIDE_COLLAPSE_BUTTON" = "Hide Collapse Button"; | "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_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" = "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" = "Hide Collapse Button"; | ||||||
| "HIDE_COLLAPSE_BUTTON_DESC" = "Hides the Arrow Collapse Button that was shown in the Top Left of the Video Player."; | "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" = "Overlay-Optionen für App-Einstellungen"; | "APP_SETTINGS_OVERLAY_OPTIONS" = "Overlay-Optionen für App-Einstellungen"; | ||||||
|  |  | ||||||
|   | |||||||
| @@ -70,6 +70,9 @@ | |||||||
| "HIDE_COLLAPSE_BUTTON" = "Hide Collapse Button"; | "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_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" = "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" = "Hide Collapse Button"; | ||||||
| "HIDE_COLLAPSE_BUTTON_DESC" = "Hides the Arrow Collapse Button that was shown in the Top Left of the Video Player."; | "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" = "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"; | ||||||
|  |  | ||||||
|   | |||||||
| @@ -70,6 +70,9 @@ | |||||||
| "HIDE_COLLAPSE_BUTTON" = "Hide Collapse Button"; | "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_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" = "Paramètres des options d'overlay de l'application"; | "APP_SETTINGS_OVERLAY_OPTIONS" = "Paramètres des options d'overlay de l'application"; | ||||||
|  |  | ||||||
|   | |||||||
| @@ -70,6 +70,9 @@ | |||||||
| "HIDE_COLLAPSE_BUTTON" = "折りたたみボタンを隠す"; | "HIDE_COLLAPSE_BUTTON" = "折りたたみボタンを隠す"; | ||||||
| "HIDE_COLLAPSE_BUTTON_DESC" = "プレーヤー左上の折りたたみボタンを非表示にします。"; | "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 | ||||||
| "APP_SETTINGS_OVERLAY_OPTIONS" = "アプリの設定オーバーレイの設定"; | "APP_SETTINGS_OVERLAY_OPTIONS" = "アプリの設定オーバーレイの設定"; | ||||||
|  |  | ||||||
|   | |||||||
| @@ -70,6 +70,10 @@ | |||||||
| "HIDE_COLLAPSE_BUTTON" = "Ocultar Botão de Recolhimento"; | "HIDE_COLLAPSE_BUTTON" = "Ocultar Botão de Recolhimento"; | ||||||
| "HIDE_COLLAPSE_BUTTON_DESC" = "Oculta o botão de seta para recolher que era exibido no canto superior esquerdo do player de vídeo."; | "HIDE_COLLAPSE_BUTTON_DESC" = "Oculta o botão de seta para recolher que era exibido no canto superior esquerdo do player de vídeo."; | ||||||
|  |  | ||||||
|  | "HIDE_SPEED_TOAST" = "Ocultar Toast de Velocidade"; | ||||||
|  | "HIDE_SPEED_TOAST_DESC" = "Ocultar o popup de Velocidade 2X ao segurar o player"; | ||||||
|  |  | ||||||
|  |  | ||||||
| // App settings overlay options | // App settings overlay options | ||||||
| "APP_SETTINGS_OVERLAY_OPTIONS" = "Configurações do Aplicativo"; | "APP_SETTINGS_OVERLAY_OPTIONS" = "Configurações do Aplicativo"; | ||||||
|  |  | ||||||
|   | |||||||
| @@ -70,6 +70,9 @@ | |||||||
| "HIDE_COLLAPSE_BUTTON" = "Hide Collapse Button"; | "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_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" = "Opțiuni Overlay Setări Aplicație"; | "APP_SETTINGS_OVERLAY_OPTIONS" = "Opțiuni Overlay Setări Aplicație"; | ||||||
|  |  | ||||||
|   | |||||||
| @@ -70,6 +70,9 @@ | |||||||
| "HIDE_COLLAPSE_BUTTON" = "Hide Collapse Button"; | "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_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" = "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" = "Hide Collapse Button"; | ||||||
| "HIDE_COLLAPSE_BUTTON_DESC" = "Hides the Arrow Collapse Button that was shown in the Top Left of the Video Player."; | "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" = "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" = "Daraltma Düğmesini Gizle"; | ||||||
| "HIDE_COLLAPSE_BUTTON_DESC" = "Video oynatıcıda sol üstte görünen ok ile daraltma düğmesini gizler."; | "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 | ||||||
| "APP_SETTINGS_OVERLAY_OPTIONS" = "Uyg. Ayarları Kaplama Seç."; | "APP_SETTINGS_OVERLAY_OPTIONS" = "Uyg. Ayarları Kaplama Seç."; | ||||||
|  |  | ||||||
|   | |||||||
| @@ -79,6 +79,9 @@ | |||||||
| "HIDE_COLLAPSE_BUTTON" = "Hide Collapse Button"; | "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_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 | ||||||
| "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"; | ||||||
|  |  | ||||||
|   | |||||||
| @@ -71,6 +71,9 @@ | |||||||
| "HIDE_COLLAPSE_BUTTON" = "Hide Collapse Button"; | "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_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" = "應用程式設定隱藏項目"; | "APP_SETTINGS_OVERLAY_OPTIONS" = "應用程式設定隱藏項目"; | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Bryce Hackel
					Bryce Hackel