Hide the youtuber overlay background on iOS
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
1.9KB

  1. #line 1 "Tweak.xm"
  2. #import "Tweak.h"
  3. #include <substrate.h>
  4. #if defined(__clang__)
  5. #if __has_feature(objc_arc)
  6. #define _LOGOS_SELF_TYPE_NORMAL __unsafe_unretained
  7. #define _LOGOS_SELF_TYPE_INIT __attribute__((ns_consumed))
  8. #define _LOGOS_SELF_CONST const
  9. #define _LOGOS_RETURN_RETAINED __attribute__((ns_returns_retained))
  10. #else
  11. #define _LOGOS_SELF_TYPE_NORMAL
  12. #define _LOGOS_SELF_TYPE_INIT
  13. #define _LOGOS_SELF_CONST
  14. #define _LOGOS_RETURN_RETAINED
  15. #endif
  16. #else
  17. #define _LOGOS_SELF_TYPE_NORMAL
  18. #define _LOGOS_SELF_TYPE_INIT
  19. #define _LOGOS_SELF_CONST
  20. #define _LOGOS_RETURN_RETAINED
  21. #endif
  22. @class YTMainAppVideoPlayerOverlayView;
  23. static void (*_logos_orig$_ungrouped$YTMainAppVideoPlayerOverlayView$setControlsOverlayVisible$)(_LOGOS_SELF_TYPE_NORMAL YTMainAppVideoPlayerOverlayView* _LOGOS_SELF_CONST, SEL, BOOL); static void _logos_method$_ungrouped$YTMainAppVideoPlayerOverlayView$setControlsOverlayVisible$(_LOGOS_SELF_TYPE_NORMAL YTMainAppVideoPlayerOverlayView* _LOGOS_SELF_CONST, SEL, BOOL);
  24. #line 10 "Tweak.xm"
  25. static void _logos_method$_ungrouped$YTMainAppVideoPlayerOverlayView$setControlsOverlayVisible$(_LOGOS_SELF_TYPE_NORMAL YTMainAppVideoPlayerOverlayView* _LOGOS_SELF_CONST __unused self, SEL __unused _cmd, BOOL arg1) {
  26. UIView * background = (UIView *) [self backgroundView];
  27. [background setAlpha:(CGFloat)0];
  28. _logos_orig$_ungrouped$YTMainAppVideoPlayerOverlayView$setControlsOverlayVisible$(self, _cmd, arg1);
  29. }
  30. static __attribute__((constructor)) void _logosLocalInit() {
  31. {Class _logos_class$_ungrouped$YTMainAppVideoPlayerOverlayView = objc_getClass("YTMainAppVideoPlayerOverlayView"); MSHookMessageEx(_logos_class$_ungrouped$YTMainAppVideoPlayerOverlayView, @selector(setControlsOverlayVisible:), (IMP)&_logos_method$_ungrouped$YTMainAppVideoPlayerOverlayView$setControlsOverlayVisible$, (IMP*)&_logos_orig$_ungrouped$YTMainAppVideoPlayerOverlayView$setControlsOverlayVisible$);} }
  32. #line 17 "Tweak.xm"