From 7b5e4fa6a137325650e3030ee340dbcf0faa94bb Mon Sep 17 00:00:00 2001 From: arichornlover <78001398+arichorn@users.noreply.github.com> Date: Sat, 25 Nov 2023 16:38:27 -0600 Subject: [PATCH] 3 New Options You can now hide the buttons `Thanks, Clip & Save to playlist` under the video player! --- Settings.xm | 38 ++++++++++++++++++++++++++++++++++---- 1 file changed, 34 insertions(+), 4 deletions(-) diff --git a/Settings.xm b/Settings.xm index a73a971..7c78eb8 100644 --- a/Settings.xm +++ b/Settings.xm @@ -352,6 +352,26 @@ extern NSBundle *uYouPlusBundle(); # pragma mark - Video Player Buttons YTSettingsSectionItem *videoPlayerButtonsGroup = [YTSettingsSectionItemClass itemWithTitle:LOC(@"Video Player Buttons Options") accessibilityIdentifier:nil detailTextBlock:nil selectBlock:^BOOL (YTSettingsCell *cell, NSUInteger arg1) { NSArray *rows = @[ + [YTSettingsSectionItemClass switchItemWithTitle:LOC(@"Hide the Remix Button under player") + titleDescription:LOC(@"Hides the Remix Button under the video player.") + accessibilityIdentifier:nil + switchOn:IsEnabled(@"hideRemixButton_enabled") + switchBlock:^BOOL (YTSettingsCell *cell, BOOL enabled) { + [[NSUserDefaults standardUserDefaults] setBool:enabled forKey:@"hideRemixButton_enabled"]; + return YES; + } + settingItemId:0], + + [YTSettingsSectionItemClass switchItemWithTitle:LOC(@"Hide the Thanks Button under player") + titleDescription:LOC(@"Hides the Thanks Button under the video player.") + accessibilityIdentifier:nil + switchOn:IsEnabled(@"hideThanksButton_enabled") + switchBlock:^BOOL (YTSettingsCell *cell, BOOL enabled) { + [[NSUserDefaults standardUserDefaults] setBool:enabled forKey:@"hideThanksButton_enabled"]; + return YES; + } + settingItemId:0], + [YTSettingsSectionItemClass switchItemWithTitle:LOC(@"Hide the Download Button under player") titleDescription:LOC(@"Hides the Download Button under the video player.") accessibilityIdentifier:nil @@ -362,12 +382,22 @@ extern NSBundle *uYouPlusBundle(); } settingItemId:0], - [YTSettingsSectionItemClass switchItemWithTitle:LOC(@"Hide the Remix Button under player") - titleDescription:LOC(@"Hides the Remix Button under the video player.") + [YTSettingsSectionItemClass switchItemWithTitle:LOC(@"Hide the Clip Button under player") + titleDescription:LOC(@"Hides the Clip Button under the video player.") accessibilityIdentifier:nil - switchOn:IsEnabled(@"hideRemixButton_enabled") + switchOn:IsEnabled(@"hideClipButton_enabled") switchBlock:^BOOL (YTSettingsCell *cell, BOOL enabled) { - [[NSUserDefaults standardUserDefaults] setBool:enabled forKey:@"hideRemixButton_enabled"]; + [[NSUserDefaults standardUserDefaults] setBool:enabled forKey:@"hideClipButton_enabled"]; + return YES; + } + settingItemId:0], + + [YTSettingsSectionItemClass switchItemWithTitle:LOC(@"Hide the Save to playlist Button under player") + titleDescription:LOC(@"Hides the Save to playlist Button under the video player.") + accessibilityIdentifier:nil + switchOn:IsEnabled(@"hideSaveToPlaylistButton_enabled") + switchBlock:^BOOL (YTSettingsCell *cell, BOOL enabled) { + [[NSUserDefaults standardUserDefaults] setBool:enabled forKey:@"hideSaveToPlaylistButton_enabled"]; return YES; } settingItemId:0],