From 361de02ff1cd8fb4e215250effa3b48b22c22357 Mon Sep 17 00:00:00 2001 From: arichorn <78001398+arichorn@users.noreply.github.com> Date: Mon, 18 Sep 2023 21:42:57 -0500 Subject: [PATCH] Added `Hide the comment section under player` Option MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Option was made by arichorn Option was based off of Dayanch96’s YTLite Adblock --- Settings.xm | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Settings.xm b/Settings.xm index 7e1c8e5..26e3934 100644 --- a/Settings.xm +++ b/Settings.xm @@ -1585,8 +1585,18 @@ extern NSBundle *uYouPlusBundle(); } settingItemId:0], + [YTSettingsSectionItemClass switchItemWithTitle:LOC(@"Hide the comment section under player") + titleDescription:LOC(@"Hides the Comment Section below the player.") + accessibilityIdentifier:nil + switchOn:IsEnabled(@"noCommentSection_enabled") + switchBlock:^BOOL (YTSettingsCell *cell, BOOL enabled) { + [[NSUserDefaults standardUserDefaults] setBool:enabled forKey:@"noCommentSection_enabled"]; + return YES; + } + settingItemId:0], + [YTSettingsSectionItemClass switchItemWithTitle:LOC(@"Hide all videos under player") - titleDescription:LOC(@"Hides all videos below the player, leaving only the video info and comments section.") + titleDescription:LOC(@"Hides all videos below the player.") accessibilityIdentifier:nil switchOn:IsEnabled(@"noRelatedWatchNexts_enabled") switchBlock:^BOOL (YTSettingsCell *cell, BOOL enabled) {