Improve the “Hide Buttons under the Video Player”

Nothing is really new about this.
This commit is contained in:
aricloverGitHub (INACTIVE) 2024-12-08 15:21:40 -06:00 committed by GitHub
parent 7c7d504ed0
commit d1d29e3fe3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -70,7 +70,7 @@ static BOOL findCell(ASNodeController *nodeController, NSArray <NSString *> *ide
return YES;
}
if (findCell(child, identifiers)) {
if (findCell((ASNodeController *)child, identifiers)) {
return YES;
}
}
@ -85,6 +85,14 @@ static BOOL findCell(ASNodeController *nodeController, NSArray <NSString *> *ide
ASCellNode *node = [element node];
ASNodeController *nodeController = [node controller];
NSArray *identifiers = @[
@"id.video.share.button",
@"id.video.remix.button",
@"Thanks",
@"clip_button.eml",
@"id.ui.add_to.offline.button"
];
if (IS_ENABLED(@"hideShareButton_enabled") && findCell(nodeController, @[@"id.video.share.button"])) {
return CGSizeZero;
}