From 2aaf7dd4f79138cd594a6eec9867e6272fd64b19 Mon Sep 17 00:00:00 2001 From: arichornlover <78001398+arichorn@users.noreply.github.com> Date: Sun, 15 Oct 2023 18:12:14 -0500 Subject: [PATCH] Show the new Options Updated Settings.xm to make the new options show up. --- Settings.xm | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/Settings.xm b/Settings.xm index ca9bc7f..ada6b49 100644 --- a/Settings.xm +++ b/Settings.xm @@ -1643,6 +1643,16 @@ extern NSBundle *uYouPlusBundle(); } settingItemId:0], + [YTSettingsSectionItemClass switchItemWithTitle:LOC(@"Hide Community Posts") + titleDescription:LOC(@"Hides the Community Posts. App restart is required.") + accessibilityIdentifier:nil + switchOn:IsEnabled(@"hideCommunityPosts_enabled") + switchBlock:^BOOL (YTSettingsCell *cell, BOOL enabled) { + [[NSUserDefaults standardUserDefaults] setBool:enabled forKey:@"hideCommunityPosts_enabled"]; + return YES; + } + settingItemId:0], + [YTSettingsSectionItemClass switchItemWithTitle:LOC(@"Hide Header Links under channel profile") titleDescription:LOC(@"Hides the Header Links under any channel profile.") accessibilityIdentifier:nil @@ -1653,7 +1663,6 @@ extern NSBundle *uYouPlusBundle(); } settingItemId:0], -/* [YTSettingsSectionItemClass switchItemWithTitle:LOC(@"Hide the Download Button under player") titleDescription:LOC(@"Hides the Download Button below the player.") accessibilityIdentifier:nil @@ -1663,7 +1672,6 @@ extern NSBundle *uYouPlusBundle(); return YES; } settingItemId:0], -*/ [YTSettingsSectionItemClass switchItemWithTitle:LOC(@"Hide the comment section under player") titleDescription:LOC(@"Hides the Comment Section below the player.") @@ -1715,6 +1723,16 @@ extern NSBundle *uYouPlusBundle(); } settingItemId:0], + [YTSettingsSectionItemClass switchItemWithTitle:LOC(@"Hide Shorts in Channels") + titleDescription:LOC(@"Hides the Shorts shown in YouTube Channels. App restart is required.") + accessibilityIdentifier:nil + switchOn:IsEnabled(@"hideShortsFromChannel_enabled") + switchBlock:^BOOL (YTSettingsCell *cell, BOOL enabled) { + [[NSUserDefaults standardUserDefaults] setBool:enabled forKey:@"hideShortsFromChannel_enabled"]; + return YES; + } + settingItemId:0], + [YTSettingsSectionItemClass switchItemWithTitle:LOC(@"Hide Subscriptions Notification Badge") titleDescription:LOC(@"Hides the Red Notification Badge shown in the Pivot Bar of the Subscriptions Tab.") accessibilityIdentifier:nil