Merge pull request #330 from bhackel/remove-speed-popup

Remove speed popup
This commit is contained in:
Bryce Hackel
2024-08-12 22:43:28 -07:00
committed by GitHub
15 changed files with 229 additions and 164 deletions

View File

@@ -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];

View File

@@ -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

View File

@@ -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";

View File

@@ -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";

View File

@@ -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";

View File

@@ -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";

View File

@@ -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";

View File

@@ -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" = "アプリの設定オーバーレイの設定";

View File

@@ -70,6 +70,10 @@
"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_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" = "Configurações do Aplicativo";

View File

@@ -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";

View File

@@ -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";

View File

@@ -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";

View File

@@ -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ç.";

View File

@@ -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";

View File

@@ -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" = "應用程式設定隱藏項目";