mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-01-11 22:40:19 +00:00
Improve the “Hide Buttons under the Video Player”
Nothing is really new about this.
This commit is contained in:
parent
7c7d504ed0
commit
d1d29e3fe3
1 changed files with 9 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue