mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-04-20 15:02:08 +00:00
Fix hide iSponsorBlock option
This commit is contained in:
parent
7b0098cff5
commit
af082215e2
2 changed files with 8 additions and 3 deletions
|
|
@ -28,6 +28,11 @@
|
|||
- (void)confirmAlertDidPressConfirm;
|
||||
@end
|
||||
|
||||
// Hide iSponsorBlock
|
||||
@interface YTRightNavigationButtons : UIView
|
||||
@property (nonatomic, readwrite, strong) UIView *sponsorBlockButton;
|
||||
@end
|
||||
|
||||
// Hide YouTube annoying banner in Home page? - @MiRO92 - YTNoShorts: https://github.com/MiRO92/YTNoShorts
|
||||
@interface _ASCollectionViewCell : UICollectionViewCell
|
||||
- (id)node;
|
||||
|
|
|
|||
|
|
@ -157,10 +157,10 @@ NSBundle *tweakBundle = uYouPlusBundle();
|
|||
|
||||
// Hide iSponsorBlock
|
||||
%hook YTRightNavigationButtons
|
||||
- (void)setSponsorBlockButton:(id)sponsorBlockButton {
|
||||
if (IS_ENABLED(@"hideiSponsorBlockButton_enabled"))
|
||||
return;
|
||||
- (void)layoutSubviews {
|
||||
%orig;
|
||||
if (IS_ENABLED(@"hideiSponsorBlockButton_enabled"))
|
||||
self.sponsorBlockButton.hidden = YES;
|
||||
}
|
||||
%end
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue