Fix hide iSponsorBlock option

This commit is contained in:
Foxster committed 2024-01-26 20:01:47 -08:00
1 parent 7b0098cff5
commit af082215e2
2 files changed
+8 -3

No files matched your search

+3 -3
View File
@@ -157,10 +157,10 @@ NSBundle *tweakBundle = uYouPlusBundle();
// Hide iSponsorBlock
%hook YTRightNavigationButtons
- (void)setSponsorBlockButton:(id)sponsorBlockButton {
if (IS_ENABLED(@"hideiSponsorBlockButton_enabled"))
return;
- (void)layoutSubviews {
%orig;
if (IS_ENABLED(@"hideiSponsorBlockButton_enabled"))
self.sponsorBlockButton.hidden = YES;
}
%end