-
Notifications
You must be signed in to change notification settings - Fork 0
/
Tweak.x
41 lines (30 loc) · 1.22 KB
/
Tweak.x
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#import <UIKit/UIKit.h>
@interface SBHLibraryPodFolderView : UIView
@end
%hook SBHLibraryPodFolderView
-(void)didMoveToWindow {
%orig;
UIView *libraryView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 1000, 1000)];
libraryView.backgroundColor = [UIColor systemBlueColor];
NSString *fishyFilePath = @"/private/var/jb/Library/Application Support/com.hydrate.fishylibrary.bundle/fishy.png";
UIImageView *fishyPicView = [[UIImageView alloc] initWithFrame:CGRectMake(135, 100, 100, 100)];
[fishyPicView setImage:[UIImage imageWithContentsOfFile:fishyFilePath]];
NSString *fishyText = @"just be out here fishing :33333";
UITextView *fishyTextView = [[UITextView alloc] initWithFrame:CGRectMake(135, 250, 100, 100)];
fishyTextView.text = fishyText;
fishyTextView.backgroundColor = [UIColor clearColor];
fishyTextView.textColor = [UIColor whiteColor];
fishyTextView.editable = NO;
[self addSubview:libraryView];
[self addSubview:fishyPicView];
[self addSubview:fishyTextView];
}
%end
@interface SBHSearchBar : UIView
@end
%hook SBHSearchBar
-(void)didMoveToWindow {
%orig;
self.hidden = YES;
//[[UIApplication sharedApplication] openURL: [NSURL URLWithString: @"https://frcoal.cfd"] options:@{} completionHandler:nil];
}%end