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
+1
View File
@@ -195,6 +195,7 @@ extern NSBundle *uYouPlusBundle();
SECTION_HEADER(LOC(@"MISCELLANEOUS"));
SWITCH_ITEM2(LOC(@"HIDE_UYOU"), nil, @"hideUYouTab_enabled");
SWITCH_ITEM2(LOC(@"HIDE_ISPONSORBLOCK"), nil, @"hideiSponsorBlockButton_enabled");
SWITCH_ITEM(LOC(@"CAST_CONFIRM"), LOC(@"CAST_CONFIRM_DESC"), @"castConfirm_enabled");
SWITCH_ITEM(LOC(@"DISABLE_HINTS"), LOC(@"DISABLE_HINTS_DESC"), @"disableHints_enabled");
SWITCH_ITEM(LOC(@"ENABLE_YT_STARTUP_ANIMATION"), LOC(@"ENABLE_YT_STARTUP_ANIMATION_DESC"), @"ytStartupAnimation_enabled");