From bc1a3fd1af2742fe5c11f1e85846c842cd19479c Mon Sep 17 00:00:00 2001 From: arichorn <78001398+arichorn@users.noreply.github.com> Date: Wed, 20 Sep 2023 18:47:24 -0500 Subject: [PATCH] Added `Hide the Download Button 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 MiRO92’s uYou Tweak --- Settings.xm | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Settings.xm b/Settings.xm index 6d054c8..bb5cc48 100644 --- a/Settings.xm +++ b/Settings.xm @@ -1641,6 +1641,16 @@ 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 + switchOn:IsEnabled(@"hideAddToOfflineButton_enabled") + switchBlock:^BOOL (YTSettingsCell *cell, BOOL enabled) { + [[NSUserDefaults standardUserDefaults] setBool:enabled forKey:@"hideAddToOfflineButton_enabled"]; + return YES; + } + settingItemId:0], + [YTSettingsSectionItemClass switchItemWithTitle:LOC(@"Hide the comment section under player") titleDescription:LOC(@"Hides the Comment Section below the player.") accessibilityIdentifier:nil