mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-04-05 04:29:47 +00:00
Merge pull request #816 from therealFoxster/main
Actually remove uYou download button in playlists
This commit is contained in:
commit
0b19ffb845
2 changed files with 10 additions and 4 deletions
4
Header.h
4
Header.h
|
|
@ -45,6 +45,10 @@
|
|||
@property (nonatomic, assign, readwrite) BOOL enableSnapToChapter;
|
||||
@end
|
||||
|
||||
@interface YTPlaylistHeaderViewController: UIViewController
|
||||
@property UIButton *downloadsButton;
|
||||
@end
|
||||
|
||||
// DontEatMyContent
|
||||
BOOL DEMC_deviceIsSupported();
|
||||
void DEMC_activate();
|
||||
|
|
|
|||
10
uYouPlus.xm
10
uYouPlus.xm
|
|
@ -218,10 +218,9 @@ static BOOL didFinishLaunching;
|
|||
// Remove uYou download button in playlists
|
||||
// https://github.com/qnblackcat/uYouPlus/issues/798#issuecomment-1364853420
|
||||
%hook YTPlaylistHeaderViewController
|
||||
- (id)downloadsButton {
|
||||
UIView *button = %orig;
|
||||
button.hidden = true;
|
||||
return button;
|
||||
- (void)viewDidLoad {
|
||||
%orig;
|
||||
self.downloadsButton.hidden = YES;
|
||||
}
|
||||
%end
|
||||
|
||||
|
|
@ -1284,6 +1283,9 @@ UIColor* raisedColor = [UIColor colorWithRed:0.035 green:0.035 blue:0.035 alpha:
|
|||
|
||||
# pragma mark - 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;
|
||||
if (@available(iOS 16, *)) {
|
||||
%init(iOS16);
|
||||
|
|
|
|||
Loading…
Reference in a new issue