mirror of
				https://github.com/SoPat712/YTLitePlus.git
				synced 2025-10-30 12:23:58 -04:00 
			
		
		
		
	Merge pull request #248 from bhackel/disable-fullscreen-engagement-overlay
Add Disable Engagement Overlay
This commit is contained in:
		| @@ -138,6 +138,7 @@ static const NSInteger YTLiteSection = 789; | |||||||
|             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(@"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"), |             BASIC_SWITCH(LOC(@"DISABLE_TOGGLE_TIME_REMAINING"), LOC(@"DISABLE_TOGGLE_TIME_REMAINING_DESC"), @"disableRemainingTime_enabled"), | ||||||
|  |             BASIC_SWITCH(LOC(@"DISABLE_ENGAGEMENT_OVERLAY"), LOC(@"DISABLE_ENGAGEMENT_OVERLAY_DESC"), @"disableEngagementOverlay_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]; | ||||||
|   | |||||||
| @@ -249,6 +249,14 @@ BOOL isTabSelected = NO; | |||||||
| %end | %end | ||||||
| %end | %end | ||||||
|  |  | ||||||
|  | %group gDisableEngagementOverlay | ||||||
|  | %hook YTFullscreenEngagementOverlayController | ||||||
|  | - (void)setEnabled:(BOOL)enabled { | ||||||
|  |     %orig(NO); | ||||||
|  | } | ||||||
|  | %end | ||||||
|  | %end | ||||||
|  |  | ||||||
| // YTNoModernUI - @arichornlover | // YTNoModernUI - @arichornlover | ||||||
| %group gYTNoModernUI | %group gYTNoModernUI | ||||||
| %hook YTVersionUtils // YTNoModernUI Original Version | %hook YTVersionUtils // YTNoModernUI Original Version | ||||||
| @@ -759,6 +767,9 @@ BOOL isTabSelected = NO; | |||||||
|     if (IsEnabled(@"disablePullToFull_enabled")) { |     if (IsEnabled(@"disablePullToFull_enabled")) { | ||||||
|         %init(gDisablePullToFull); |         %init(gDisablePullToFull); | ||||||
|     } |     } | ||||||
|  |     if (IsEnabled(@"disableEngagementOverlay_enabled")) { | ||||||
|  |         %init(gDisableEngagementOverlay); | ||||||
|  |     } | ||||||
|  |  | ||||||
|     // Change the default value of some options |     // Change the default value of some options | ||||||
|     NSArray *allKeys = [[[NSUserDefaults standardUserDefaults] dictionaryRepresentation] allKeys]; |     NSArray *allKeys = [[[NSUserDefaults standardUserDefaults] dictionaryRepresentation] allKeys]; | ||||||
|   | |||||||
| @@ -41,6 +41,9 @@ | |||||||
| "DISABLE_TOGGLE_TIME_REMAINING" = "Disable toggle time remaining"; | "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."; | "DISABLE_TOGGLE_TIME_REMAINING_DESC" = "Disables changing time elapsed to time remaining. Use with other setting to always show remaining time."; | ||||||
|  |  | ||||||
|  | "DISABLE_ENGAGEMENT_OVERLAY" = "Disable fullscreen engagement overlay"; | ||||||
|  | "DISABLE_ENGAGEMENT_OVERLAY_DESC" = "Disable the swipe-up gesture and suggested videos list in fullscreen"; | ||||||
|  |  | ||||||
| // App settings overlay options | // App settings overlay options | ||||||
| "APP_SETTINGS_OVERLAY_OPTIONS" = "App Settings Overlay Options"; | "APP_SETTINGS_OVERLAY_OPTIONS" = "App Settings Overlay Options"; | ||||||
|  |  | ||||||
|   | |||||||
| @@ -41,6 +41,9 @@ | |||||||
| "DISABLE_TOGGLE_TIME_REMAINING" = "Disable toggle time remaining"; | "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."; | "DISABLE_TOGGLE_TIME_REMAINING_DESC" = "Disables changing time elapsed to time remaining. Use with other setting to always show remaining time."; | ||||||
|  |  | ||||||
|  | "DISABLE_ENGAGEMENT_OVERLAY" = "Disable fullscreen engagement overlay"; | ||||||
|  | "DISABLE_ENGAGEMENT_OVERLAY_DESC" = "Disable the swipe-up gesture and suggested videos list in fullscreen"; | ||||||
|  |  | ||||||
| // 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"; | ||||||
|  |  | ||||||
|   | |||||||
| @@ -41,6 +41,9 @@ | |||||||
| "DISABLE_TOGGLE_TIME_REMAINING" = "Disable toggle time remaining"; | "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."; | "DISABLE_TOGGLE_TIME_REMAINING_DESC" = "Disables changing time elapsed to time remaining. Use with other setting to always show remaining time."; | ||||||
|  |  | ||||||
|  | "DISABLE_ENGAGEMENT_OVERLAY" = "Disable fullscreen engagement overlay"; | ||||||
|  | "DISABLE_ENGAGEMENT_OVERLAY_DESC" = "Disable the swipe-up gesture and suggested videos list in fullscreen"; | ||||||
|  |  | ||||||
| // App settings overlay options | // App settings overlay options | ||||||
| "APP_SETTINGS_OVERLAY_OPTIONS" = "App Settings Overlay Options"; | "APP_SETTINGS_OVERLAY_OPTIONS" = "App Settings Overlay Options"; | ||||||
|  |  | ||||||
|   | |||||||
| @@ -41,6 +41,9 @@ | |||||||
| "DISABLE_TOGGLE_TIME_REMAINING" = "Disable toggle time remaining"; | "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."; | "DISABLE_TOGGLE_TIME_REMAINING_DESC" = "Disables changing time elapsed to time remaining. Use with other setting to always show remaining time."; | ||||||
|  |  | ||||||
|  | "DISABLE_ENGAGEMENT_OVERLAY" = "Disable fullscreen engagement overlay"; | ||||||
|  | "DISABLE_ENGAGEMENT_OVERLAY_DESC" = "Disable the swipe-up gesture and suggested videos list in fullscreen"; | ||||||
|  |  | ||||||
| // 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"; | ||||||
|  |  | ||||||
|   | |||||||
| @@ -41,6 +41,9 @@ | |||||||
| "DISABLE_TOGGLE_TIME_REMAINING" = "Disable toggle time remaining"; | "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."; | "DISABLE_TOGGLE_TIME_REMAINING_DESC" = "Disables changing time elapsed to time remaining. Use with other setting to always show remaining time."; | ||||||
|  |  | ||||||
|  | "DISABLE_ENGAGEMENT_OVERLAY" = "Disable fullscreen engagement overlay"; | ||||||
|  | "DISABLE_ENGAGEMENT_OVERLAY_DESC" = "Disable the swipe-up gesture and suggested videos list in fullscreen"; | ||||||
|  |  | ||||||
| // 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"; | ||||||
|  |  | ||||||
|   | |||||||
| @@ -41,6 +41,9 @@ | |||||||
| "DISABLE_TOGGLE_TIME_REMAINING" = "Disable toggle time remaining"; | "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."; | "DISABLE_TOGGLE_TIME_REMAINING_DESC" = "Disables changing time elapsed to time remaining. Use with other setting to always show remaining time."; | ||||||
|  |  | ||||||
|  | "DISABLE_ENGAGEMENT_OVERLAY" = "Disable fullscreen engagement overlay"; | ||||||
|  | "DISABLE_ENGAGEMENT_OVERLAY_DESC" = "Disable the swipe-up gesture and suggested videos list in fullscreen"; | ||||||
|  |  | ||||||
| // App settings overlay options | // App settings overlay options | ||||||
| "APP_SETTINGS_OVERLAY_OPTIONS" = "アプリの設定オーバーレイの設定"; | "APP_SETTINGS_OVERLAY_OPTIONS" = "アプリの設定オーバーレイの設定"; | ||||||
|  |  | ||||||
|   | |||||||
| @@ -41,6 +41,9 @@ | |||||||
| "DISABLE_TOGGLE_TIME_REMAINING" = "Disable toggle time remaining"; | "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."; | "DISABLE_TOGGLE_TIME_REMAINING_DESC" = "Disables changing time elapsed to time remaining. Use with other setting to always show remaining time."; | ||||||
|  |  | ||||||
|  | "DISABLE_ENGAGEMENT_OVERLAY" = "Disable fullscreen engagement overlay"; | ||||||
|  | "DISABLE_ENGAGEMENT_OVERLAY_DESC" = "Disable the swipe-up gesture and suggested videos list in fullscreen"; | ||||||
|  |  | ||||||
| // App settings overlay options | // App settings overlay options | ||||||
| "APP_SETTINGS_OVERLAY_OPTIONS" = "App Settings Overlay Options"; | "APP_SETTINGS_OVERLAY_OPTIONS" = "App Settings Overlay Options"; | ||||||
|  |  | ||||||
|   | |||||||
| @@ -41,6 +41,9 @@ | |||||||
| "DISABLE_TOGGLE_TIME_REMAINING" = "Disable toggle time remaining"; | "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."; | "DISABLE_TOGGLE_TIME_REMAINING_DESC" = "Disables changing time elapsed to time remaining. Use with other setting to always show remaining time."; | ||||||
|  |  | ||||||
|  | "DISABLE_ENGAGEMENT_OVERLAY" = "Disable fullscreen engagement overlay"; | ||||||
|  | "DISABLE_ENGAGEMENT_OVERLAY_DESC" = "Disable the swipe-up gesture and suggested videos list in fullscreen"; | ||||||
|  |  | ||||||
| // 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"; | ||||||
|  |  | ||||||
|   | |||||||
| @@ -41,6 +41,9 @@ | |||||||
| "DISABLE_TOGGLE_TIME_REMAINING" = "Disable toggle time remaining"; | "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."; | "DISABLE_TOGGLE_TIME_REMAINING_DESC" = "Disables changing time elapsed to time remaining. Use with other setting to always show remaining time."; | ||||||
|  |  | ||||||
|  | "DISABLE_ENGAGEMENT_OVERLAY" = "Disable fullscreen engagement overlay"; | ||||||
|  | "DISABLE_ENGAGEMENT_OVERLAY_DESC" = "Disable the swipe-up gesture and suggested videos list in fullscreen"; | ||||||
|  |  | ||||||
| // App settings overlay options | // App settings overlay options | ||||||
| "APP_SETTINGS_OVERLAY_OPTIONS" = "App Settings Overlay Options"; | "APP_SETTINGS_OVERLAY_OPTIONS" = "App Settings Overlay Options"; | ||||||
|  |  | ||||||
|   | |||||||
| @@ -56,6 +56,9 @@ https://github.com/PoomSmart/Return-YouTube-Dislikes/tree/main/layout/Library/Ap | |||||||
| "DISABLE_TOGGLE_TIME_REMAINING" = "Disable toggle time remaining"; | "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."; | "DISABLE_TOGGLE_TIME_REMAINING_DESC" = "Disables changing time elapsed to time remaining. Use with other setting to always show remaining time."; | ||||||
|  |  | ||||||
|  | "DISABLE_ENGAGEMENT_OVERLAY" = "Disable fullscreen engagement overlay"; | ||||||
|  | "DISABLE_ENGAGEMENT_OVERLAY_DESC" = "Disable the swipe-up gesture and suggested videos list in fullscreen"; | ||||||
|  |  | ||||||
| // App settings overlay options | // App settings overlay options | ||||||
| "APP_SETTINGS_OVERLAY_OPTIONS" = "App Settings Overlay Options"; | "APP_SETTINGS_OVERLAY_OPTIONS" = "App Settings Overlay Options"; | ||||||
|  |  | ||||||
|   | |||||||
| @@ -41,6 +41,9 @@ | |||||||
| "DISABLE_TOGGLE_TIME_REMAINING" = "Disable toggle time remaining"; | "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."; | "DISABLE_TOGGLE_TIME_REMAINING_DESC" = "Disables changing time elapsed to time remaining. Use with other setting to always show remaining time."; | ||||||
|  |  | ||||||
|  | "DISABLE_ENGAGEMENT_OVERLAY" = "Disable fullscreen engagement overlay"; | ||||||
|  | "DISABLE_ENGAGEMENT_OVERLAY_DESC" = "Disable the swipe-up gesture and suggested videos list in fullscreen"; | ||||||
|  |  | ||||||
| // App settings overlay options | // App settings overlay options | ||||||
| "APP_SETTINGS_OVERLAY_OPTIONS" = "App Settings Overlay Options"; | "APP_SETTINGS_OVERLAY_OPTIONS" = "App Settings Overlay Options"; | ||||||
|  |  | ||||||
|   | |||||||
| @@ -50,6 +50,9 @@ | |||||||
| "DISABLE_TOGGLE_TIME_REMAINING" = "Disable toggle time remaining"; | "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."; | "DISABLE_TOGGLE_TIME_REMAINING_DESC" = "Disables changing time elapsed to time remaining. Use with other setting to always show remaining time."; | ||||||
|  |  | ||||||
|  | "DISABLE_ENGAGEMENT_OVERLAY" = "Disable fullscreen engagement overlay"; | ||||||
|  | "DISABLE_ENGAGEMENT_OVERLAY_DESC" = "Disable the swipe-up gesture and suggested videos list in fullscreen"; | ||||||
|  |  | ||||||
| // 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"; | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Bryce Hackel
					Bryce Hackel