Merge pull request #1328 from therealFoxster/hide-isponsorblock-button

Update hide iSponsorBlock button
This commit is contained in:
Foxster
2024-02-26 13:02:45 -08:00
committed by GitHub
+3 -1
View File
@@ -173,8 +173,10 @@ NSBundle *tweakBundle = uYouPlusBundle();
%hook YTRightNavigationButtons %hook YTRightNavigationButtons
- (void)didMoveToWindow { - (void)didMoveToWindow {
%orig; %orig;
if (IS_ENABLED(@"hideiSponsorBlockButton_enabled")) if (IS_ENABLED(@"hideiSponsorBlockButton_enabled")) {
self.sponsorBlockButton.hidden = YES; self.sponsorBlockButton.hidden = YES;
self.sponsorBlockButton.frame = CGRectZero;
}
} }
%end %end