mirror of
https://github.com/YTLitePlus/YTLitePlus.git
synced 2026-01-11 22:40:20 +00:00
Update YTLitePlus.xm
This commit is contained in:
parent
b949b1c17b
commit
90169017cd
1 changed files with 10 additions and 1 deletions
|
|
@ -38,6 +38,9 @@ static BOOL IsEnabled(NSString *key) {
|
|||
return [[NSUserDefaults standardUserDefaults] boolForKey:key];
|
||||
}
|
||||
|
||||
# pragma mark - Tweaks
|
||||
|
||||
// Activate FLEX
|
||||
%hook YTAppDelegate
|
||||
- (BOOL)application:(UIApplication *)application
|
||||
didFinishLaunchingWithOptions:(NSDictionary<UIApplicationLaunchOptionsKey, id> *)launchOptions {
|
||||
|
|
@ -57,7 +60,13 @@ static BOOL IsEnabled(NSString *key) {
|
|||
}
|
||||
%end
|
||||
|
||||
# pragma mark - Tweaks
|
||||
// Enable Alternate Icons
|
||||
%hook UIApplication
|
||||
- (BOOL)supportsAlternateIcons {
|
||||
return YES;
|
||||
}
|
||||
%end
|
||||
|
||||
// Skips content warning before playing *some videos - @PoomSmart
|
||||
%hook YTPlayabilityResolutionUserActionUIController
|
||||
- (void)showConfirmAlert { [self confirmAlertDidPressConfirm]; }
|
||||
|
|
|
|||
Loading…
Reference in a new issue