Fix hide iSponsorBlock option
This commit is contained in:
@@ -28,6 +28,11 @@
|
|||||||
- (void)confirmAlertDidPressConfirm;
|
- (void)confirmAlertDidPressConfirm;
|
||||||
@end
|
@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
|
// Hide YouTube annoying banner in Home page? - @MiRO92 - YTNoShorts: https://github.com/MiRO92/YTNoShorts
|
||||||
@interface _ASCollectionViewCell : UICollectionViewCell
|
@interface _ASCollectionViewCell : UICollectionViewCell
|
||||||
- (id)node;
|
- (id)node;
|
||||||
|
|||||||
+3
-3
@@ -157,10 +157,10 @@ NSBundle *tweakBundle = uYouPlusBundle();
|
|||||||
|
|
||||||
// Hide iSponsorBlock
|
// Hide iSponsorBlock
|
||||||
%hook YTRightNavigationButtons
|
%hook YTRightNavigationButtons
|
||||||
- (void)setSponsorBlockButton:(id)sponsorBlockButton {
|
- (void)layoutSubviews {
|
||||||
if (IS_ENABLED(@"hideiSponsorBlockButton_enabled"))
|
|
||||||
return;
|
|
||||||
%orig;
|
%orig;
|
||||||
|
if (IS_ENABLED(@"hideiSponsorBlockButton_enabled"))
|
||||||
|
self.sponsorBlockButton.hidden = YES;
|
||||||
}
|
}
|
||||||
%end
|
%end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user