#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
