Add option to hide iSponsorBlock

This commit is contained in:
Foxster
2024-01-26 19:26:57 -08:00
parent e1591c2c89
commit 7b0098cff5
24 changed files with 32 additions and 0 deletions
+9
View File
@@ -155,6 +155,15 @@ NSBundle *tweakBundle = uYouPlusBundle();
# pragma mark - Miscellaneous
// Hide iSponsorBlock
%hook YTRightNavigationButtons
- (void)setSponsorBlockButton:(id)sponsorBlockButton {
if (IS_ENABLED(@"hideiSponsorBlockButton_enabled"))
return;
%orig;
}
%end
// YTCastConfirm
// See YTCastConfirm.xm