123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184 |
- #import <UIKit/UIKit.h>
- %hook SCORHelper
- + (BOOL)deviceIsJailBroken
- {
- %log;
- return NO;
- }
- %end
- %hook UIImageView
- %new - (id)overlayContentView
- {
- %log;
- UIView *theView = [UIView new];
- [self addSubview:theView];
- return theView;
- //return nil;
- }
- %end
- %hook UIScrollView
- %new
- -(void)setContentInsetAdjustmentBehavior:(int)value {
- HBLogInfo(@"netfixed bitch");
- NSLog(@"netfixed bitch");
- return;
- }
- %new
- -(NSInteger)contentInsetAdjustmentBehavior {
- NSLog(@"netfixed bitch");
- HBLogInfo(@"netfixed bitch");
- return 0;
- }
- %end
- %hook UICollectionView
- %new
- -(void)setContentInsetAdjustmentBehavior:(int)value {
- NSLog(@"netfixed bitch");
- HBLogInfo(@"netfixed bitch");
- return;
- }
- %new
- -(NSInteger)contentInsetAdjustmentBehavior {
- NSLog(@"netfixed bitch");
- HBLogInfo(@"netfixed bitch");
- return 0;
- }
- %end
- %hook UITextField
- -(void)setTextContentType:(id)arg1 {
-
- %log;
- @try {
- %orig;
- } @catch (NSException *exception) {
-
- HBLogInfo(@"exception: %@", exception);
- }
-
- }
- %end
- %hook UIView
- %new - (BOOL)insetsLayoutMarginsFromSafeArea {
- %log;
- return NO;
- }
- %new - (void)setInsetsLayoutMarginsFromSafeArea:(BOOL)value
- {
- %log;
- }
- %end
- %hook UIFocusAnimationCoordinator
- //-[UIFocusAnimationCoordinator addCoordinatedUnfocusingAnimations:completion:]:
- %new - (void)addCoordinatedUnfocusingAnimations:(id)animations
- completion:(id)completion
- {
- %log;
-
- }
- %end
- %hook UITableView
- //[UITableView setInsetsContentViewsToSafeArea:]:
- %new - (void)setInsetsContentViewsToSafeArea:(BOOL)value
- {
- %log;
- }
- %new - (BOOL)insetsContentViewsToSafeArea
- {
- %log;
- return NO;
- }
- %end
- //hulu
- //#import <CoreGraphics/CoreGraphics.h>
- //#import <UIKit/UIKit.h>
- %hook UIStackView
- // -[UIStackView setCustomSpacing:afterView:]:
- %new
- - (void)setCustomSpacing:(int)spacing afterView:(id)arrangedSubview
- {
- %log;
- return;
-
- }
- %end
- %hook NSDictionary
- %new
- - (NSDictionary *)initWithContentsOfURL:(NSURL *)url error:(NSError **)error
- {
- //hull open crash fix
- %log;
- return [[NSDictionary alloc] initWithContentsOfURL:url];
- }
- %end
- //all the ones in here are for prime
- %hook AVPlayerViewController
- %new
- - (void)setPlaybackControlsIncludeInfoViews:(BOOL)value
- {
- %log;
- NSLog(@"im going from ashy, to classy");
- }
- %new
- - (BOOL)playbackControlsIncludeInfoViews
- {
- return NO;
- }
- %new
- - (void)setPlaybackControlsIncludeTransportBar:(BOOL)value
- {
- %log;
- NSLog(@"optimus prime bitch");
- }
- %new
- - (BOOL)playbackControlsIncludeTransportBar
- {
- %log;
- return NO;
- }
- %end
|