SHOW:
|
|
- or go back to the newest paste.
1 | @interface ASDisplayNode : NSObject <UIAccessibilityIdentification> | |
2 | @property ASDisplayNode *supernode; | |
3 | @end | |
4 | ||
5 | @interface ASTextNode : ASDisplayNode | |
6 | @property NSAttributedString *attributedText; | |
7 | @end | |
8 | ||
9 | %hook ASTextNode | |
10 | - (void)didLoad { | |
11 | %orig; | |
12 | if ([self.supernode.accessibilityIdentifier isEqualToString:@"eml.timestamp"]) | |
13 | self.attributedText = [[NSMutableAttributedString alloc] | |
14 | initWithString:@"Hello World!" | |
15 | attributes:@{ | |
16 | NSForegroundColorAttributeName : [UIColor whiteColor], | |
17 | NSFontAttributeName : [UIFont systemFontOfSize:14] | |
18 | }]; | |
19 | } | |
20 | %end | |
21 | ||
22 | // https://www.reddit.com/r/jailbreakdevelopers/comments/tnu8dc/question_i_need_help_creating_a_youtube_tweak/ | |
23 |