Merge pull request #816 from therealFoxster/main
Actually remove uYou download button in playlists
This commit is contained in:
@@ -45,6 +45,10 @@
|
|||||||
@property (nonatomic, assign, readwrite) BOOL enableSnapToChapter;
|
@property (nonatomic, assign, readwrite) BOOL enableSnapToChapter;
|
||||||
@end
|
@end
|
||||||
|
|
||||||
|
@interface YTPlaylistHeaderViewController: UIViewController
|
||||||
|
@property UIButton *downloadsButton;
|
||||||
|
@end
|
||||||
|
|
||||||
// DontEatMyContent
|
// DontEatMyContent
|
||||||
BOOL DEMC_deviceIsSupported();
|
BOOL DEMC_deviceIsSupported();
|
||||||
void DEMC_activate();
|
void DEMC_activate();
|
||||||
|
|||||||
+6
-4
@@ -218,10 +218,9 @@ static BOOL didFinishLaunching;
|
|||||||
// Remove uYou download button in playlists
|
// Remove uYou download button in playlists
|
||||||
// https://github.com/qnblackcat/uYouPlus/issues/798#issuecomment-1364853420
|
// https://github.com/qnblackcat/uYouPlus/issues/798#issuecomment-1364853420
|
||||||
%hook YTPlaylistHeaderViewController
|
%hook YTPlaylistHeaderViewController
|
||||||
- (id)downloadsButton {
|
- (void)viewDidLoad {
|
||||||
UIView *button = %orig;
|
%orig;
|
||||||
button.hidden = true;
|
self.downloadsButton.hidden = YES;
|
||||||
return button;
|
|
||||||
}
|
}
|
||||||
%end
|
%end
|
||||||
|
|
||||||
@@ -1284,6 +1283,9 @@ UIColor* raisedColor = [UIColor colorWithRed:0.035 green:0.035 blue:0.035 alpha:
|
|||||||
|
|
||||||
# pragma mark - ctor
|
# pragma mark - ctor
|
||||||
%ctor {
|
%ctor {
|
||||||
|
// Load uYou first so its functions are available for hooks.
|
||||||
|
dlopen([[NSString stringWithFormat:@"%@/Frameworks/uYou.dylib", [[NSBundle mainBundle] bundlePath]] UTF8String], RTLD_LAZY);
|
||||||
|
|
||||||
%init;
|
%init;
|
||||||
if (@available(iOS 16, *)) {
|
if (@available(iOS 16, *)) {
|
||||||
%init(iOS16);
|
%init(iOS16);
|
||||||
|
|||||||
Reference in New Issue
Block a user