Skip to content

Commit

Permalink
Merge pull request #1328 from therealFoxster/hide-isponsorblock-button
Browse files Browse the repository at this point in the history
Update hide iSponsorBlock button
  • Loading branch information
therealFoxster authored Feb 26, 2024
2 parents 4c34416 + f732fa3 commit 3d24576
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Sources/uYouPlus.xm
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,10 @@ NSBundle *tweakBundle = uYouPlusBundle();
%hook YTRightNavigationButtons
- (void)didMoveToWindow {
%orig;
if (IS_ENABLED(@"hideiSponsorBlockButton_enabled"))
if (IS_ENABLED(@"hideiSponsorBlockButton_enabled")) {
self.sponsorBlockButton.hidden = YES;
self.sponsorBlockButton.frame = CGRectZero;
}
}
%end

Expand Down

0 comments on commit 3d24576

Please sign in to comment.