From 413cb22444f0e662ddbc8b969196c95f05ac7170 Mon Sep 17 00:00:00 2001 From: arichorn <78001398+arichorn@users.noreply.github.com> Date: Wed, 20 Sep 2023 18:44:24 -0500 Subject: [PATCH] Another Option https://github.com/qnblackcat/uYouPlus/issues/145 a new option based off of uYou's old `Hide Download Button` option. this will only work on YouTube Versions that have the New Interface. --- uYouPlus.xm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/uYouPlus.xm b/uYouPlus.xm index 39ed3a8..579467e 100644 --- a/uYouPlus.xm +++ b/uYouPlus.xm @@ -738,6 +738,12 @@ static void replaceTab(YTIGuideResponse *response) { if ((IsEnabled(@"hideBuySuperThanks_enabled")) && ([self.accessibilityIdentifier isEqualToString:@"id.elements.components.suggested_action"])) { self.hidden = YES; } + +// Hide the Download Button under the Video Player - @arichorn + if ((IsEnabled(@"hideAddToOfflineButton_enabled")) && ([self.accessibilityIdentifier isEqualToString:@"id.ui.add_to_offline.button"])) { + self.hidden = YES; + } + // Hide the Comment Section under the Video Player - @arichorn if ((IsEnabled(@"hideCommentSection_enabled")) && ([self.accessibilityIdentifier isEqualToString:@"id.ui.comments_entry_point_teaser"] || [self.accessibilityIdentifier isEqualToString:@"id.ui.comments_entry_point_simplebox"] || [self.accessibilityIdentifier isEqualToString:@"id.ui.video_metadata_carousel"] || [self.accessibilityIdentifier isEqualToString:@"id.ui.carousel_header"])) { self.hidden = YES;