mirror of
				https://github.com/SoPat712/YTLitePlus.git
				synced 2025-10-30 20:34:04 -04:00 
			
		
		
		
	Update YTLitePlus.xm
This commit is contained in:
		| @@ -38,6 +38,9 @@ static BOOL IsEnabled(NSString *key) { | |||||||
|     return [[NSUserDefaults standardUserDefaults] boolForKey:key]; |     return [[NSUserDefaults standardUserDefaults] boolForKey:key]; | ||||||
| } | } | ||||||
|  |  | ||||||
|  | # pragma mark - Tweaks | ||||||
|  |  | ||||||
|  | // Activate FLEX | ||||||
| %hook YTAppDelegate | %hook YTAppDelegate | ||||||
| - (BOOL)application:(UIApplication *)application | - (BOOL)application:(UIApplication *)application | ||||||
|     didFinishLaunchingWithOptions:(NSDictionary<UIApplicationLaunchOptionsKey, id> *)launchOptions { |     didFinishLaunchingWithOptions:(NSDictionary<UIApplicationLaunchOptionsKey, id> *)launchOptions { | ||||||
| @@ -57,7 +60,13 @@ static BOOL IsEnabled(NSString *key) { | |||||||
| } | } | ||||||
| %end | %end | ||||||
|  |  | ||||||
| # pragma mark - Tweaks | // Enable Alternate Icons | ||||||
|  | %hook UIApplication | ||||||
|  | - (BOOL)supportsAlternateIcons { | ||||||
|  |     return YES; | ||||||
|  | } | ||||||
|  | %end | ||||||
|  |  | ||||||
| // Skips content warning before playing *some videos - @PoomSmart | // Skips content warning before playing *some videos - @PoomSmart | ||||||
| %hook YTPlayabilityResolutionUserActionUIController | %hook YTPlayabilityResolutionUserActionUIController | ||||||
| - (void)showConfirmAlert { [self confirmAlertDidPressConfirm]; } | - (void)showConfirmAlert { [self confirmAlertDidPressConfirm]; } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 arichornlover
					arichornlover