Added Hide the Download Button under player Option

Option was made by arichorn
Option was based off of MiRO92’s uYou Tweak
This commit is contained in:
arichorn 2023-09-20 18:47:24 -05:00 committed by GitHub
parent 413cb22444
commit bc1a3fd1af
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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