From fb8749017b272d43894ac48d059281bccebd0eee Mon Sep 17 00:00:00 2001 From: arichorn <78001398+arichorn@users.noreply.github.com> Date: Tue, 11 Jul 2023 11:50:01 -0500 Subject: [PATCH] Update Settings.xm --- Settings.xm | 36 +++++++++++++++++++++++------------- 1 file changed, 23 insertions(+), 13 deletions(-) diff --git a/Settings.xm b/Settings.xm index 865e4e3..30dcf00 100644 --- a/Settings.xm +++ b/Settings.xm @@ -65,12 +65,12 @@ extern NSBundle *uYouPlusBundle(); # pragma mark - VideoPlayer YTSettingsSectionItem *videoPlayerGroup = [YTSettingsSectionItemClass itemWithTitle:LOC(@"VIDEO_PLAYER_OPTIONS") accessibilityIdentifier:nil detailTextBlock:nil selectBlock:^BOOL (YTSettingsCell *cell, NSUInteger arg1) { NSArray *rows = @[ - [YTSettingsSectionItemClass switchItemWithTitle:LOC(@"Disable tap to skip") - titleDescription:LOC(@"Disable tap to skip functions in the video player. App restart is required.") + [YTSettingsSectionItemClass switchItemWithTitle:LOC(@"DISABLE_DOUBLE_TAP_TO_SEEK") + titleDescription:LOC(@"DISABLE_DOUBLE_TAP_TO_SEEK_DESC") accessibilityIdentifier:nil switchOn:IsEnabled(@"tapToSkip_enabled") switchBlock:^BOOL (YTSettingsCell *cell, BOOL enabled) { - [[NSUserDefaults standardUserDefaults] setBool:enabled forKey:@"tapToSkip_enabled"]; + [[NSUserDefaults standardUserDefaults] setBool:enabled forKey:@"disableDoubleTapToSkip_enabled"]; return YES; } settingItemId:0], @@ -1386,6 +1386,16 @@ extern NSBundle *uYouPlusBundle(); } settingItemId:0], + [YTSettingsSectionItemClass switchItemWithTitle:LOC(@"Hide uYou Tab") + titleDescription:LOC(@"When Enabled it will hide the uYou Tab added by MiRO92's uYou Tweak. App restart is required.") + accessibilityIdentifier:nil + switchOn:IsEnabled(@"hideuYouTab_enabled") + switchBlock:^BOOL (YTSettingsCell *cell, BOOL enabled) { + [[NSUserDefaults standardUserDefaults] setBool:enabled forKey:@"hideuYouTab_enabled"]; + return YES; + } + settingItemId:0], + [YTSettingsSectionItemClass switchItemWithTitle:LOC(@"Hide YouTube Logo") titleDescription:LOC(@"Toggle this to hide the YouTube Logo in the YouTube App.") accessibilityIdentifier:nil @@ -1406,16 +1416,6 @@ extern NSBundle *uYouPlusBundle(); } settingItemId:0], - [YTSettingsSectionItemClass switchItemWithTitle:LOC(@"HIDE_CHIP_BAR") - titleDescription:LOC(@"HIDE_CHIP_BAR_DESC") - accessibilityIdentifier:nil - switchOn:IsEnabled(@"hideChipBar_enabled") - switchBlock:^BOOL (YTSettingsCell *cell, BOOL enabled) { - [[NSUserDefaults standardUserDefaults] setBool:enabled forKey:@"hideChipBar_enabled"]; - return YES; - } - settingItemId:0], - [YTSettingsSectionItemClass switchItemWithTitle:LOC(@"Hide iSponsorBlock button in the Navigation bar") titleDescription:LOC(@"") accessibilityIdentifier:nil @@ -1425,6 +1425,16 @@ extern NSBundle *uYouPlusBundle(); return YES; } settingItemId:0], + + [YTSettingsSectionItemClass switchItemWithTitle:LOC(@"HIDE_CHIP_BAR") + titleDescription:LOC(@"HIDE_CHIP_BAR_DESC") + accessibilityIdentifier:nil + switchOn:IsEnabled(@"hideChipBar_enabled") + switchBlock:^BOOL (YTSettingsCell *cell, BOOL enabled) { + [[NSUserDefaults standardUserDefaults] setBool:enabled forKey:@"hideChipBar_enabled"]; + return YES; + } + settingItemId:0], [YTSettingsSectionItemClass switchItemWithTitle:LOC(@"IPHONE_LAYOUT") titleDescription:LOC(@"IPHONE_LAYOUT_DESC")