Shim.xm 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. %hook SCORHelper
  2. - (BOOL)deviceIsJailBroken
  3. {
  4. %log;
  5. return NO;
  6. }
  7. %end
  8. %hook UIScrollView
  9. %new
  10. -(void)setContentInsetAdjustmentBehavior:(int)value {
  11. NSLog(@"netfixed bitch");
  12. return;
  13. }
  14. %new
  15. -(NSInteger)contentInsetAdjustmentBehavior {
  16. NSLog(@"netfixed bitch");
  17. return 0;
  18. }
  19. %end
  20. %hook UICollectionView
  21. %new
  22. -(void)setContentInsetAdjustmentBehavior:(int)value {
  23. NSLog(@"netfixed bitch");
  24. return;
  25. }
  26. %new
  27. -(NSInteger)contentInsetAdjustmentBehavior {
  28. NSLog(@"netfixed bitch");
  29. return 0;
  30. }
  31. %end
  32. %hook UIView
  33. %new - (BOOL)insetsLayoutMarginsFromSafeArea {
  34. log;
  35. return NO;
  36. }
  37. %new - (void)setInsetsLayoutMarginsFromSafeArea:(BOOL)value
  38. {
  39. %log;
  40. }
  41. %end
  42. %hook UIFocusAnimationCoordinator
  43. //-[UIFocusAnimationCoordinator addCoordinatedUnfocusingAnimations:completion:]:
  44. %new - (void)addCoordinatedUnfocusingAnimations:(id)animations
  45. completion:(id)completion
  46. {
  47. %log;
  48. }
  49. %end
  50. %hook UITableView
  51. //[UITableView setInsetsContentViewsToSafeArea:]:
  52. %new - (void)setInsetsContentViewsToSafeArea:(BOOL)value
  53. {
  54. %log;
  55. }
  56. %new - (BOOL)insetsContentViewsToSafeArea
  57. {
  58. %log;
  59. return NO;
  60. }
  61. %end
  62. //hulu
  63. //#import <CoreGraphics/CoreGraphics.h>
  64. //#import <UIKit/UIKit.h>
  65. %hook UIStackView
  66. // -[UIStackView setCustomSpacing:afterView:]:
  67. %new
  68. - (void)setCustomSpacing:(int)spacing afterView:(id)arrangedSubview
  69. {
  70. %log;
  71. return;
  72. }
  73. %end
  74. %hook NSDictionary
  75. %new
  76. - (NSDictionary *)initWithContentsOfURL:(NSURL *)url error:(NSError **)error
  77. {
  78. //hull open crash fix
  79. %log;
  80. return [[NSDictionary alloc] initWithContentsOfURL:url];
  81. }
  82. %end
  83. //all the ones in here are for prime
  84. %hook AVPlayerViewController
  85. %new
  86. - (void)setPlaybackControlsIncludeInfoViews:(BOOL)value
  87. {
  88. %log;
  89. NSLog(@"im going from ashy, to classy");
  90. }
  91. %new
  92. - (BOOL)playbackControlsIncludeInfoViews
  93. {
  94. return NO;
  95. }
  96. %new
  97. - (void)setPlaybackControlsIncludeTransportBar:(BOOL)value
  98. {
  99. %log;
  100. NSLog(@"optimus prime bitch");
  101. }
  102. %new
  103. - (BOOL)playbackControlsIncludeTransportBar
  104. {
  105. %log;
  106. return NO;
  107. }
  108. %end