mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-05-20 21:22:46 +00:00
Merge pull request #1328 from therealFoxster/hide-isponsorblock-button
Update hide iSponsorBlock button
This commit is contained in:
commit
3d24576558
1 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue