mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-03-11 21:26:04 +00:00
Remove Duplicated Method
I forgot that the `Shorts Subscriptions Option` was in here. so I just decided to move the Hide Comment Section code to the option above to avoid the duplication error.
This commit is contained in:
parent
b91e6d1d6d
commit
732fa3a4d5
1 changed files with 4 additions and 10 deletions
14
uYouPlus.xm
14
uYouPlus.xm
|
|
@ -738,6 +738,10 @@ static void replaceTab(YTIGuideResponse *response) {
|
|||
if ((IsEnabled(@"hideBuySuperThanks_enabled")) && ([self.accessibilityIdentifier isEqualToString:@"id.elements.components.suggested_action"])) {
|
||||
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;
|
||||
}
|
||||
}
|
||||
%end
|
||||
|
||||
|
|
@ -932,16 +936,6 @@ static void replaceTab(YTIGuideResponse *response) {
|
|||
}
|
||||
%end
|
||||
|
||||
// Hide the Comment Section under the Video Player - @arichorn
|
||||
%hook _ASDisplayView
|
||||
- (void)didMoveToWindow {
|
||||
%orig;
|
||||
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;
|
||||
}
|
||||
}
|
||||
%end
|
||||
|
||||
// Hide the Videos under the Video Player - @Dayanch96
|
||||
%group gNoRelatedWatchNexts
|
||||
%hook YTWatchNextResultsViewController
|
||||
|
|
|
|||
Loading…
Reference in a new issue