diff --git a/.github/workflows/buildapp.yml b/.github/workflows/buildapp.yml index e9fc975..e5cc603 100644 --- a/.github/workflows/buildapp.yml +++ b/.github/workflows/buildapp.yml @@ -129,8 +129,9 @@ jobs: id: build_package run: | cd ${{ github.workspace }}/main - sed -i '' "27s#.*#BUNDLE_ID = ${{ env.BUNDLE_ID }}#g" Makefile - sed -i '' "26s#.*#DISPLAY_NAME = ${{ env.APP_NAME }}#g" Makefile + sed -i '' "27s#.*#BUNDLE_ID = ${{ env.BUNDLE_ID }}#g" Makefile # Modify the bundle ID + sed -i '' "26s#.*#DISPLAY_NAME = ${{ env.APP_NAME }}#g" Makefile # Modify the app name + sed -i '' "1s#.*#export TARGET = iphone:clang:${{ inputs.sdk_version }}:14.0#g" Makefile # Modify the SDK version make package THEOS_PACKAGE_SCHEME=rootless IPA=Payload/YouTube.app FINALPACKAGE=1 echo "package=$(ls -t packages | head -n1)" >>$GITHUB_OUTPUT echo -e "==> \033[1mSHASUM256: $(shasum -a 256 packages/*.ipa | cut -f1 -d' ')\033[0m" diff --git a/Sources/uYouPlus.xm b/Sources/uYouPlus.xm index 0879beb..d81c284 100644 --- a/Sources/uYouPlus.xm +++ b/Sources/uYouPlus.xm @@ -507,6 +507,22 @@ BOOL isAd(YTIElementRenderer *self) { } %end +// Hide Fullscreen Actions buttons - @bhackel +%group hideFullscreenActions + %hook YTMainAppVideoPlayerOverlayViewController + - (BOOL)isFullscreenActionsEnabled { + // This didn't work on its own - weird + return IS_ENABLED(@"hideFullscreenActions_enabled") ? NO : %orig; + } + %end + %hook YTFullscreenActionsView + - (BOOL)enabled { + // Attempt 2 + return IS_ENABLED(@"hideFullscreenActions_enabled") ? NO : %orig; + } + %end +%end + # pragma mark - uYouPlus // Video Player Options // Skips content warning before playing *some videos - @PoomSmart @@ -1243,6 +1259,9 @@ static BOOL findCell(ASNodeController *nodeController, NSArray *ide if (IS_ENABLED(@"portraitFullscreen_enabled")) { %init(gPortraitFullscreen); } + if (IS_ENABLED(@"hideFullscreenActions_enabled")) { + %init(hideFullscreenActions); + } if (IS_ENABLED(@"iPhoneLayout_enabled") && (UIDevice.currentDevice.userInterfaceIdiom == UIUserInterfaceIdiomPad)) { %init(giPhoneLayout); } diff --git a/Sources/uYouPlusSettings.xm b/Sources/uYouPlusSettings.xm index c931a95..7db506b 100644 --- a/Sources/uYouPlusSettings.xm +++ b/Sources/uYouPlusSettings.xm @@ -227,6 +227,7 @@ extern NSBundle *uYouPlusBundle(); SWITCH_ITEM2(LOC(@"RED_PROGRESS_BAR"), LOC(@"RED_PROGRESS_BAR_DESC"), @"redProgressBar_enabled"); SWITCH_ITEM(LOC(@"HIDE_HOVER_CARD"), LOC(@"HIDE_HOVER_CARD_DESC"), @"hideHoverCards_enabled"); SWITCH_ITEM2(LOC(@"HIDE_RIGHT_PANEL"), LOC(@"HIDE_RIGHT_PANEL_DESC"), @"hideRightPanel_enabled"); + SWITCH_ITEM2(LOC(@"Hide Fullscreen Action Buttons"), LOC(@"Hides the buttons at the bottom of the screen when in landscape"), @"hideFullscreenActions_enabled"); SWITCH_ITEM2(LOC(@"Hide Suggested Video"), LOC(@"Remove the suggested video popup when finishing a video. Note that this will prevent autoplay from working."), @"noSuggestedVideo_enabled"); SWITCH_ITEM2(LOC(@"Hide Heatwaves"), LOC(@"Should hide the Heatwaves in the video player. App restart is required."), @"hideHeatwaves_enabled"); SWITCH_ITEM2(LOC(@"Hide Double Tap to Seek Overlay"), LOC(@"This hides the animated double tap to seek overlay in the video player. App restart is required."), @"hideDoubleTapToSeekOverlay_enabled"); diff --git a/Tweaks/YouTubeHeader b/Tweaks/YouTubeHeader index c6e6747..a2a7539 160000 --- a/Tweaks/YouTubeHeader +++ b/Tweaks/YouTubeHeader @@ -1 +1 @@ -Subproject commit c6e674753e8f4ba41a4be292eec3b365d26418ba +Subproject commit a2a753975962e51cb834ff8f86759593dac58eb4