commit 6ecc4aff1c6111799e567010dce2c01a21cdc16f Author: Jamie Berghmans Date: Sun Dec 8 01:23:05 2019 +0100 Initial commit diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..995eee0 Binary files /dev/null and b/.DS_Store differ diff --git a/.theos/_/DEBIAN/control b/.theos/_/DEBIAN/control new file mode 100644 index 0000000..8255931 --- /dev/null +++ b/.theos/_/DEBIAN/control @@ -0,0 +1,10 @@ +Package: com.devvix.hideytoverlay +Name: HideYTOverlay +Depends: mobilesubstrate +Architecture: iphoneos-arm +Description: Hide the background behind the YouTube overlay! +Maintainer: Devvix +Author: Devvix +Section: Tweaks +Version: 1.0.0-3+debug +Installed-Size: 200 diff --git a/.theos/_/Library/MobileSubstrate/DynamicLibraries/HideYTOverlay.dylib b/.theos/_/Library/MobileSubstrate/DynamicLibraries/HideYTOverlay.dylib new file mode 100755 index 0000000..96a61ff Binary files /dev/null and b/.theos/_/Library/MobileSubstrate/DynamicLibraries/HideYTOverlay.dylib differ diff --git a/.theos/_/Library/MobileSubstrate/DynamicLibraries/HideYTOverlay.plist b/.theos/_/Library/MobileSubstrate/DynamicLibraries/HideYTOverlay.plist new file mode 100644 index 0000000..fb2904e --- /dev/null +++ b/.theos/_/Library/MobileSubstrate/DynamicLibraries/HideYTOverlay.plist @@ -0,0 +1 @@ +{ Filter = { Bundles = ( "com.google.ios.youtube" ); }; } diff --git a/.theos/build_session b/.theos/build_session new file mode 100644 index 0000000..e69de29 diff --git a/.theos/fakeroot b/.theos/fakeroot new file mode 100644 index 0000000..e69de29 diff --git a/.theos/last_package b/.theos/last_package new file mode 100644 index 0000000..75252e4 --- /dev/null +++ b/.theos/last_package @@ -0,0 +1 @@ +./packages/com.devvix.hideytoverlay_1.0.0-3+debug_iphoneos-arm.deb diff --git a/.theos/obj/.stamp b/.theos/obj/.stamp new file mode 100644 index 0000000..e69de29 diff --git a/.theos/obj/HideYTOverlay.dylib b/.theos/obj/HideYTOverlay.dylib new file mode 100755 index 0000000..3c9c497 Binary files /dev/null and b/.theos/obj/HideYTOverlay.dylib differ diff --git a/.theos/obj/arm64/HideYTOverlay.dylib b/.theos/obj/arm64/HideYTOverlay.dylib new file mode 100755 index 0000000..2876b85 Binary files /dev/null and b/.theos/obj/arm64/HideYTOverlay.dylib differ diff --git a/.theos/obj/arm64/HideYTOverlay.dylib.dSYM/Contents/Info.plist b/.theos/obj/arm64/HideYTOverlay.dylib.dSYM/Contents/Info.plist new file mode 100644 index 0000000..bfd83f6 --- /dev/null +++ b/.theos/obj/arm64/HideYTOverlay.dylib.dSYM/Contents/Info.plist @@ -0,0 +1,20 @@ + + + + + CFBundleDevelopmentRegion + English + CFBundleIdentifier + com.apple.xcode.dsym.HideYTOverlay.dylib + CFBundleInfoDictionaryVersion + 6.0 + CFBundlePackageType + dSYM + CFBundleSignature + ???? + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + + diff --git a/.theos/obj/arm64/HideYTOverlay.dylib.dSYM/Contents/Resources/DWARF/HideYTOverlay.dylib b/.theos/obj/arm64/HideYTOverlay.dylib.dSYM/Contents/Resources/DWARF/HideYTOverlay.dylib new file mode 100644 index 0000000..ca97208 Binary files /dev/null and b/.theos/obj/arm64/HideYTOverlay.dylib.dSYM/Contents/Resources/DWARF/HideYTOverlay.dylib differ diff --git a/.theos/obj/arm64/Tweak.xm.4ff4ecce.Td b/.theos/obj/arm64/Tweak.xm.4ff4ecce.Td new file mode 100644 index 0000000..9004ddc --- /dev/null +++ b/.theos/obj/arm64/Tweak.xm.4ff4ecce.Td @@ -0,0 +1,23 @@ +/Users/jamieberghmans/theos-projects/hideytoverlay/.theos/obj/arm64/Tweak.xm.4ff4ecce.o: \ + /Users/jamieberghmans/theos-projects/hideytoverlay/.theos/obj/arm64/Tweak.xm.mm \ + /Users/jamieberghmans/theos/Prefix.pch \ + /Users/jamieberghmans/theos/vendor/include/_Prefix/BackwardsCompat.h \ + /Users/jamieberghmans/theos/vendor/include/_Prefix/IOSMacros.h \ + /Users/jamieberghmans/theos/vendor/include/HBLog.h \ + /Users/jamieberghmans/theos/vendor/include/CoreFoundation/CFLogUtilities.h \ + /Users/jamieberghmans/theos-projects/hideytoverlay/Tweak.h \ + /Users/jamieberghmans/theos/include/substrate.h + +/Users/jamieberghmans/theos/Prefix.pch: + +/Users/jamieberghmans/theos/vendor/include/_Prefix/BackwardsCompat.h: + +/Users/jamieberghmans/theos/vendor/include/_Prefix/IOSMacros.h: + +/Users/jamieberghmans/theos/vendor/include/HBLog.h: + +/Users/jamieberghmans/theos/vendor/include/CoreFoundation/CFLogUtilities.h: + +/Users/jamieberghmans/theos-projects/hideytoverlay/Tweak.h: + +/Users/jamieberghmans/theos/include/substrate.h: diff --git a/.theos/obj/arm64/Tweak.xm.4ff4ecce.o b/.theos/obj/arm64/Tweak.xm.4ff4ecce.o new file mode 100644 index 0000000..4f9133c Binary files /dev/null and b/.theos/obj/arm64/Tweak.xm.4ff4ecce.o differ diff --git a/.theos/obj/arm64e/HideYTOverlay.dylib b/.theos/obj/arm64e/HideYTOverlay.dylib new file mode 100755 index 0000000..8af37d1 Binary files /dev/null and b/.theos/obj/arm64e/HideYTOverlay.dylib differ diff --git a/.theos/obj/arm64e/HideYTOverlay.dylib.dSYM/Contents/Info.plist b/.theos/obj/arm64e/HideYTOverlay.dylib.dSYM/Contents/Info.plist new file mode 100644 index 0000000..bfd83f6 --- /dev/null +++ b/.theos/obj/arm64e/HideYTOverlay.dylib.dSYM/Contents/Info.plist @@ -0,0 +1,20 @@ + + + + + CFBundleDevelopmentRegion + English + CFBundleIdentifier + com.apple.xcode.dsym.HideYTOverlay.dylib + CFBundleInfoDictionaryVersion + 6.0 + CFBundlePackageType + dSYM + CFBundleSignature + ???? + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + + diff --git a/.theos/obj/arm64e/HideYTOverlay.dylib.dSYM/Contents/Resources/DWARF/HideYTOverlay.dylib b/.theos/obj/arm64e/HideYTOverlay.dylib.dSYM/Contents/Resources/DWARF/HideYTOverlay.dylib new file mode 100644 index 0000000..1bf3e03 Binary files /dev/null and b/.theos/obj/arm64e/HideYTOverlay.dylib.dSYM/Contents/Resources/DWARF/HideYTOverlay.dylib differ diff --git a/.theos/obj/arm64e/Tweak.xm.af39814f.Td b/.theos/obj/arm64e/Tweak.xm.af39814f.Td new file mode 100644 index 0000000..894242e --- /dev/null +++ b/.theos/obj/arm64e/Tweak.xm.af39814f.Td @@ -0,0 +1,23 @@ +/Users/jamieberghmans/theos-projects/hideytoverlay/.theos/obj/arm64e/Tweak.xm.af39814f.o: \ + /Users/jamieberghmans/theos-projects/hideytoverlay/.theos/obj/arm64e/Tweak.xm.mm \ + /Users/jamieberghmans/theos/Prefix.pch \ + /Users/jamieberghmans/theos/vendor/include/_Prefix/BackwardsCompat.h \ + /Users/jamieberghmans/theos/vendor/include/_Prefix/IOSMacros.h \ + /Users/jamieberghmans/theos/vendor/include/HBLog.h \ + /Users/jamieberghmans/theos/vendor/include/CoreFoundation/CFLogUtilities.h \ + /Users/jamieberghmans/theos-projects/hideytoverlay/Tweak.h \ + /Users/jamieberghmans/theos/include/substrate.h + +/Users/jamieberghmans/theos/Prefix.pch: + +/Users/jamieberghmans/theos/vendor/include/_Prefix/BackwardsCompat.h: + +/Users/jamieberghmans/theos/vendor/include/_Prefix/IOSMacros.h: + +/Users/jamieberghmans/theos/vendor/include/HBLog.h: + +/Users/jamieberghmans/theos/vendor/include/CoreFoundation/CFLogUtilities.h: + +/Users/jamieberghmans/theos-projects/hideytoverlay/Tweak.h: + +/Users/jamieberghmans/theos/include/substrate.h: diff --git a/.theos/obj/arm64e/Tweak.xm.af39814f.o b/.theos/obj/arm64e/Tweak.xm.af39814f.o new file mode 100644 index 0000000..4b0da32 Binary files /dev/null and b/.theos/obj/arm64e/Tweak.xm.af39814f.o differ diff --git a/.theos/obj/armv7/HideYTOverlay.dylib b/.theos/obj/armv7/HideYTOverlay.dylib new file mode 100755 index 0000000..52a0dd8 Binary files /dev/null and b/.theos/obj/armv7/HideYTOverlay.dylib differ diff --git a/.theos/obj/armv7/HideYTOverlay.dylib.dSYM/Contents/Info.plist b/.theos/obj/armv7/HideYTOverlay.dylib.dSYM/Contents/Info.plist new file mode 100644 index 0000000..bfd83f6 --- /dev/null +++ b/.theos/obj/armv7/HideYTOverlay.dylib.dSYM/Contents/Info.plist @@ -0,0 +1,20 @@ + + + + + CFBundleDevelopmentRegion + English + CFBundleIdentifier + com.apple.xcode.dsym.HideYTOverlay.dylib + CFBundleInfoDictionaryVersion + 6.0 + CFBundlePackageType + dSYM + CFBundleSignature + ???? + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + + diff --git a/.theos/obj/armv7/HideYTOverlay.dylib.dSYM/Contents/Resources/DWARF/HideYTOverlay.dylib b/.theos/obj/armv7/HideYTOverlay.dylib.dSYM/Contents/Resources/DWARF/HideYTOverlay.dylib new file mode 100644 index 0000000..dc7a867 Binary files /dev/null and b/.theos/obj/armv7/HideYTOverlay.dylib.dSYM/Contents/Resources/DWARF/HideYTOverlay.dylib differ diff --git a/.theos/obj/armv7/Tweak.xm.44682a10.Td b/.theos/obj/armv7/Tweak.xm.44682a10.Td new file mode 100644 index 0000000..6eaa499 --- /dev/null +++ b/.theos/obj/armv7/Tweak.xm.44682a10.Td @@ -0,0 +1,23 @@ +/Users/jamieberghmans/theos-projects/hideytoverlay/.theos/obj/armv7/Tweak.xm.44682a10.o: \ + /Users/jamieberghmans/theos-projects/hideytoverlay/.theos/obj/armv7/Tweak.xm.mm \ + /Users/jamieberghmans/theos/Prefix.pch \ + /Users/jamieberghmans/theos/vendor/include/_Prefix/BackwardsCompat.h \ + /Users/jamieberghmans/theos/vendor/include/_Prefix/IOSMacros.h \ + /Users/jamieberghmans/theos/vendor/include/HBLog.h \ + /Users/jamieberghmans/theos/vendor/include/CoreFoundation/CFLogUtilities.h \ + /Users/jamieberghmans/theos-projects/hideytoverlay/Tweak.h \ + /Users/jamieberghmans/theos/include/substrate.h + +/Users/jamieberghmans/theos/Prefix.pch: + +/Users/jamieberghmans/theos/vendor/include/_Prefix/BackwardsCompat.h: + +/Users/jamieberghmans/theos/vendor/include/_Prefix/IOSMacros.h: + +/Users/jamieberghmans/theos/vendor/include/HBLog.h: + +/Users/jamieberghmans/theos/vendor/include/CoreFoundation/CFLogUtilities.h: + +/Users/jamieberghmans/theos-projects/hideytoverlay/Tweak.h: + +/Users/jamieberghmans/theos/include/substrate.h: diff --git a/.theos/obj/armv7/Tweak.xm.44682a10.o b/.theos/obj/armv7/Tweak.xm.44682a10.o new file mode 100644 index 0000000..2aed084 Binary files /dev/null and b/.theos/obj/armv7/Tweak.xm.44682a10.o differ diff --git a/.theos/obj/debug/.stamp b/.theos/obj/debug/.stamp new file mode 100644 index 0000000..e69de29 diff --git a/.theos/obj/debug/HideYTOverlay.dylib b/.theos/obj/debug/HideYTOverlay.dylib new file mode 100755 index 0000000..96a61ff Binary files /dev/null and b/.theos/obj/debug/HideYTOverlay.dylib differ diff --git a/.theos/obj/debug/arm64/HideYTOverlay.dylib b/.theos/obj/debug/arm64/HideYTOverlay.dylib new file mode 100755 index 0000000..f200817 Binary files /dev/null and b/.theos/obj/debug/arm64/HideYTOverlay.dylib differ diff --git a/.theos/obj/debug/arm64/HideYTOverlay.dylib.dSYM/Contents/Info.plist b/.theos/obj/debug/arm64/HideYTOverlay.dylib.dSYM/Contents/Info.plist new file mode 100644 index 0000000..bfd83f6 --- /dev/null +++ b/.theos/obj/debug/arm64/HideYTOverlay.dylib.dSYM/Contents/Info.plist @@ -0,0 +1,20 @@ + + + + + CFBundleDevelopmentRegion + English + CFBundleIdentifier + com.apple.xcode.dsym.HideYTOverlay.dylib + CFBundleInfoDictionaryVersion + 6.0 + CFBundlePackageType + dSYM + CFBundleSignature + ???? + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + + diff --git a/.theos/obj/debug/arm64/HideYTOverlay.dylib.dSYM/Contents/Resources/DWARF/HideYTOverlay.dylib b/.theos/obj/debug/arm64/HideYTOverlay.dylib.dSYM/Contents/Resources/DWARF/HideYTOverlay.dylib new file mode 100644 index 0000000..f9d9348 Binary files /dev/null and b/.theos/obj/debug/arm64/HideYTOverlay.dylib.dSYM/Contents/Resources/DWARF/HideYTOverlay.dylib differ diff --git a/.theos/obj/debug/arm64/Tweak.xm.9bc2e148.Td b/.theos/obj/debug/arm64/Tweak.xm.9bc2e148.Td new file mode 100644 index 0000000..4c875dc --- /dev/null +++ b/.theos/obj/debug/arm64/Tweak.xm.9bc2e148.Td @@ -0,0 +1,23 @@ +/Users/jamieberghmans/theos-projects/hideytoverlay/.theos/obj/debug/arm64/Tweak.xm.9bc2e148.o: \ + /Users/jamieberghmans/theos-projects/hideytoverlay/.theos/obj/debug/arm64/Tweak.xm.mm \ + /Users/jamieberghmans/theos/Prefix.pch \ + /Users/jamieberghmans/theos/vendor/include/_Prefix/BackwardsCompat.h \ + /Users/jamieberghmans/theos/vendor/include/_Prefix/IOSMacros.h \ + /Users/jamieberghmans/theos/vendor/include/HBLog.h \ + /Users/jamieberghmans/theos/vendor/include/CoreFoundation/CFLogUtilities.h \ + /Users/jamieberghmans/theos-projects/hideytoverlay/Tweak.h \ + /Users/jamieberghmans/theos/include/substrate.h + +/Users/jamieberghmans/theos/Prefix.pch: + +/Users/jamieberghmans/theos/vendor/include/_Prefix/BackwardsCompat.h: + +/Users/jamieberghmans/theos/vendor/include/_Prefix/IOSMacros.h: + +/Users/jamieberghmans/theos/vendor/include/HBLog.h: + +/Users/jamieberghmans/theos/vendor/include/CoreFoundation/CFLogUtilities.h: + +/Users/jamieberghmans/theos-projects/hideytoverlay/Tweak.h: + +/Users/jamieberghmans/theos/include/substrate.h: diff --git a/.theos/obj/debug/arm64/Tweak.xm.9bc2e148.o b/.theos/obj/debug/arm64/Tweak.xm.9bc2e148.o new file mode 100644 index 0000000..27a5dcc Binary files /dev/null and b/.theos/obj/debug/arm64/Tweak.xm.9bc2e148.o differ diff --git a/.theos/obj/debug/arm64/Tweak.xm.mm b/.theos/obj/debug/arm64/Tweak.xm.mm new file mode 100644 index 0000000..b11e359 --- /dev/null +++ b/.theos/obj/debug/arm64/Tweak.xm.mm @@ -0,0 +1,45 @@ +#line 1 "Tweak.xm" + + + + + + + +#import "Tweak.h" + + +#include +#if defined(__clang__) +#if __has_feature(objc_arc) +#define _LOGOS_SELF_TYPE_NORMAL __unsafe_unretained +#define _LOGOS_SELF_TYPE_INIT __attribute__((ns_consumed)) +#define _LOGOS_SELF_CONST const +#define _LOGOS_RETURN_RETAINED __attribute__((ns_returns_retained)) +#else +#define _LOGOS_SELF_TYPE_NORMAL +#define _LOGOS_SELF_TYPE_INIT +#define _LOGOS_SELF_CONST +#define _LOGOS_RETURN_RETAINED +#endif +#else +#define _LOGOS_SELF_TYPE_NORMAL +#define _LOGOS_SELF_TYPE_INIT +#define _LOGOS_SELF_CONST +#define _LOGOS_RETURN_RETAINED +#endif + +@class YTMainAppVideoPlayerOverlayView; +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); + +#line 10 "Tweak.xm" + +static void _logos_method$_ungrouped$YTMainAppVideoPlayerOverlayView$setControlsOverlayVisible$(_LOGOS_SELF_TYPE_NORMAL YTMainAppVideoPlayerOverlayView* _LOGOS_SELF_CONST __unused self, SEL __unused _cmd, BOOL arg1) { + UIView * background = (UIView *) [self backgroundView]; + [background setAlpha:(CGFloat)0]; + _logos_orig$_ungrouped$YTMainAppVideoPlayerOverlayView$setControlsOverlayVisible$(self, _cmd, arg1); +} + +static __attribute__((constructor)) void _logosLocalInit() { +{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$);} } +#line 17 "Tweak.xm" diff --git a/.theos/obj/debug/arm64e/HideYTOverlay.dylib b/.theos/obj/debug/arm64e/HideYTOverlay.dylib new file mode 100755 index 0000000..7fe1dff Binary files /dev/null and b/.theos/obj/debug/arm64e/HideYTOverlay.dylib differ diff --git a/.theos/obj/debug/arm64e/HideYTOverlay.dylib.dSYM/Contents/Info.plist b/.theos/obj/debug/arm64e/HideYTOverlay.dylib.dSYM/Contents/Info.plist new file mode 100644 index 0000000..bfd83f6 --- /dev/null +++ b/.theos/obj/debug/arm64e/HideYTOverlay.dylib.dSYM/Contents/Info.plist @@ -0,0 +1,20 @@ + + + + + CFBundleDevelopmentRegion + English + CFBundleIdentifier + com.apple.xcode.dsym.HideYTOverlay.dylib + CFBundleInfoDictionaryVersion + 6.0 + CFBundlePackageType + dSYM + CFBundleSignature + ???? + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + + diff --git a/.theos/obj/debug/arm64e/HideYTOverlay.dylib.dSYM/Contents/Resources/DWARF/HideYTOverlay.dylib b/.theos/obj/debug/arm64e/HideYTOverlay.dylib.dSYM/Contents/Resources/DWARF/HideYTOverlay.dylib new file mode 100644 index 0000000..ca29063 Binary files /dev/null and b/.theos/obj/debug/arm64e/HideYTOverlay.dylib.dSYM/Contents/Resources/DWARF/HideYTOverlay.dylib differ diff --git a/.theos/obj/debug/arm64e/Tweak.xm.aa9d1243.Td b/.theos/obj/debug/arm64e/Tweak.xm.aa9d1243.Td new file mode 100644 index 0000000..cd0addb --- /dev/null +++ b/.theos/obj/debug/arm64e/Tweak.xm.aa9d1243.Td @@ -0,0 +1,23 @@ +/Users/jamieberghmans/theos-projects/hideytoverlay/.theos/obj/debug/arm64e/Tweak.xm.aa9d1243.o: \ + /Users/jamieberghmans/theos-projects/hideytoverlay/.theos/obj/debug/arm64e/Tweak.xm.mm \ + /Users/jamieberghmans/theos/Prefix.pch \ + /Users/jamieberghmans/theos/vendor/include/_Prefix/BackwardsCompat.h \ + /Users/jamieberghmans/theos/vendor/include/_Prefix/IOSMacros.h \ + /Users/jamieberghmans/theos/vendor/include/HBLog.h \ + /Users/jamieberghmans/theos/vendor/include/CoreFoundation/CFLogUtilities.h \ + /Users/jamieberghmans/theos-projects/hideytoverlay/Tweak.h \ + /Users/jamieberghmans/theos/include/substrate.h + +/Users/jamieberghmans/theos/Prefix.pch: + +/Users/jamieberghmans/theos/vendor/include/_Prefix/BackwardsCompat.h: + +/Users/jamieberghmans/theos/vendor/include/_Prefix/IOSMacros.h: + +/Users/jamieberghmans/theos/vendor/include/HBLog.h: + +/Users/jamieberghmans/theos/vendor/include/CoreFoundation/CFLogUtilities.h: + +/Users/jamieberghmans/theos-projects/hideytoverlay/Tweak.h: + +/Users/jamieberghmans/theos/include/substrate.h: diff --git a/.theos/obj/debug/arm64e/Tweak.xm.aa9d1243.o b/.theos/obj/debug/arm64e/Tweak.xm.aa9d1243.o new file mode 100644 index 0000000..8466e0c Binary files /dev/null and b/.theos/obj/debug/arm64e/Tweak.xm.aa9d1243.o differ diff --git a/.theos/obj/debug/arm64e/Tweak.xm.mm b/.theos/obj/debug/arm64e/Tweak.xm.mm new file mode 100644 index 0000000..b11e359 --- /dev/null +++ b/.theos/obj/debug/arm64e/Tweak.xm.mm @@ -0,0 +1,45 @@ +#line 1 "Tweak.xm" + + + + + + + +#import "Tweak.h" + + +#include +#if defined(__clang__) +#if __has_feature(objc_arc) +#define _LOGOS_SELF_TYPE_NORMAL __unsafe_unretained +#define _LOGOS_SELF_TYPE_INIT __attribute__((ns_consumed)) +#define _LOGOS_SELF_CONST const +#define _LOGOS_RETURN_RETAINED __attribute__((ns_returns_retained)) +#else +#define _LOGOS_SELF_TYPE_NORMAL +#define _LOGOS_SELF_TYPE_INIT +#define _LOGOS_SELF_CONST +#define _LOGOS_RETURN_RETAINED +#endif +#else +#define _LOGOS_SELF_TYPE_NORMAL +#define _LOGOS_SELF_TYPE_INIT +#define _LOGOS_SELF_CONST +#define _LOGOS_RETURN_RETAINED +#endif + +@class YTMainAppVideoPlayerOverlayView; +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); + +#line 10 "Tweak.xm" + +static void _logos_method$_ungrouped$YTMainAppVideoPlayerOverlayView$setControlsOverlayVisible$(_LOGOS_SELF_TYPE_NORMAL YTMainAppVideoPlayerOverlayView* _LOGOS_SELF_CONST __unused self, SEL __unused _cmd, BOOL arg1) { + UIView * background = (UIView *) [self backgroundView]; + [background setAlpha:(CGFloat)0]; + _logos_orig$_ungrouped$YTMainAppVideoPlayerOverlayView$setControlsOverlayVisible$(self, _cmd, arg1); +} + +static __attribute__((constructor)) void _logosLocalInit() { +{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$);} } +#line 17 "Tweak.xm" diff --git a/.theos/obj/debug/armv7/HideYTOverlay.dylib b/.theos/obj/debug/armv7/HideYTOverlay.dylib new file mode 100755 index 0000000..3dc01ad Binary files /dev/null and b/.theos/obj/debug/armv7/HideYTOverlay.dylib differ diff --git a/.theos/obj/debug/armv7/HideYTOverlay.dylib.dSYM/Contents/Info.plist b/.theos/obj/debug/armv7/HideYTOverlay.dylib.dSYM/Contents/Info.plist new file mode 100644 index 0000000..bfd83f6 --- /dev/null +++ b/.theos/obj/debug/armv7/HideYTOverlay.dylib.dSYM/Contents/Info.plist @@ -0,0 +1,20 @@ + + + + + CFBundleDevelopmentRegion + English + CFBundleIdentifier + com.apple.xcode.dsym.HideYTOverlay.dylib + CFBundleInfoDictionaryVersion + 6.0 + CFBundlePackageType + dSYM + CFBundleSignature + ???? + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + + diff --git a/.theos/obj/debug/armv7/HideYTOverlay.dylib.dSYM/Contents/Resources/DWARF/HideYTOverlay.dylib b/.theos/obj/debug/armv7/HideYTOverlay.dylib.dSYM/Contents/Resources/DWARF/HideYTOverlay.dylib new file mode 100644 index 0000000..b1edf54 Binary files /dev/null and b/.theos/obj/debug/armv7/HideYTOverlay.dylib.dSYM/Contents/Resources/DWARF/HideYTOverlay.dylib differ diff --git a/.theos/obj/debug/armv7/Tweak.xm.e873fb03.Td b/.theos/obj/debug/armv7/Tweak.xm.e873fb03.Td new file mode 100644 index 0000000..24158fc --- /dev/null +++ b/.theos/obj/debug/armv7/Tweak.xm.e873fb03.Td @@ -0,0 +1,23 @@ +/Users/jamieberghmans/theos-projects/hideytoverlay/.theos/obj/debug/armv7/Tweak.xm.e873fb03.o: \ + /Users/jamieberghmans/theos-projects/hideytoverlay/.theos/obj/debug/armv7/Tweak.xm.mm \ + /Users/jamieberghmans/theos/Prefix.pch \ + /Users/jamieberghmans/theos/vendor/include/_Prefix/BackwardsCompat.h \ + /Users/jamieberghmans/theos/vendor/include/_Prefix/IOSMacros.h \ + /Users/jamieberghmans/theos/vendor/include/HBLog.h \ + /Users/jamieberghmans/theos/vendor/include/CoreFoundation/CFLogUtilities.h \ + /Users/jamieberghmans/theos-projects/hideytoverlay/Tweak.h \ + /Users/jamieberghmans/theos/include/substrate.h + +/Users/jamieberghmans/theos/Prefix.pch: + +/Users/jamieberghmans/theos/vendor/include/_Prefix/BackwardsCompat.h: + +/Users/jamieberghmans/theos/vendor/include/_Prefix/IOSMacros.h: + +/Users/jamieberghmans/theos/vendor/include/HBLog.h: + +/Users/jamieberghmans/theos/vendor/include/CoreFoundation/CFLogUtilities.h: + +/Users/jamieberghmans/theos-projects/hideytoverlay/Tweak.h: + +/Users/jamieberghmans/theos/include/substrate.h: diff --git a/.theos/obj/debug/armv7/Tweak.xm.e873fb03.o b/.theos/obj/debug/armv7/Tweak.xm.e873fb03.o new file mode 100644 index 0000000..dd0862b Binary files /dev/null and b/.theos/obj/debug/armv7/Tweak.xm.e873fb03.o differ diff --git a/.theos/obj/debug/armv7/Tweak.xm.mm b/.theos/obj/debug/armv7/Tweak.xm.mm new file mode 100644 index 0000000..b11e359 --- /dev/null +++ b/.theos/obj/debug/armv7/Tweak.xm.mm @@ -0,0 +1,45 @@ +#line 1 "Tweak.xm" + + + + + + + +#import "Tweak.h" + + +#include +#if defined(__clang__) +#if __has_feature(objc_arc) +#define _LOGOS_SELF_TYPE_NORMAL __unsafe_unretained +#define _LOGOS_SELF_TYPE_INIT __attribute__((ns_consumed)) +#define _LOGOS_SELF_CONST const +#define _LOGOS_RETURN_RETAINED __attribute__((ns_returns_retained)) +#else +#define _LOGOS_SELF_TYPE_NORMAL +#define _LOGOS_SELF_TYPE_INIT +#define _LOGOS_SELF_CONST +#define _LOGOS_RETURN_RETAINED +#endif +#else +#define _LOGOS_SELF_TYPE_NORMAL +#define _LOGOS_SELF_TYPE_INIT +#define _LOGOS_SELF_CONST +#define _LOGOS_RETURN_RETAINED +#endif + +@class YTMainAppVideoPlayerOverlayView; +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); + +#line 10 "Tweak.xm" + +static void _logos_method$_ungrouped$YTMainAppVideoPlayerOverlayView$setControlsOverlayVisible$(_LOGOS_SELF_TYPE_NORMAL YTMainAppVideoPlayerOverlayView* _LOGOS_SELF_CONST __unused self, SEL __unused _cmd, BOOL arg1) { + UIView * background = (UIView *) [self backgroundView]; + [background setAlpha:(CGFloat)0]; + _logos_orig$_ungrouped$YTMainAppVideoPlayerOverlayView$setControlsOverlayVisible$(self, _cmd, arg1); +} + +static __attribute__((constructor)) void _logosLocalInit() { +{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$);} } +#line 17 "Tweak.xm" diff --git a/.theos/packages/com.devvix.hideytoverlay-0.0.1 b/.theos/packages/com.devvix.hideytoverlay-0.0.1 new file mode 100644 index 0000000..9d60796 --- /dev/null +++ b/.theos/packages/com.devvix.hideytoverlay-0.0.1 @@ -0,0 +1 @@ +11 \ No newline at end of file diff --git a/.theos/packages/com.devvix.hideytoverlay-1.0.0 b/.theos/packages/com.devvix.hideytoverlay-1.0.0 new file mode 100644 index 0000000..e440e5c --- /dev/null +++ b/.theos/packages/com.devvix.hideytoverlay-1.0.0 @@ -0,0 +1 @@ +3 \ No newline at end of file diff --git a/HideYTOverlay.plist b/HideYTOverlay.plist new file mode 100644 index 0000000..fb2904e --- /dev/null +++ b/HideYTOverlay.plist @@ -0,0 +1 @@ +{ Filter = { Bundles = ( "com.google.ios.youtube" ); }; } diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..ddd6d07 --- /dev/null +++ b/Makefile @@ -0,0 +1,9 @@ +include $(THEOS)/makefiles/common.mk + +TWEAK_NAME = HideYTOverlay +HideYTOverlay_FILES = Tweak.xm + +include $(THEOS_MAKE_PATH)/tweak.mk + +after-install:: + install.exec "killall -9 YouTube" diff --git a/Tweak.h b/Tweak.h new file mode 100644 index 0000000..098af3a --- /dev/null +++ b/Tweak.h @@ -0,0 +1,9 @@ +// +// Header file, shows all methods, classes, property's, and ivars hooked +// Only 1 class, 1 property, and 1 method needed here +// + +@interface YTMainAppVideoPlayerOverlayView //The class hooked +@property (nonatomic, retain) UIView * backgroundView; //The property from the actual class needed +-(void)setControlsOverlayVisible:(BOOL)arg1; //The method hooked +@end \ No newline at end of file diff --git a/Tweak.xm b/Tweak.xm new file mode 100644 index 0000000..3a09850 --- /dev/null +++ b/Tweak.xm @@ -0,0 +1,25 @@ +// +// Implementation file, shows all methods, classes, property's, and ivars implemented in code +// + +//Linking the header file. +//It is possible to put all the headers in here, +//but that will get real messy real soon on a bigger tweak. +#import "Tweak.h" + +%hook YTMainAppVideoPlayerOverlayView //The class I am hooking. +-(void)setControlsOverlayVisible:(BOOL)arg1 { //The method I am hooking. + + //Obtaining the background from property's. + //You could leave this method out but it helps with readability + //because the original header is in another file. + //The reason I'm doing this every single time and not only + //one per view initialization is because I noticed that + //youtube resets this value sometimes so this is just in case. + UIView * background = (UIView *) [self backgroundView]; + + [background setAlpha:(CGFloat)0]; //Calling the method to set the alpha to 0 + %orig(arg1); //Invoking the original setControlsOverlayVisible method with the original value +} +%end + diff --git a/control b/control new file mode 100644 index 0000000..ab28c43 --- /dev/null +++ b/control @@ -0,0 +1,9 @@ +Package: com.devvix.hideytoverlay +Name: HideYTOverlay +Depends: mobilesubstrate +Version: 1.0.0 +Architecture: iphoneos-arm +Description: Hide the background behind the YouTube overlay! +Maintainer: Devvix +Author: Devvix +Section: Tweaks diff --git a/packages/.DS_Store b/packages/.DS_Store new file mode 100644 index 0000000..2617f7a Binary files /dev/null and b/packages/.DS_Store differ diff --git a/packages/HideYTOverlay.deb b/packages/HideYTOverlay.deb new file mode 100644 index 0000000..15e5a3c Binary files /dev/null and b/packages/HideYTOverlay.deb differ diff --git a/packages/com.devvix.hideytoverlay_1.0.0-1+debug_iphoneos-arm.deb b/packages/com.devvix.hideytoverlay_1.0.0-1+debug_iphoneos-arm.deb new file mode 100644 index 0000000..61f994e Binary files /dev/null and b/packages/com.devvix.hideytoverlay_1.0.0-1+debug_iphoneos-arm.deb differ diff --git a/packages/com.devvix.hideytoverlay_1.0.0-2+debug_iphoneos-arm.deb b/packages/com.devvix.hideytoverlay_1.0.0-2+debug_iphoneos-arm.deb new file mode 100644 index 0000000..28343ee Binary files /dev/null and b/packages/com.devvix.hideytoverlay_1.0.0-2+debug_iphoneos-arm.deb differ diff --git a/packages/com.devvix.hideytoverlay_1.0.0-3+debug_iphoneos-arm.deb b/packages/com.devvix.hideytoverlay_1.0.0-3+debug_iphoneos-arm.deb new file mode 100644 index 0000000..fe98d5b Binary files /dev/null and b/packages/com.devvix.hideytoverlay_1.0.0-3+debug_iphoneos-arm.deb differ