From 6cb24ab1c80acde1026902812cdd582e897db25c Mon Sep 17 00:00:00 2001 From: arichorn <78001398+arichorn@users.noreply.github.com> Date: Tue, 1 Aug 2023 21:45:52 -0500 Subject: [PATCH] New Options for 16.42.3 --- Settings.xm | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/Settings.xm b/Settings.xm index 8774e5e..ba2ad33 100644 --- a/Settings.xm +++ b/Settings.xm @@ -124,6 +124,26 @@ extern NSBundle *uYouPlusBundle(); # pragma mark - Video Controls Overlay Options YTSettingsSectionItem *videoControlOverlayGroup = [YTSettingsSectionItemClass itemWithTitle:LOC(@"VIDEO_CONTROLS_OVERLAY_OPTIONS") accessibilityIdentifier:nil detailTextBlock:nil selectBlock:^BOOL (YTSettingsCell *cell, NSUInteger arg1) { NSArray *rows = @[ + [YTSettingsSectionItemClass switchItemWithTitle:LOC(@"Enable Share Button") + titleDescription:LOC(@"Enable the Share Button in video controls overlay.") + accessibilityIdentifier:nil + switchOn:IsEnabled(@"enableShareButton_enabled") + switchBlock:^BOOL (YTSettingsCell *cell, BOOL enabled) { + [[NSUserDefaults standardUserDefaults] setBool:enabled forKey:@"enableShareButton_enabled"]; + return YES; + } + settingItemId:0], + + [YTSettingsSectionItemClass switchItemWithTitle:LOC(@"Enable 'Save To Playlist' Button") + titleDescription:LOC(@"Enable the 'Save To Playlist' Button in video controls overlay.") + accessibilityIdentifier:nil + switchOn:IsEnabled(@"enableSaveToButton_enabled") + switchBlock:^BOOL (YTSettingsCell *cell, BOOL enabled) { + [[NSUserDefaults standardUserDefaults] setBool:enabled forKey:@"enableSaveToButton_enabled"]; + return YES; + } + settingItemId:0], + [YTSettingsSectionItemClass switchItemWithTitle:LOC(@"HIDE_AUTOPLAY_SWITCH") titleDescription:LOC(@"HIDE_AUTOPLAY_SWITCH_DESC") accessibilityIdentifier:nil