Update uYouPlus.xm

This commit is contained in:
arichornlover 2024-04-06 19:44:26 -05:00 committed by GitHub
parent 4875974037
commit 44c56c3fdb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -560,12 +560,14 @@ BOOL isAd(YTIElementRenderer *self) {
%end
%hook YTFullscreenActionsView
- (BOOL)enabled {
// Attempt 2
return IS_ENABLED(@"hideFullscreenActions_enabled") ? NO : %orig;
// Attempt 2
return IS_ENABLED(@"hideFullscreenActions_enabled") ? NO : %orig;
}
- (void)removeFromSuperview {
%orig;
// Attempt 3
if (IS_ENABLED(@"hideFullscreenActions_enabled")) {
[super removeFromSuperview];
[self removeFromSuperview];
}
}
%end