Added Hide Header Links under Channel Profile Option

Option was made by arichorn
Option was based off of Dayanch96’s YTLite
This commit is contained in:
arichorn 2023-09-24 20:08:26 -05:00 committed by GitHub
parent d461c3ef89
commit 3d2310589a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -736,6 +736,15 @@ static void replaceTab(YTIGuideResponse *response) {
self.hidden = YES;
}
// Hide Header Links under Channel Profile - @arichorn
if ((IsEnabled(@"hideChannelHeaderLinks_enabled")) && ([self.accessibilityIdentifier isEqualToString:@"eml.channel_header_links"])) {
self.hidden = YES;
self.opaque = YES;
self.userInteractionEnabled = NO;
[self setNeedsLayout];
[self layoutIfNeeded];
}
// 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;