Compare commits
88
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fa87084000 | ||
|
|
0b30adb3f4 | ||
|
|
349a49eb93 | ||
|
|
57ed260959 | ||
|
|
9b03cac475 | ||
|
|
0a6179a4b7 | ||
|
|
9e37aaed11 | ||
|
|
691d7d3078 | ||
|
|
915bb7efb3 | ||
|
|
d8151344ae | ||
|
|
163dac3e81 | ||
|
|
3383edbb05 | ||
|
|
c2efac035c | ||
|
|
0fad665452 | ||
|
|
1b554d0994 | ||
|
|
87575119b8 | ||
|
|
90468a2b69 | ||
|
|
29c7f279ae | ||
|
|
e870be2f52 | ||
|
|
772cc2af2e | ||
|
|
9e3065fac6 | ||
|
|
5db4a43777 | ||
|
|
7ab7b499d7 | ||
|
|
c922424d53 | ||
|
|
f1b540af8b | ||
|
|
9afaddb2e0 | ||
|
|
b7f6c21353 | ||
|
|
8e4293f7a1 | ||
|
|
573dfa1d67 | ||
|
|
5d2cc93f56 | ||
|
|
42959eb9fb | ||
|
|
aa139dffa8 | ||
|
|
6520ae2d53 | ||
|
|
4bfb78634f | ||
|
|
78fbf1dc6b | ||
|
|
3dcf4f290f | ||
|
|
85ddb15d38 | ||
|
|
5948dac548 | ||
|
|
070647ecd5 | ||
|
|
b7328028aa | ||
|
|
79f058f354 | ||
|
|
26b5912495 | ||
|
|
f029b9a372 | ||
|
|
ecf3107846 | ||
|
|
93397e48d7 | ||
|
|
b83081fd57 | ||
|
|
c74b5203f7 | ||
|
|
920b7c4882 | ||
|
|
d469f31270 | ||
|
|
f910c416ef | ||
|
|
fb0e5073ae | ||
|
|
f9e05fee77 | ||
|
|
ec7eec660b | ||
|
|
2e6c19c060 | ||
|
|
bb3b8ed310 | ||
|
|
b94a5cc967 | ||
|
|
8b50a3c1b7 | ||
|
|
025dc4d2cb | ||
|
|
9860fdb4e8 | ||
|
|
5e9d719882 | ||
|
|
f63cfa8b43 | ||
|
|
37b6b1e07e | ||
|
|
1827ece773 | ||
|
|
f9e98fa04d | ||
|
|
2c5d0545d7 | ||
|
|
3c33e6fed0 | ||
|
|
daa004d027 | ||
|
|
556f4dd8cf | ||
|
|
68855e71bf | ||
|
|
8fcf17572d | ||
|
|
94c58965c7 | ||
|
|
5e7b7717ff | ||
|
|
1a99fa819e | ||
|
|
0c8376fc60 | ||
|
|
5b70271968 | ||
|
|
968dc841ee | ||
|
|
ada2c00338 | ||
|
|
0e2ec9a52e | ||
|
|
274abee25d | ||
|
|
5b920d7353 | ||
|
|
34e34a4fef | ||
|
|
3e4264e3c7 | ||
|
|
e3d779cbf2 | ||
|
|
314efca54b | ||
|
|
feaeb234cc | ||
|
|
4502236d64 | ||
|
|
3154b51cf6 | ||
|
|
4f99b08a63 |
@@ -0,0 +1,112 @@
|
|||||||
|
# Original idea by @ISnackable. Thanks to him for handling the hardest parts!
|
||||||
|
# https://github.com/ISnackable/CercubePlus/blob/main/.github/workflows/Build.yml
|
||||||
|
|
||||||
|
name: Build uYouPlus Artifact
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
uyou_version:
|
||||||
|
description: "The version of uYou"
|
||||||
|
default: "2.1"
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
decrypted_youtube_url:
|
||||||
|
description: "The direct URL to the decrypted YouTube ipa"
|
||||||
|
default: ""
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
youtube_version:
|
||||||
|
description: "The version of YouTube"
|
||||||
|
default: ""
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Build uYouPlus
|
||||||
|
runs-on: macos-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout Main
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
path: main
|
||||||
|
submodules: recursive
|
||||||
|
|
||||||
|
- name: Install Dependencies
|
||||||
|
run: brew install ldid dpkg
|
||||||
|
|
||||||
|
- name: Setup Theos
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
repository: theos/theos
|
||||||
|
ref: master
|
||||||
|
path: theos
|
||||||
|
submodules: recursive
|
||||||
|
|
||||||
|
- name: Download iOS 15 SDK
|
||||||
|
run: |
|
||||||
|
curl -LO https://github.com/chrisharper22/sdks/archive/main.zip
|
||||||
|
TMP=$(mktemp -d)
|
||||||
|
unzip -qq main.zip -d $TMP
|
||||||
|
mv $TMP/sdks-main/*.sdk $THEOS/sdks
|
||||||
|
rm -r main.zip $TMP
|
||||||
|
env:
|
||||||
|
THEOS: ${{ github.workspace }}/theos
|
||||||
|
|
||||||
|
- name: Setup Theos Jailed
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
repository: kabiroberai/theos-jailed
|
||||||
|
ref: master
|
||||||
|
path: theos-jailed
|
||||||
|
submodules: recursive
|
||||||
|
|
||||||
|
- name: Install Theos Jailed
|
||||||
|
run: |
|
||||||
|
./theos-jailed/install
|
||||||
|
env:
|
||||||
|
THEOS: ${{ github.workspace }}/theos
|
||||||
|
|
||||||
|
- name: Download Dylibs
|
||||||
|
run: |
|
||||||
|
curl "https://raw.githubusercontent.com/Muirey03/RemoteLog/master/RemoteLog.h" --output "$THEOS/include/RemoteLog.h"
|
||||||
|
curl "https://miro92.com/repo/debs/com.miro.uyou_${{ env.UYOU_VERSION }}_iphoneos-arm.deb" --output "./main/Tweaks/uYou/com.miro.uyou_${{ env.UYOU_VERSION }}_iphoneos-arm.deb"
|
||||||
|
wget "$YOUTUBE_URL" --no-verbose -O ./main/YouTube.ipa
|
||||||
|
dpkg-deb -x "./main/Tweaks/uYou/com.miro.uyou_${{ env.UYOU_VERSION }}_iphoneos-arm.deb" ./main/Tweaks/uYou/
|
||||||
|
unzip -q ./main/YouTube.ipa -d ./main/tmp
|
||||||
|
rm -rf ./main/tmp/Payload/YouTube.app/PlugIns/*
|
||||||
|
cp -R ./main/Extensions/*.appex ./main/tmp/Payload/YouTube.app/PlugIns
|
||||||
|
|
||||||
|
env:
|
||||||
|
THEOS: ${{ github.workspace }}/theos
|
||||||
|
UYOU_VERSION: ${{ github.event.inputs.uyou_version }}
|
||||||
|
YOUTUBE_URL: ${{ github.event.inputs.decrypted_youtube_url }}
|
||||||
|
|
||||||
|
- name: Fix compiling && Build Package
|
||||||
|
id: build_package
|
||||||
|
run: |
|
||||||
|
cd ${{ github.workspace }}/main
|
||||||
|
(cd ${{ github.workspace }}/main/Tweaks/YouPiP && sed -i '' "14s#.*#YouPiP_FRAMEWORKS = AVKit AVFoundation UIKit#g" ./Makefile)
|
||||||
|
make package FINALPACKAGE=1
|
||||||
|
(mv "packages/$(ls -t packages | head -n1)" "packages/uYouPlus_${{ env.YOUTUBE_VERSION }}_${{ env.UYOU_VERSION }}.ipa")
|
||||||
|
echo "::set-output name=package::$(ls -t packages | head -n1)"
|
||||||
|
env:
|
||||||
|
THEOS: ${{ github.workspace }}/theos
|
||||||
|
UYOU_VERSION: ${{ github.event.inputs.uyou_version }}
|
||||||
|
YOUTUBE_VERSION: ${{ github.event.inputs.youtube_version }}
|
||||||
|
|
||||||
|
- name: Upload Artifact
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
env:
|
||||||
|
UYOU_VERSION: ${{ github.event.inputs.uyou_version }}
|
||||||
|
YOUTUBE_VERSION: ${{ github.event.inputs.youtube_version }}
|
||||||
|
with:
|
||||||
|
name: uYouPlus_${{ env.YOUTUBE_VERSION }}_${{ env.UYOU_VERSION }}
|
||||||
|
path: ${{ github.workspace }}/main/packages/${{ steps.build_package.outputs.package }}
|
||||||
|
if-no-files-found: error
|
||||||
@@ -0,0 +1,129 @@
|
|||||||
|
# Original idea by @ISnackable. Thanks to him for handling the hardest parts!
|
||||||
|
# https://github.com/ISnackable/CercubePlus/blob/main/.github/workflows/Build.yml
|
||||||
|
# This workflow is not for you. Please use the “Build uYouPlus Artifact” workflow!
|
||||||
|
|
||||||
|
name: Build and Release uYouPlus (draft)
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
uyou_version:
|
||||||
|
description: "The version of uYou"
|
||||||
|
default: "2.1"
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
decrypted_youtube_url:
|
||||||
|
description: "The direct URL to the decrypted YouTube ipa"
|
||||||
|
default: ""
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
youtube_version:
|
||||||
|
description: "The version of YouTube"
|
||||||
|
default: ""
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Build uYouPlus
|
||||||
|
runs-on: macos-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Set Env
|
||||||
|
run: echo "workspace=$GITHUB_WORKSPACE" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
- name: Checkout Main
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
path: main
|
||||||
|
submodules: recursive
|
||||||
|
|
||||||
|
- name: Install Dependencies
|
||||||
|
run: brew install ldid dpkg
|
||||||
|
|
||||||
|
- name: Setup Theos
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
repository: theos/theos
|
||||||
|
ref: master
|
||||||
|
path: theos
|
||||||
|
submodules: recursive
|
||||||
|
|
||||||
|
- name: Download iOS 15 SDK
|
||||||
|
run: |
|
||||||
|
curl -LO https://github.com/chrisharper22/sdks/archive/main.zip
|
||||||
|
TMP=$(mktemp -d)
|
||||||
|
unzip -qq main.zip -d $TMP
|
||||||
|
mv $TMP/sdks-main/*.sdk $THEOS/sdks
|
||||||
|
rm -r main.zip $TMP
|
||||||
|
env:
|
||||||
|
THEOS: ${{ env.workspace }}/theos
|
||||||
|
|
||||||
|
- name: Setup Theos Jailed
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
repository: kabiroberai/theos-jailed
|
||||||
|
ref: master
|
||||||
|
path: theos-jailed
|
||||||
|
submodules: recursive
|
||||||
|
|
||||||
|
- name: Install Theos Jailed
|
||||||
|
run: |
|
||||||
|
./theos-jailed/install
|
||||||
|
env:
|
||||||
|
THEOS: ${{ env.workspace }}/theos
|
||||||
|
|
||||||
|
- name: Download uYou && YouTube ipa
|
||||||
|
run: |
|
||||||
|
curl "https://raw.githubusercontent.com/Muirey03/RemoteLog/master/RemoteLog.h" --output "$THEOS/include/RemoteLog.h"
|
||||||
|
curl "https://miro92.com/repo/debs/com.miro.uyou_${{ env.UYOU_VERSION }}_iphoneos-arm.deb" --output "./main/Tweaks/uYou/com.miro.uyou_${{ env.UYOU_VERSION }}_iphoneos-arm.deb"
|
||||||
|
wget "$YOUTUBE_URL" --no-verbose -O ./main/YouTube.ipa
|
||||||
|
dpkg-deb -x "./main/Tweaks/uYou/com.miro.uyou_${{ env.UYOU_VERSION }}_iphoneos-arm.deb" ./main/Tweaks/uYou/
|
||||||
|
unzip -q ./main/YouTube.ipa -d ./main/tmp
|
||||||
|
rm -rf ./main/tmp/Payload/YouTube.app/PlugIns/*
|
||||||
|
cp -R ./main/Extensions/*.appex ./main/tmp/Payload/YouTube.app/PlugIns
|
||||||
|
|
||||||
|
env:
|
||||||
|
THEOS: ${{ env.workspace }}/theos
|
||||||
|
UYOU_VERSION: ${{ github.event.inputs.uyou_version }}
|
||||||
|
YOUTUBE_URL: ${{ github.event.inputs.decrypted_youtube_url }}
|
||||||
|
YOUTUBE_VERSION: ${{ github.event.inputs.youtube_version }}
|
||||||
|
|
||||||
|
- name: Fix compiling && Build Package
|
||||||
|
id: build_package
|
||||||
|
run: |
|
||||||
|
cd ${{ env.workspace }}/main
|
||||||
|
(cd ${{ env.workspace }}/main/Tweaks/YouPiP && sed -i '' "14s#.*#YouPiP_FRAMEWORKS = AVKit AVFoundation UIKit#g" ./Makefile)
|
||||||
|
make package FINALPACKAGE=1
|
||||||
|
echo "::set-output name=package::$(ls -t packages | head -n1)"
|
||||||
|
env:
|
||||||
|
THEOS: ${{ env.workspace }}/theos
|
||||||
|
|
||||||
|
- name: Create Release
|
||||||
|
id: create_release
|
||||||
|
uses: actions/create-release@v1
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
UYOU_VERSION: ${{ github.event.inputs.uyou_version }}
|
||||||
|
YOUTUBE_VERSION: ${{ github.event.inputs.youtube_version }}
|
||||||
|
with:
|
||||||
|
tag_name: v${{ env.YOUTUBE_VERSION }}-${{ env.UYOU_VERSION }}-(${{ github.run_number }})
|
||||||
|
release_name: v${{ env.YOUTUBE_VERSION }}-${{ env.UYOU_VERSION }}-(${{ github.run_number }})
|
||||||
|
draft: true
|
||||||
|
prerelease: false
|
||||||
|
|
||||||
|
- name: Upload Release Asset
|
||||||
|
uses: actions/upload-release-asset@v1
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
UYOU_VERSION: ${{ github.event.inputs.uyou_version }}
|
||||||
|
YOUTUBE_VERSION: ${{ github.event.inputs.youtube_version }}
|
||||||
|
with:
|
||||||
|
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||||
|
asset_path: ${{ env.workspace }}/main/packages/${{ steps.build_package.outputs.package }}
|
||||||
|
asset_name: uYouPlus_${{ env.YOUTUBE_VERSION }}_${{ env.UYOU_VERSION }}.ipa
|
||||||
|
asset_content_type: application/vnd.debian.binary-package
|
||||||
+3
-2
@@ -1,6 +1,7 @@
|
|||||||
.theos
|
.theos
|
||||||
.DS_Store
|
.DS_Store
|
||||||
packages
|
packages/
|
||||||
obj
|
tmp/
|
||||||
Tweaks/uYou/*
|
Tweaks/uYou/*
|
||||||
!Tweaks/uYou/.gitkeep
|
!Tweaks/uYou/.gitkeep
|
||||||
|
Resources/
|
||||||
@@ -1,33 +1,61 @@
|
|||||||
#import "Tweaks/YouTubeHeader/YTPlayerViewController.h"
|
#import "Tweaks/YouTubeHeader/YTPlayerViewController.h"
|
||||||
|
|
||||||
|
#define LOC(x) [tweakBundle localizedStringForKey:x value:nil table:nil]
|
||||||
|
#define YT_BUNDLE_ID @"com.google.ios.youtube"
|
||||||
|
#define YT_NAME @"YouTube"
|
||||||
|
|
||||||
|
// IAmYouTube
|
||||||
|
@interface SSOConfiguration : NSObject
|
||||||
|
@end
|
||||||
|
|
||||||
|
// uYouPlus
|
||||||
|
@interface YTMainAppControlsOverlayView: UIView
|
||||||
|
@end
|
||||||
|
|
||||||
|
@interface YTTransportControlsButtonView : UIView
|
||||||
|
@end
|
||||||
|
|
||||||
|
// @interface YTPlaylistHeaderViewController : UIViewController
|
||||||
|
// @property (nonatomic, strong, readwrite) UIView *downloadsButton;
|
||||||
|
// @end
|
||||||
|
|
||||||
|
// BigYTMiniPlayer
|
||||||
@interface YTMainAppVideoPlayerOverlayView : UIView
|
@interface YTMainAppVideoPlayerOverlayView : UIView
|
||||||
-(UIViewController *)_viewControllerForAncestor;
|
- (UIViewController *)_viewControllerForAncestor;
|
||||||
@end
|
@end
|
||||||
|
|
||||||
@interface YTWatchMiniBarView : UIView
|
@interface YTWatchMiniBarView : UIView
|
||||||
@end
|
@end
|
||||||
|
|
||||||
@interface YTAsyncCollectionView : UIView
|
// YTAutoFullScreen
|
||||||
@end
|
|
||||||
|
|
||||||
@interface YTPlayerViewController (YTAFS)
|
@interface YTPlayerViewController (YTAFS)
|
||||||
- (void)autoFullscreen;
|
- (void)autoFullscreen;
|
||||||
@end
|
@end
|
||||||
|
|
||||||
@interface YTTopAlignedView : UIView
|
// OLED Darkmode
|
||||||
|
@interface ASWAppSwitcherCollectionViewCell: UIView
|
||||||
@end
|
@end
|
||||||
|
|
||||||
@interface YTLightweightQTMButton : UIView
|
@interface ASScrollView : UIView
|
||||||
@end
|
@end
|
||||||
|
|
||||||
@interface YTELMView : UIView
|
@interface UIKeyboardLayoutStar : UIView
|
||||||
@end
|
@end
|
||||||
|
|
||||||
@interface NIAttributedLabel : UIView
|
@interface UIKeyboardDockView : UIView
|
||||||
@end
|
@end
|
||||||
|
|
||||||
@interface YTShareMainView : UIView
|
@interface _ASDisplayView : UIView
|
||||||
@end
|
@end
|
||||||
|
|
||||||
@interface UICollectionViewControllerWrapperView : UIView
|
@interface SponsorBlockSettingsController : UITableViewController
|
||||||
|
@end
|
||||||
|
|
||||||
|
@interface SponsorBlockViewController : UIViewController
|
||||||
|
@end
|
||||||
|
|
||||||
|
@interface UICandidateViewController : UIViewController
|
||||||
|
@end
|
||||||
|
|
||||||
|
@interface UIPredictionViewController : UIViewController
|
||||||
@end
|
@end
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
uYouPlus_INJECT_DYLIBS = Tweaks/uYou/Library/MobileSubstrate/DynamicLibraries/uYou.dylib .theos/obj/libcolorpicker.dylib .theos/obj/iSponsorBlock.dylib .theos/obj/YTUHD.dylib .theos/obj/YouPiP.dylib .theos/obj/YouTubeDislikesReturn.dylib .theos/obj/YoutubeSpeed.dylib
|
TARGET = iphone:clang:latest:13.0
|
||||||
|
|
||||||
uYouPlus_USE_FLEX = 0
|
uYouPlus_USE_FLEX = 0
|
||||||
|
uYouPlus_USE_FISHHOOK = 0
|
||||||
ARCHS = arm64
|
ARCHS = arm64
|
||||||
MODULES = jailed
|
MODULES = jailed
|
||||||
FINALPACKAGE = 1
|
FINALPACKAGE = 1
|
||||||
@@ -10,9 +10,10 @@ TWEAK_NAME = uYouPlus
|
|||||||
DISPLAY_NAME = YouTube
|
DISPLAY_NAME = YouTube
|
||||||
BUNDLE_ID = com.google.ios.youtube
|
BUNDLE_ID = com.google.ios.youtube
|
||||||
|
|
||||||
|
uYouPlus_INJECT_DYLIBS = Tweaks/uYou/Library/MobileSubstrate/DynamicLibraries/uYou.dylib .theos/obj/libcolorpicker.dylib .theos/obj/iSponsorBlock.dylib .theos/obj/YTUHD.dylib .theos/obj/YouPiP.dylib .theos/obj/YouTubeDislikesReturn.dylib .theos/obj/YoutubeSpeed.dylib
|
||||||
uYouPlus_FILES = uYouPlus.xm Settings.xm
|
uYouPlus_FILES = uYouPlus.xm Settings.xm
|
||||||
uYouPlus_IPA = ./tmp/Payload/YouTube.app
|
uYouPlus_IPA = ./tmp/Payload/YouTube.app
|
||||||
### Important: edit the path to your decrypted YouTube IPA!!!
|
uYouPlus_FRAMEWORKS = UIKit
|
||||||
|
|
||||||
include $(THEOS)/makefiles/common.mk
|
include $(THEOS)/makefiles/common.mk
|
||||||
include $(THEOS_MAKE_PATH)/tweak.mk
|
include $(THEOS_MAKE_PATH)/tweak.mk
|
||||||
@@ -20,11 +21,12 @@ SUBPROJECTS += Tweaks/Alderis Tweaks/iSponsorBlock Tweaks/YTUHD Tweaks/YouPiP Tw
|
|||||||
include $(THEOS_MAKE_PATH)/aggregate.mk
|
include $(THEOS_MAKE_PATH)/aggregate.mk
|
||||||
|
|
||||||
before-package::
|
before-package::
|
||||||
@tput setaf 4 && echo -e "==> \033[1mMoving tweak's bundle to Resources/...\033[0m"
|
@echo -e "==> \033[1mMoving tweak's bundle to Resources/...\033[0m"
|
||||||
@mkdir -p Resources/Frameworks/Alderis.framework && find .theos/obj/install/Library/Frameworks/Alderis.framework -maxdepth 1 -type f -exec cp {} Resources/Frameworks/Alderis.framework/ \;
|
@mkdir -p Resources/Frameworks/Alderis.framework && find .theos/obj/install/Library/Frameworks/Alderis.framework -maxdepth 1 -type f -exec cp {} Resources/Frameworks/Alderis.framework/ \;
|
||||||
@cp -R Tweaks/YouPiP/layout/Library/Application\ Support/YouPiP.bundle Resources/
|
@cp -R Tweaks/YouPiP/layout/Library/Application\ Support/YouPiP.bundle Resources/
|
||||||
@cp -R Tweaks/iSponsorBlock/layout/Library/Application\ Support/iSponsorBlock.bundle Resources/
|
@cp -R Tweaks/iSponsorBlock/layout/Library/Application\ Support/iSponsorBlock.bundle Resources/
|
||||||
@cp -R Tweaks/uYou/Library/Application\ Support/uYouBundle.bundle Resources/
|
@cp -R Tweaks/uYou/Library/Application\ Support/uYouBundle.bundle Resources/
|
||||||
@tput setaf 5 && echo -e "==> \033[1mChanging the installation path of dylibs...\033[0m"
|
@cp -R lang/uYouPlus.bundle Resources/
|
||||||
|
@echo -e "==> \033[1mChanging the installation path of dylibs...\033[0m"
|
||||||
@codesign --remove-signature .theos/obj/iSponsorBlock.dylib && install_name_tool -change /usr/lib/libcolorpicker.dylib @rpath/libcolorpicker.dylib .theos/obj/iSponsorBlock.dylib
|
@codesign --remove-signature .theos/obj/iSponsorBlock.dylib && install_name_tool -change /usr/lib/libcolorpicker.dylib @rpath/libcolorpicker.dylib .theos/obj/iSponsorBlock.dylib
|
||||||
@codesign --remove-signature .theos/obj/libcolorpicker.dylib && install_name_tool -change /Library/Frameworks/Alderis.framework/Alderis @rpath/Alderis.framework/Alderis .theos/obj/libcolorpicker.dylib
|
@codesign --remove-signature .theos/obj/libcolorpicker.dylib && install_name_tool -change /Library/Frameworks/Alderis.framework/Alderis @rpath/Alderis.framework/Alderis .theos/obj/libcolorpicker.dylib
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||

|

|
||||||
|
|
||||||
|
|
||||||
# Table of Contents
|
# Table of Contents
|
||||||
|
|
||||||
* [Credits](#credits)
|
* [Credits](#credits)
|
||||||
@@ -10,8 +9,7 @@
|
|||||||
* [Installation](#installation)
|
* [Installation](#installation)
|
||||||
* [Support the developers!](#support-the-developers)
|
* [Support the developers!](#support-the-developers)
|
||||||
* [FAQ](#faq)
|
* [FAQ](#faq)
|
||||||
* [Building (optional)](#building-optional)
|
* [Building](#building-optional)
|
||||||
|
|
||||||
|
|
||||||
# Credits
|
# Credits
|
||||||
|
|
||||||
@@ -21,17 +19,18 @@
|
|||||||
|
|
||||||
- [HASHBANG Productions](https://github.com/hbang) for [Alderis Color Picker](https://github.com/hbang/Alderis) - a dependency of iSponsorBlock.
|
- [HASHBANG Productions](https://github.com/hbang) for [Alderis Color Picker](https://github.com/hbang/Alderis) - a dependency of iSponsorBlock.
|
||||||
|
|
||||||
- [PoomSmart](https://twitter.com/poomsmart) - the developer of many tweaks used by uYouPlus, include: [YouRememberCaption](https://www.ios-repo-updates.com/repository/poomsmart/package/com.ps.youremembercaption/), [YTClassicVideoQuality](https://poomsmart.github.io/repo/depictions/ytclassicvideoquality.html), [YTNoCheckLocalNetwork](https://poomsmart.github.io/repo/depictions/ytnochecklocalnetwork.html), [YTSystemAppearance](https://poomsmart.github.io/repo/depictions/ytsystemappearance.html), [YTAutoFullScreen](https://github.com/PoomSmart/YTAutoFullScreen/), [YTReExplore](https://github.com/PoomSmart/YTReExplore/), [YTUHD](https://poomsmart.github.io/repo/depictions/ytuhd.html), [YouPiP](https://poomsmart.github.io/repo/depictions/youpip.html), and [Return YouTube Dislike](https://github.com/PoomSmart/Return-YouTube-Dislikes)
|
- [PoomSmart](https://twitter.com/poomsmart) - the developer of many tweaks used by uYouPlus, include: [NoYTPremium](https://github.com/PoomSmart/NoYTPremium/), [YouRememberCaption](https://www.ios-repo-updates.com/repository/poomsmart/package/com.ps.youremembercaption/), [YTClassicVideoQuality](https://poomsmart.github.io/repo/depictions/ytclassicvideoquality.html), [YTNoCheckLocalNetwork](https://poomsmart.github.io/repo/depictions/ytnochecklocalnetwork.html), [YTSystemAppearance](https://poomsmart.github.io/repo/depictions/ytsystemappearance.html), [YTAutoFullScreen](https://github.com/PoomSmart/YTAutoFullScreen/), [YTReExplore](https://github.com/PoomSmart/YTReExplore/), [IAmYouTube](https://github.com/PoomSmart/IAmYouTube), [YTUHD](https://poomsmart.github.io/repo/depictions/ytuhd.html), [YouPiP](https://poomsmart.github.io/repo/depictions/youpip.html), and [Return YouTube Dislike](https://github.com/PoomSmart/Return-YouTube-Dislikes)
|
||||||
|
|
||||||
- [level3tjg](https://twitter.com/level3tjg) - for [YTNoHoverCards](https://github.com/level3tjg/YTNoHoverCards).
|
- [level3tjg](https://twitter.com/level3tjg) - for [YTNoHoverCards](https://github.com/level3tjg/YTNoHoverCards) and [YTMiniplayerEnabler](https://github.com/level3tjg/YTMiniplayerEnabler).
|
||||||
|
|
||||||
- [Lyvendia](https://github.com/Lyvendia/) for [YTSpeed](https://github.com/Lyvendia/YTSpeed/)
|
- [Lyvendia](https://github.com/Lyvendia/) for [YTSpeed](https://github.com/Lyvendia/YTSpeed/)
|
||||||
|
|
||||||
|
- [YouTube Extensions](https://github.com/CokePokes/YoutubeExtensions) by [CokePokes](https://github.com/CokePokes/).
|
||||||
|
|
||||||
- [Al4ise](https://github.com/Al4ise) for [Azule](https://github.com/Al4ise/Azule), a tool used to inject jailbreak tweaks into jailed iOS apps.
|
- [Al4ise](https://github.com/Al4ise) for [Azule](https://github.com/Al4ise/Azule), a tool used to inject jailbreak tweaks into jailed iOS apps.
|
||||||
|
|
||||||
- [theos team](https://github.com/theos/theos) for theos & theos-jailed.
|
- [theos team](https://github.com/theos/theos) for theos & theos-jailed.
|
||||||
|
|
||||||
|
|
||||||
# Features
|
# Features
|
||||||
|
|
||||||
1. **uYou:** uYou has a ton of features that I can't list them all. Visit [here](https://miro92.com/repo/depictions/?p=com.miro.uyou) for more info!
|
1. **uYou:** uYou has a ton of features that I can't list them all. Visit [here](https://miro92.com/repo/depictions/?p=com.miro.uyou) for more info!
|
||||||
@@ -57,7 +56,11 @@
|
|||||||
|
|
||||||
10. **YouRememberCaption**: make YouTube remember your video caption setting (if not already).
|
10. **YouRememberCaption**: make YouTube remember your video caption setting (if not already).
|
||||||
|
|
||||||
11. **YTSpeed**: add 2.25, 2.5, 2.75, and 3x playback speed
|
11. **NoYTPremium**: remove YouTube Premium upshells.
|
||||||
|
|
||||||
|
12. **YTSpeed**: add 2.25, 2.5, 2.75, and 3x playback speed
|
||||||
|
|
||||||
|
13. **YTMiniplayerEnabler**: enable Miniplayer for all YouTube videos.
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
@@ -67,7 +70,6 @@
|
|||||||
|
|
||||||
- Issues that related to **uYouPlus** are [here](https://github.com/qnblackcat/uYouPlus/issues/)
|
- Issues that related to **uYouPlus** are [here](https://github.com/qnblackcat/uYouPlus/issues/)
|
||||||
|
|
||||||
|
|
||||||
# Download
|
# Download
|
||||||
|
|
||||||
- **uYouPlus** (or you can call it uYou+) requires iOS & iPadOS 13.0 or later. The latest version of **uYouPlus** can be found in the [Release tab](https://github.com/qnblackcat/uYouPlus/releases).
|
- **uYouPlus** (or you can call it uYou+) requires iOS & iPadOS 13.0 or later. The latest version of **uYouPlus** can be found in the [Release tab](https://github.com/qnblackcat/uYouPlus/releases).
|
||||||
@@ -76,32 +78,36 @@
|
|||||||
|
|
||||||
- My official AtlStore repo: https://qnblackcat.github.io/AltStore/
|
- My official AtlStore repo: https://qnblackcat.github.io/AltStore/
|
||||||
|
|
||||||
- [Open in AltStore (v17.16.4-2.1)](https://tinyurl.com/2p8t49r2) - It will take a while to install because AltStore needs to download the IPA.
|
- [Open in AltStore (v17.23.6-2.1)](https://tinyurl.com/5upjtvbv) - It will take a while to install because AltStore needs to download the IPA.
|
||||||
|
|
||||||
- Version info: _(last update: Apr 25)_
|
- Version info: _(last update: June 14)_
|
||||||
|
|
||||||
<details>
|
<details>
|
||||||
<summary> Expand</summary>
|
<summary>Expand</summary>
|
||||||
|
|
||||||
| **Tweaks/App** | **Version** | **Open source** |
|
| **Tweaks/App** | **Version** | **Open source** |
|
||||||
| :------------: | :----------:| :-------------: |
|
| :------------: | :----------:| :-------------: |
|
||||||
| **YouTube** | 17.16.4 | ✖︎ |
|
| **YouTube** | 17.23.6 | ✖︎ |
|
||||||
| **uYou** | 2.1 | ✖︎ |
|
| [uYou](https://github.com/MiRO92/uYou-for-YouTube) | 2.1 | ✖︎ |
|
||||||
| **Return YouTube Dislike** | 1.6.4 | [✔︎](https://github.com/PoomSmart/Return-YouTube-Dislikes) |
|
| [Open in YouTube](https://github.com/CokePokes/YoutubeExtensions/) | 1.2 | ✖︎ |
|
||||||
|
| **Return YouTube Dislike** | 1.6.5 | [✔︎](https://github.com/PoomSmart/Return-YouTube-Dislikes) |
|
||||||
| **iSponsorBlock** | 1.0-14 | [✔︎](https://github.com/Galactic-Dev/iSponsorBlock) |
|
| **iSponsorBlock** | 1.0-14 | [✔︎](https://github.com/Galactic-Dev/iSponsorBlock) |
|
||||||
| **Alderis Color Picker** | 1.1.2| [✔︎](https://github.com/hbang/Alderis) |
|
| **Alderis Color Picker** | 1.2| [✔︎](https://github.com/hbang/Alderis) |
|
||||||
|
| **NoYTPremium** | 1.0.4 | [✔︎](https://github.com/PoomSmart/NoYTPremium/) |
|
||||||
| **YouRememberCaption** | 1.0.0 | [✔︎](https://poomsmart.github.io/repo/depictions/youremembercaption.html) |
|
| **YouRememberCaption** | 1.0.0 | [✔︎](https://poomsmart.github.io/repo/depictions/youremembercaption.html) |
|
||||||
| **YTClassicVideoQuality** | 1.0.1 | [✔︎](https://github.com/PoomSmart/YTClassicVideoQuality) |
|
| **YTClassicVideoQuality** | 1.0.1 | [✔︎](https://github.com/PoomSmart/YTClassicVideoQuality) |
|
||||||
| **YTNoCheckLocalNetwork** | 1.0.2 | [✔︎](https://poomsmart.github.io/repo/depictions/ytnochecklocalnetwork.html) |
|
| **YTNoCheckLocalNetwork** | 1.0.2 | [✔︎](https://poomsmart.github.io/repo/depictions/ytnochecklocalnetwork.html) |
|
||||||
| **YTNoHoverCards** | 0.0.3 | [✔︎](https://github.com/level3tjg/YTNoHoverCards) |
|
| **YTNoHoverCards** | 0.0.3 | [✔︎](https://github.com/level3tjg/YTNoHoverCards) |
|
||||||
| **YTSystemAppearance** | 1.0.0 | [✔︎](https://poomsmart.github.io/repo/depictions/ytsystemappearance.html) |
|
| **YTSystemAppearance** | 1.0.0 | [✔︎](https://poomsmart.github.io/repo/depictions/ytsystemappearance.html) |
|
||||||
| **YTUHD** | 1.2.7 | [✔︎](https://github.com/PoomSmart/YTUHD) |
|
| **YTUHD** | 1.2.7 | [✔︎](https://github.com/PoomSmart/YTUHD) |
|
||||||
| **YouPiP** | 1.6.11 | [✔︎](https://github.com/PoomSmart/YouPiP) |
|
| **YouPiP** | 1.7.3 | [✔︎](https://github.com/PoomSmart/YouPiP) |
|
||||||
|
| **IAmYouTube** | 1.2.0 | [✔︎](https://github.com/PoomSmart/IAmYouTube) |
|
||||||
| **YTSpeed** | 1.0.1 | [✔︎](https://github.com/Lyvendia/YTSpeed) |
|
| **YTSpeed** | 1.0.1 | [✔︎](https://github.com/Lyvendia/YTSpeed) |
|
||||||
| **YTAutoFullScreen** | 1.0.3 | [✔︎](https://github.com/PoomSmart/YTAutoFullScreen/) |
|
| **YTAutoFullScreen** | 1.0.3 | [✔︎](https://github.com/PoomSmart/YTAutoFullScreen/) |
|
||||||
| **YTReExplore** | 1.0.2 | [✔︎](https://github.com/PoomSmart/YTReExplore) |
|
| **YTReExplore** | 1.0.2 | [✔︎](https://github.com/PoomSmart/YTReExplore) |
|
||||||
| **BigYTMiniPlayer** | 1.0-1 | [✔︎](https://github.com/Galactic-Dev/BigYTMiniPlayer) |
|
| **BigYTMiniPlayer** | 1.0-1 | [✔︎](https://github.com/Galactic-Dev/BigYTMiniPlayer) |
|
||||||
| **YTCastConfirm** | 1.0.0 | [✔︎](https://github.com/JamieBerghmans/YTCastConfirm) |
|
| **YTCastConfirm** | 1.0.0 | [✔︎](https://github.com/JamieBerghmans/YTCastConfirm) |
|
||||||
|
| **YTMiniplayerEnabler** | 0.0.2 | [✔︎](https://github.com/level3tjg/YTMiniplayerEnabler) |
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
|
|||||||
+151
-103
@@ -1,115 +1,163 @@
|
|||||||
|
#import "Tweaks/YouTubeHeader/YTSettingsViewController.h"
|
||||||
#import "Tweaks/YouTubeHeader/YTSettingsSectionItem.h"
|
#import "Tweaks/YouTubeHeader/YTSettingsSectionItem.h"
|
||||||
|
#import "Tweaks/YouTubeHeader/YTSettingsSectionItemManager.h"
|
||||||
|
#import "Header.h"
|
||||||
|
|
||||||
|
@interface YTSettingsSectionItemManager (YouPiP)
|
||||||
|
- (void)updateuYouPlusSectionWithEntry:(id)entry;
|
||||||
|
@end
|
||||||
|
|
||||||
|
static const NSInteger uYouPlusSection = 500;
|
||||||
|
|
||||||
|
extern NSBundle *uYouPlusBundle();
|
||||||
extern BOOL hideHUD();
|
extern BOOL hideHUD();
|
||||||
extern BOOL oled();
|
extern BOOL oled();
|
||||||
|
extern BOOL oledKB();
|
||||||
extern BOOL autoFullScreen();
|
extern BOOL autoFullScreen();
|
||||||
extern BOOL noHoverCard();
|
extern BOOL hideHoverCard();
|
||||||
extern BOOL ReExplore();
|
extern BOOL reExplore();
|
||||||
extern BOOL bigYTMiniPlayer();
|
extern BOOL bigYTMiniPlayer();
|
||||||
extern BOOL hideCC();
|
extern BOOL hideCC();
|
||||||
extern BOOL hideAutoplaySwitch();
|
extern BOOL hideAutoplaySwitch();
|
||||||
extern BOOL castConfirm();
|
extern BOOL castConfirm();
|
||||||
|
extern BOOL ytMiniPlayer();
|
||||||
|
extern BOOL hidePreviousAndNextButton();
|
||||||
|
|
||||||
// Settings
|
// Settings
|
||||||
%hook YTSettingsViewController
|
%hook YTAppSettingsPresentationData
|
||||||
- (void)setSectionItems:(NSMutableArray <YTSettingsSectionItem *>*)sectionItems forCategory:(NSInteger)category title:(NSString *)title titleDescription:(NSString *)titleDescription headerHidden:(BOOL)headerHidden {
|
+ (NSArray *)settingsCategoryOrder {
|
||||||
if (category == 1) {
|
NSArray *order = %orig;
|
||||||
NSUInteger statsForNerdsIndex = [sectionItems indexOfObjectPassingTest:^BOOL (YTSettingsSectionItem *item, NSUInteger idx, BOOL *stop) {
|
NSMutableArray *mutableOrder = [order mutableCopy];
|
||||||
return item.settingItemId == 265;
|
NSUInteger insertIndex = [order indexOfObject:@(1)];
|
||||||
}];
|
if (insertIndex != NSNotFound)
|
||||||
if (statsForNerdsIndex != NSNotFound) {
|
[mutableOrder insertObject:@(uYouPlusSection) atIndex:insertIndex + 1];
|
||||||
//
|
return mutableOrder;
|
||||||
YTSettingsSectionItem *castConfirm = [[%c(YTSettingsSectionItem) alloc] initWithTitle:@"Confirm alert before casting (YTCastConfirm)" titleDescription:@"Show a confirm alert before casting to prevent accidentally hijacking TV."];
|
}
|
||||||
castConfirm.hasSwitch = YES;
|
%end
|
||||||
castConfirm.switchVisible = YES;
|
|
||||||
castConfirm.on = [[NSUserDefaults standardUserDefaults] boolForKey:@"castConfirm_enabled"];
|
%hook YTSettingsSectionItemManager
|
||||||
castConfirm.switchBlock = ^BOOL (YTSettingsCell *cell, BOOL enabled) {
|
%new
|
||||||
[[NSUserDefaults standardUserDefaults] setBool:enabled forKey:@"castConfirm_enabled"];
|
- (void)updateuYouPlusSectionWithEntry:(id)entry {
|
||||||
return YES;
|
YTSettingsViewController *delegate = [self valueForKey:@"_dataDelegate"];
|
||||||
};
|
NSBundle *tweakBundle = uYouPlusBundle();
|
||||||
[sectionItems insertObject:castConfirm atIndex:statsForNerdsIndex + 1];
|
|
||||||
//
|
YTSettingsSectionItem *hidePreviousAndNextButton = [[%c(YTSettingsSectionItem) alloc] initWithTitle:LOC(@"HIDE_PREVIOUS_AND_NEXT_BUTTON") titleDescription:LOC(@"HIDE_PREVIOUS_AND_NEXT_BUTTON_DESC")];
|
||||||
YTSettingsSectionItem *hoverCardItem = [[%c(YTSettingsSectionItem) alloc] initWithTitle:@"Show End screens hover cards (YTNoHoverCards)" titleDescription:@"Allows creator End screens (thumbnails) to appear at the end of videos."];
|
hidePreviousAndNextButton.hasSwitch = YES;
|
||||||
hoverCardItem.hasSwitch = YES;
|
hidePreviousAndNextButton.switchVisible = YES;
|
||||||
hoverCardItem.switchVisible = YES;
|
hidePreviousAndNextButton.on = [[NSUserDefaults standardUserDefaults] boolForKey:@"hidePreviousAndNextButton_enabled"];
|
||||||
hoverCardItem.on = [[NSUserDefaults standardUserDefaults] boolForKey:@"hover_cards_enabled"];
|
hidePreviousAndNextButton.switchBlock = ^BOOL (YTSettingsCell *cell, BOOL enabled) {
|
||||||
hoverCardItem.switchBlock = ^BOOL (YTSettingsCell *cell, BOOL enabled) {
|
[[NSUserDefaults standardUserDefaults] setBool:enabled forKey:@"hidePreviousAndNextButton_enabled"];
|
||||||
[[NSUserDefaults standardUserDefaults] setBool:enabled forKey:@"hover_cards_enabled"];
|
return YES;
|
||||||
return YES;
|
};
|
||||||
};
|
|
||||||
[sectionItems insertObject:hoverCardItem atIndex:statsForNerdsIndex + 1];
|
YTSettingsSectionItem *ytMiniPlayer = [[%c(YTSettingsSectionItem) alloc] initWithTitle:LOC(@"YT_MINIPLAYER") titleDescription:LOC(@"YT_MINIPLAYER_DESC")];
|
||||||
//
|
ytMiniPlayer.hasSwitch = YES;
|
||||||
YTSettingsSectionItem *bigYTMiniPlayer = [[%c(YTSettingsSectionItem) alloc] initWithTitle:@"New miniplayer bar style (BigYTMiniPlayer)" titleDescription:@"App restart is required."];
|
ytMiniPlayer.switchVisible = YES;
|
||||||
bigYTMiniPlayer.hasSwitch = YES;
|
ytMiniPlayer.on = [[NSUserDefaults standardUserDefaults] boolForKey:@"ytMiniPlayer_enabled"];
|
||||||
bigYTMiniPlayer.switchVisible = YES;
|
ytMiniPlayer.switchBlock = ^BOOL (YTSettingsCell *cell, BOOL enabled) {
|
||||||
bigYTMiniPlayer.on = [[NSUserDefaults standardUserDefaults] boolForKey:@"bigYTMiniPlayer_enabled"];
|
[[NSUserDefaults standardUserDefaults] setBool:enabled forKey:@"ytMiniPlayer_enabled"];
|
||||||
bigYTMiniPlayer.switchBlock = ^BOOL (YTSettingsCell *cell, BOOL enabled) {
|
return YES;
|
||||||
[[NSUserDefaults standardUserDefaults] setBool:enabled forKey:@"bigYTMiniPlayer_enabled"];
|
};
|
||||||
return YES;
|
|
||||||
};
|
YTSettingsSectionItem *castConfirm = [[%c(YTSettingsSectionItem) alloc] initWithTitle:LOC(@"CAST_CONFIRM") titleDescription:LOC(@"CAST_CONFIRM_DESC")];
|
||||||
[sectionItems insertObject:bigYTMiniPlayer atIndex:statsForNerdsIndex + 2];
|
castConfirm.hasSwitch = YES;
|
||||||
//
|
castConfirm.switchVisible = YES;
|
||||||
YTSettingsSectionItem *reExplore = [[%c(YTSettingsSectionItem) alloc] initWithTitle:@"Replace Shorts tab with Explore tab (YTReExplore)" titleDescription:@"App restart is required."];
|
castConfirm.on = [[NSUserDefaults standardUserDefaults] boolForKey:@"castConfirm_enabled"];
|
||||||
reExplore.hasSwitch = YES;
|
castConfirm.switchBlock = ^BOOL (YTSettingsCell *cell, BOOL enabled) {
|
||||||
reExplore.switchVisible = YES;
|
[[NSUserDefaults standardUserDefaults] setBool:enabled forKey:@"castConfirm_enabled"];
|
||||||
reExplore.on = [[NSUserDefaults standardUserDefaults] boolForKey:@"reExplore_enabled"];
|
return YES;
|
||||||
reExplore.switchBlock = ^BOOL (YTSettingsCell *cell, BOOL enabled) {
|
};
|
||||||
[[NSUserDefaults standardUserDefaults] setBool:enabled forKey:@"reExplore_enabled"];
|
|
||||||
return YES;
|
YTSettingsSectionItem *hideHoverCard = [[%c(YTSettingsSectionItem) alloc] initWithTitle:LOC(@"HIDE_HOVER_CARD") titleDescription:LOC(@"HIDE_HOVER_CARD_DESC")];
|
||||||
};
|
hideHoverCard.hasSwitch = YES;
|
||||||
[sectionItems insertObject:reExplore atIndex:statsForNerdsIndex + 2];
|
hideHoverCard.switchVisible = YES;
|
||||||
//
|
hideHoverCard.on = [[NSUserDefaults standardUserDefaults] boolForKey:@"hideHoverCards_enabled"];
|
||||||
YTSettingsSectionItem *hideCC = [[%c(YTSettingsSectionItem) alloc] initWithTitle:@"Hide Subtitles button" titleDescription:@"Hide the Subtitles button in video controls overlay. "];
|
hideHoverCard.switchBlock = ^BOOL (YTSettingsCell *cell, BOOL enabled) {
|
||||||
hideCC.hasSwitch = YES;
|
[[NSUserDefaults standardUserDefaults] setBool:enabled forKey:@"hideHoverCards_enabled"];
|
||||||
hideCC.switchVisible = YES;
|
return YES;
|
||||||
hideCC.on = [[NSUserDefaults standardUserDefaults] boolForKey:@"hideCC_enabled"];
|
};
|
||||||
hideCC.switchBlock = ^BOOL (YTSettingsCell *cell, BOOL enabled) {
|
|
||||||
[[NSUserDefaults standardUserDefaults] setBool:enabled forKey:@"hideCC_enabled"];
|
YTSettingsSectionItem *bigYTMiniPlayer = [[%c(YTSettingsSectionItem) alloc] initWithTitle:LOC(@"NEW_MINIPLAYER_STYLE") titleDescription:LOC(@"NEW_MINIPLAYER_STYLE_DESC")];
|
||||||
return YES;
|
bigYTMiniPlayer.hasSwitch = YES;
|
||||||
};
|
bigYTMiniPlayer.switchVisible = YES;
|
||||||
[sectionItems insertObject:hideCC atIndex:statsForNerdsIndex + 1];
|
bigYTMiniPlayer.on = [[NSUserDefaults standardUserDefaults] boolForKey:@"bigYTMiniPlayer_enabled"];
|
||||||
//
|
bigYTMiniPlayer.switchBlock = ^BOOL (YTSettingsCell *cell, BOOL enabled) {
|
||||||
YTSettingsSectionItem *hideAutoplaySwitch = [[%c(YTSettingsSectionItem) alloc] initWithTitle:@"Hide Autoplay switch" titleDescription:@"Hide the Autoplay switch button in video controls overlay."];
|
[[NSUserDefaults standardUserDefaults] setBool:enabled forKey:@"bigYTMiniPlayer_enabled"];
|
||||||
hideAutoplaySwitch.hasSwitch = YES;
|
return YES;
|
||||||
hideAutoplaySwitch.switchVisible = YES;
|
};
|
||||||
hideAutoplaySwitch.on = [[NSUserDefaults standardUserDefaults] boolForKey:@"hideAutoplaySwitch_enabled"];
|
|
||||||
hideAutoplaySwitch.switchBlock = ^BOOL (YTSettingsCell *cell, BOOL enabled) {
|
YTSettingsSectionItem *reExplore = [[%c(YTSettingsSectionItem) alloc] initWithTitle:LOC(@"YT_RE_EXPLORE") titleDescription:LOC(@"YT_RE_EXPLORE_DESC")];
|
||||||
[[NSUserDefaults standardUserDefaults] setBool:enabled forKey:@"hideAutoplaySwitch_enabled"];
|
reExplore.hasSwitch = YES;
|
||||||
return YES;
|
reExplore.switchVisible = YES;
|
||||||
};
|
reExplore.on = [[NSUserDefaults standardUserDefaults] boolForKey:@"reExplore_enabled"];
|
||||||
[sectionItems insertObject:hideAutoplaySwitch atIndex:statsForNerdsIndex + 1];
|
reExplore.switchBlock = ^BOOL (YTSettingsCell *cell, BOOL enabled) {
|
||||||
//
|
[[NSUserDefaults standardUserDefaults] setBool:enabled forKey:@"reExplore_enabled"];
|
||||||
YTSettingsSectionItem *autoFUll = [[%c(YTSettingsSectionItem) alloc] initWithTitle:@"Auto Full Screen (YTAutoFullScreen)" titleDescription:@"Autoplay videos at full screen."];
|
return YES;
|
||||||
autoFUll.hasSwitch = YES;
|
};
|
||||||
autoFUll.switchVisible = YES;
|
|
||||||
autoFUll.on = [[NSUserDefaults standardUserDefaults] boolForKey:@"autofull_enabled"];
|
YTSettingsSectionItem *hideCC = [[%c(YTSettingsSectionItem) alloc] initWithTitle:LOC(@"HIDE_SUBTITLES_BUTTON") titleDescription:LOC(@"HIDE_SUBTITLES_BUTTON_DESC")];
|
||||||
autoFUll.switchBlock = ^BOOL (YTSettingsCell *cell, BOOL enabled) {
|
hideCC.hasSwitch = YES;
|
||||||
[[NSUserDefaults standardUserDefaults] setBool:enabled forKey:@"autofull_enabled"];
|
hideCC.switchVisible = YES;
|
||||||
return YES;
|
hideCC.on = [[NSUserDefaults standardUserDefaults] boolForKey:@"hideCC_enabled"];
|
||||||
};
|
hideCC.switchBlock = ^BOOL (YTSettingsCell *cell, BOOL enabled) {
|
||||||
[sectionItems insertObject:autoFUll atIndex:statsForNerdsIndex + 3];
|
[[NSUserDefaults standardUserDefaults] setBool:enabled forKey:@"hideCC_enabled"];
|
||||||
//
|
return YES;
|
||||||
YTSettingsSectionItem *hideHUD = [[%c(YTSettingsSectionItem) alloc] initWithTitle:@"Hide HUD Messages" titleDescription:@"Example: CC is turned on/off, Video loop is on,..."];
|
};
|
||||||
hideHUD.hasSwitch = YES;
|
|
||||||
hideHUD.switchVisible = YES;
|
YTSettingsSectionItem *hideAutoplaySwitch = [[%c(YTSettingsSectionItem) alloc] initWithTitle:LOC(@"HIDE_AUTOPLAY_SWITCH") titleDescription:LOC(@"HIDE_AUTOPLAY_SWITCH_DESC")];
|
||||||
hideHUD.on = [[NSUserDefaults standardUserDefaults] boolForKey:@"hideHUD_enabled"];
|
hideAutoplaySwitch.hasSwitch = YES;
|
||||||
hideHUD.switchBlock = ^BOOL (YTSettingsCell *cell, BOOL enabled) {
|
hideAutoplaySwitch.switchVisible = YES;
|
||||||
[[NSUserDefaults standardUserDefaults] setBool:enabled forKey:@"hideHUD_enabled"];
|
hideAutoplaySwitch.on = [[NSUserDefaults standardUserDefaults] boolForKey:@"hideAutoplaySwitch_enabled"];
|
||||||
return YES;
|
hideAutoplaySwitch.switchBlock = ^BOOL (YTSettingsCell *cell, BOOL enabled) {
|
||||||
};
|
[[NSUserDefaults standardUserDefaults] setBool:enabled forKey:@"hideAutoplaySwitch_enabled"];
|
||||||
[sectionItems insertObject:hideHUD atIndex:statsForNerdsIndex + 1];
|
return YES;
|
||||||
//
|
};
|
||||||
YTSettingsSectionItem *Oleditem = [[%c(YTSettingsSectionItem) alloc] initWithTitle:@"OLED Dark mode (Experimental)" titleDescription:@"WARNING: OLED Dark mode only works when YouTube is in Dark theme. App restart is required (In case OLED dark mode doesn't work: just switch between Light/Dark theme, then restart the app)."];
|
|
||||||
Oleditem.hasSwitch = YES;
|
YTSettingsSectionItem *autoFull = [[%c(YTSettingsSectionItem) alloc] initWithTitle:LOC(@"AUTO_FULLSCREEN") titleDescription:LOC(@"AUTO_FULLSCREEN_DESC")];
|
||||||
Oleditem.switchVisible = YES;
|
autoFull.hasSwitch = YES;
|
||||||
Oleditem.on = [[NSUserDefaults standardUserDefaults] boolForKey:@"oled_enabled"];
|
autoFull.switchVisible = YES;
|
||||||
Oleditem.switchBlock = ^BOOL (YTSettingsCell *cell, BOOL enabled) {
|
autoFull.on = [[NSUserDefaults standardUserDefaults] boolForKey:@"autoFull_enabled"];
|
||||||
[[NSUserDefaults standardUserDefaults] setBool:enabled forKey:@"oled_enabled"];
|
autoFull.switchBlock = ^BOOL (YTSettingsCell *cell, BOOL enabled) {
|
||||||
return YES;
|
[[NSUserDefaults standardUserDefaults] setBool:enabled forKey:@"autoFull_enabled"];
|
||||||
};
|
return YES;
|
||||||
[sectionItems insertObject:Oleditem atIndex:statsForNerdsIndex + 1];
|
};
|
||||||
}
|
|
||||||
}
|
YTSettingsSectionItem *hideHUD = [[%c(YTSettingsSectionItem) alloc] initWithTitle:LOC(@"HIDE_HUD_MESSAGES") titleDescription:LOC(@"HIDE_HUD_MESSAGES_DESC")];
|
||||||
%orig;
|
hideHUD.hasSwitch = YES;
|
||||||
}
|
hideHUD.switchVisible = YES;
|
||||||
|
hideHUD.on = [[NSUserDefaults standardUserDefaults] boolForKey:@"hideHUD_enabled"];
|
||||||
|
hideHUD.switchBlock = ^BOOL (YTSettingsCell *cell, BOOL enabled) {
|
||||||
|
[[NSUserDefaults standardUserDefaults] setBool:enabled forKey:@"hideHUD_enabled"];
|
||||||
|
return YES;
|
||||||
|
};
|
||||||
|
|
||||||
|
YTSettingsSectionItem *oledDarkMode = [[%c(YTSettingsSectionItem) alloc] initWithTitle:LOC(@"OLED_DARKMODE") titleDescription:LOC(@"OLED_DARKMODE_DESC")];
|
||||||
|
oledDarkMode.hasSwitch = YES;
|
||||||
|
oledDarkMode.switchVisible = YES;
|
||||||
|
oledDarkMode.on = [[NSUserDefaults standardUserDefaults] boolForKey:@"oled_enabled"];
|
||||||
|
oledDarkMode.switchBlock = ^BOOL (YTSettingsCell *cell, BOOL enabled) {
|
||||||
|
[[NSUserDefaults standardUserDefaults] setBool:enabled forKey:@"oled_enabled"];
|
||||||
|
return YES;
|
||||||
|
};
|
||||||
|
|
||||||
|
YTSettingsSectionItem *oledKeyBoard = [[%c(YTSettingsSectionItem) alloc] initWithTitle:LOC(@"OLED_KEYBOARD") titleDescription:LOC(@"OLED_KEYBOARD_DESC")];
|
||||||
|
oledKeyBoard.hasSwitch = YES;
|
||||||
|
oledKeyBoard.switchVisible = YES;
|
||||||
|
oledKeyBoard.on = [[NSUserDefaults standardUserDefaults] boolForKey:@"oledKeyBoard_enabled"];
|
||||||
|
oledKeyBoard.switchBlock = ^BOOL (YTSettingsCell *cell, BOOL enabled) {
|
||||||
|
[[NSUserDefaults standardUserDefaults] setBool:enabled forKey:@"oledKeyBoard_enabled"];
|
||||||
|
return YES;
|
||||||
|
};
|
||||||
|
|
||||||
|
NSMutableArray <YTSettingsSectionItem *> *sectionItems = [NSMutableArray arrayWithArray:@[autoFull, castConfirm, ytMiniPlayer, hideAutoplaySwitch, hideCC, hideHUD, hidePreviousAndNextButton, hideHoverCard, bigYTMiniPlayer, oledDarkMode, oledKeyBoard, reExplore]];
|
||||||
|
[delegate setSectionItems:sectionItems forCategory:uYouPlusSection title:@"uYouPlus" titleDescription:nil headerHidden:NO];
|
||||||
|
}
|
||||||
|
|
||||||
|
- (void)updateSectionForCategory:(NSUInteger)category withEntry:(id)entry {
|
||||||
|
if (category == uYouPlusSection) {
|
||||||
|
[self updateuYouPlusSectionWithEntry:entry];
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
%orig;
|
||||||
|
}
|
||||||
%end
|
%end
|
||||||
+1
-1
Submodule Tweaks/Alderis updated: f8b577ebf7...978ca5c483
+1
-1
Submodule Tweaks/PSHeader updated: c9355cb136...ac9324f441
Submodule Tweaks/Return-YouTube-Dislikes updated: b16a511648...5f86ef7d91
+1
-1
Submodule Tweaks/YTUHD updated: 9916e88bc5...00c5e38ca9
+1
-1
Submodule Tweaks/YouPiP updated: 7a0a820109...7000428368
+1
-1
Submodule Tweaks/YouTubeHeader updated: 71372d2c48...14b3975371
+1
-1
Submodule Tweaks/iSponsorBlock updated: a026656096...a936217c38
+12
-8
@@ -4,26 +4,30 @@
|
|||||||
cd "$(dirname "$0")"
|
cd "$(dirname "$0")"
|
||||||
|
|
||||||
# Check uYou
|
# Check uYou
|
||||||
if [[ ! -f Tweaks/uYou/com.miro.uyou_2.1_iphoneos-arm.deb ]]
|
if [ ! -f Tweaks/uYou/com.miro.uyou_2.1_iphoneos-arm.deb ]
|
||||||
then
|
then
|
||||||
echo -e "==> \033[1muYou v2.1 is not found. Downloading uYou (v2.1)...\033[0m"
|
echo -e "==> \033[1muYou v2.1 is not found. Downloading uYou (v2.1)...\033[0m"
|
||||||
(set -x ; curl https://miro92.com/repo/debs/com.miro.uyou_2.1_iphoneos-arm.deb --output Tweaks/uYou/com.miro.uyou_2.1_iphoneos-arm.deb)
|
(set -x ; curl https://miro92.com/repo/debs/com.miro.uyou_2.1_iphoneos-arm.deb --output Tweaks/uYou/com.miro.uyou_2.1_iphoneos-arm.deb)
|
||||||
else
|
else
|
||||||
echo -e "==> \033[1mFounded uYou (v2.1)!\033[0m"
|
echo -e "==> \033[1mFounded uYou (v2.1)!\033[0m"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Extract uYou
|
# Extract uYou
|
||||||
echo -e "==> \033[1mExtracting uYou...\033[0m"
|
echo -e "==> \033[1mExtracting uYou...\033[0m"
|
||||||
if (cd Tweaks/uYou && tar -xf com.miro.uyou_2.1_iphoneos-arm.deb && tar -xf data.tar.*)
|
if (cd Tweaks/uYou && tar -xf com.miro.uyou_2.1_iphoneos-arm.deb && tar -xf data.tar.*)
|
||||||
then
|
then
|
||||||
echo -e "\033[1m> Extracted uYou!\033[0m"
|
echo -e "\033[1m> Extracted uYou!\033[0m"
|
||||||
else
|
else
|
||||||
echo "> \033[1mCouldn't extract uYou\033[0m"
|
echo "> \033[1mCouldn't extract uYou\033[0m"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Makefile
|
# Makefile
|
||||||
|
if [ -d ./tmp ]
|
||||||
|
then
|
||||||
|
rm -rf ./tmp
|
||||||
|
fi
|
||||||
read -e -p "==> Path to the decrypted YouTube.ipa or YouTube.app: " PATHTOYT
|
read -e -p "==> Path to the decrypted YouTube.ipa or YouTube.app: " PATHTOYT
|
||||||
if [[ $PATHTOYT == *.ipa ]]
|
if [[ $PATHTOYT == *.ipa ]]
|
||||||
then
|
then
|
||||||
unzip -q "$PATHTOYT" -d ./tmp
|
unzip -q "$PATHTOYT" -d ./tmp
|
||||||
rm -rf ./tmp/Payload/YouTube.app/PlugIns/*.appex
|
rm -rf ./tmp/Payload/YouTube.app/PlugIns/*.appex
|
||||||
@@ -31,7 +35,7 @@ then
|
|||||||
make package
|
make package
|
||||||
open ./packages
|
open ./packages
|
||||||
|
|
||||||
elif [[ $PATHTOYT == *.app ]]
|
elif [[ $PATHTOYT == *.app ]]
|
||||||
then
|
then
|
||||||
mkdir -p ./tmp/Payload/
|
mkdir -p ./tmp/Payload/
|
||||||
cp -R "$PATHTOYT" ./tmp/Payload 2>/dev/null
|
cp -R "$PATHTOYT" ./tmp/Payload 2>/dev/null
|
||||||
|
|||||||
@@ -0,0 +1,43 @@
|
|||||||
|
// Settings
|
||||||
|
|
||||||
|
"HIDE_PREVIOUS_AND_NEXT_BUTTON" = "Hide Previous and Next button";
|
||||||
|
"HIDE_PREVIOUS_AND_NEXT_BUTTON_DESC" = "Hide Previous and Next button in video controls overlay.";
|
||||||
|
|
||||||
|
"YT_MINIPLAYER" = "Enable the Miniplayer for all YouTube videos";
|
||||||
|
"YT_MINIPLAYER_DESC" = "Kid videos for example.";
|
||||||
|
|
||||||
|
"CAST_CONFIRM" = "Confirm alert before casting (YTCastConfirm)";
|
||||||
|
"CAST_CONFIRM_DESC" = "Show a confirm alert before casting to prevent accidentally hijacking TV.";
|
||||||
|
|
||||||
|
"HIDE_HOVER_CARD" = "Hide End screens hover cards (YTNoHoverCards)";
|
||||||
|
"HIDE_HOVER_CARD_DESC" = "Hide creator End screens (thumbnails) at the end of videos.";
|
||||||
|
|
||||||
|
"NEW_MINIPLAYER_STYLE" = "New miniplayer bar style (BigYTMiniPlayer)";
|
||||||
|
"NEW_MINIPLAYER_STYLE_DESC" = "App restart is required.";
|
||||||
|
|
||||||
|
"YT_RE_EXPLORE" = "Replace Shorts tab with Explore tab (YTReExplore)";
|
||||||
|
"YT_RE_EXPLORE_DESC" = "App restart is required.";
|
||||||
|
|
||||||
|
"HIDE_SUBTITLES_BUTTON" = "Hide Subtitles button";
|
||||||
|
"HIDE_SUBTITLES_BUTTON_DESC" = "Hide the Subtitles button in video controls overlay.";
|
||||||
|
|
||||||
|
"HIDE_AUTOPLAY_SWITCH" = "Hide Autoplay switch";
|
||||||
|
"HIDE_AUTOPLAY_SWITCH_DESC" = "Hide the Autoplay switch in video controls overlay.";
|
||||||
|
|
||||||
|
"AUTO_FULLSCREEN" = "Auto Full Screen (YTAutoFullScreen)";
|
||||||
|
"AUTO_FULLSCREEN_DESC" = "Autoplay videos at full screen.";
|
||||||
|
|
||||||
|
"HIDE_HUD_MESSAGES" = "Hide HUD Messages";
|
||||||
|
"HIDE_HUD_MESSAGES_DESC" = "Example: CC is turned on/off, Video loop is on,...";
|
||||||
|
|
||||||
|
"OLED_DARKMODE" = "OLED Dark mode (Experimental)";
|
||||||
|
"OLED_DARKMODE_DESC" = "Might not working correctly in some cases. App restart is required after you enable/disable this option.";
|
||||||
|
|
||||||
|
"OLED_KEYBOARD" = "OLED Keyboard (Experimental)";
|
||||||
|
"OLED_KEYBOARD_DESC" = "Might not working correctly in some cases. App restart is required.";
|
||||||
|
|
||||||
|
// YTCastConfirm
|
||||||
|
"CASTING" = "Castings";
|
||||||
|
"MSG_ARE_YOU_SURE" = "Are you sure you want to start casting?";
|
||||||
|
"MSG_YES" = "Yes";
|
||||||
|
"MSG_CANCEL" = "Cancel";
|
||||||
@@ -0,0 +1,43 @@
|
|||||||
|
// Settings
|
||||||
|
|
||||||
|
"HIDE_PREVIOUS_AND_NEXT_BUTTON" = "Masquer les boutons Précédent et Suivant";
|
||||||
|
"HIDE_PREVIOUS_AND_NEXT_BUTTON_DESC" = "Masquer les boutons Précédent et Suivant dans la superposition des contrôles vidéo";
|
||||||
|
|
||||||
|
"YT_MINIPLAYER" = "Activer le mini-lecteur pour toutes les vidéos YouTube";
|
||||||
|
"YT_MINIPLAYER_DESC" = "Vidéos pour enfants par exemple";
|
||||||
|
|
||||||
|
"CAST_CONFIRM" = "Confirmer l'alerte avant le casting (YTCastConfirm)";
|
||||||
|
"CAST_CONFIRM_DESC" = "Afficher une alerte de confirmation avant le casting pour éviter de déclancher accidentellement la télévision";
|
||||||
|
|
||||||
|
"HIDE_HOVER_CARD" = "Masquer les cartes de survol des écrans de fin (YTNoHoverCards)";
|
||||||
|
"HIDE_HOVER_CARD_DESC" = "Masquer les écrans de fin (vignettes) des créateurs à la fin des vidéos";
|
||||||
|
|
||||||
|
"NEW_MINIPLAYER_STYLE" = "Nouveau style de barre de mini-lecteur (BigYTMiniPlayer)";
|
||||||
|
"NEW_MINIPLAYER_STYLE_DESC" = "Un redémarrage de l'application est nécessaire";
|
||||||
|
|
||||||
|
"YT_RE_EXPLORE" = "Remplacer l'onglet Shorts par l'onglet Explorer (YTReExplore)";
|
||||||
|
"YT_RE_EXPLORE_DESC" = "Un redémarrage de l'application est nécessaire";
|
||||||
|
|
||||||
|
"HIDE_SUBTITLES_BUTTON" = "Bouton de masquage des sous-titres";
|
||||||
|
"HIDE_SUBTITLES_BUTTON_DESC" = "Masquer le bouton des sous-titres dans la superposition des contrôles vidéo";
|
||||||
|
|
||||||
|
"HIDE_AUTOPLAY_SWITCH" = "Masquer l'interrupteur de lecture automatique";
|
||||||
|
"HIDE_AUTOPLAY_SWITCH_DESC" = "Masquer le bouton de lecture automatique dans la superposition des contrôles vidéo";
|
||||||
|
|
||||||
|
"AUTO_FULLSCREEN" = "Plein écran automatique (YTAutoFullScreen)";
|
||||||
|
"AUTO_FULLSCREEN_DESC" = "Lecture automatique des vidéos en plein écran";
|
||||||
|
|
||||||
|
"HIDE_HUD_MESSAGES" = "Masquer les messages de l'ATH";
|
||||||
|
"HIDE_HUD_MESSAGES_DESC" = "Exemple : Les sous-titres sont activés/désactivés, la boucle vidéo est activée,...";
|
||||||
|
|
||||||
|
"OLED_DARKMODE" = "Mode sombre OLED (Expérimental)";
|
||||||
|
"OLED_DARKMODE_DESC" = "Peut ne pas fonctionner correctement dans certains cas. Un redémarrage de l'application est nécessaire après avoir activé/désactivé cette option.";
|
||||||
|
|
||||||
|
"OLED_KEYBOARD" = "Clavier OLED (Expérimental)";
|
||||||
|
"OLED_KEYBOARD_DESC" = "Peut ne pas fonctionner correctement dans certains cas. Un redémarrage de l'application est nécessaire.";
|
||||||
|
|
||||||
|
// YTCastConfirm
|
||||||
|
"CASTING" = "Castings";
|
||||||
|
"MSG_ARE_YOU_SURE" = "Êtes-vous sûr de vouloir commencer le casting ?";
|
||||||
|
"MSG_YES" = "Oui";
|
||||||
|
"MSG_CANCEL" = "Annuler";
|
||||||
@@ -0,0 +1,43 @@
|
|||||||
|
// Settings
|
||||||
|
|
||||||
|
"HIDE_PREVIOUS_AND_NEXT_BUTTON" = "Κρύψτε το προηγούμενο και το επόμενο κουμπί";
|
||||||
|
"HIDE_PREVIOUS_AND_NEXT_BUTTON_DESC" = "Κρύψτε το προηγούμενο και το επόμενο κουμπί κατά την αναπαραγωγή βίντεο.";
|
||||||
|
|
||||||
|
"YT_MINIPLAYER" = "Ενεργοποιήστε το miniplayer για όλα τα βίντεο του YouTube";
|
||||||
|
"YT_MINIPLAYER_DESC" = "Τα παιδικά βίντεο για παράδειγμα.";
|
||||||
|
|
||||||
|
"CAST_CONFIRM" = "Επιβεβαιωτικό μήνυμα πριν γίνει Cast(YTCastConfirm)";
|
||||||
|
"CAST_CONFIRM_DESC" = "Να φανεί ένα επιβεβαιωτικό μήνυμα πριν γίνει cast για να αποτρεπτεί η καταλάθως σύνδεση στην τηλεόραση.";
|
||||||
|
|
||||||
|
"HIDE_HOVER_CARD" = "Κρύψτε τις τελικές καρτέλες (YTNoHoverCards)";
|
||||||
|
"HIDE_HOVER_CARD_DESC" = "Κρύψτε τις τελικές καρτέλες από τους δημιουργούς (thumbnails) στο τέλος των βίντεο.";
|
||||||
|
|
||||||
|
"NEW_MINIPLAYER_STYLE" = "Καινούργιο miniplayer θέμα στην μπάρα (BigYTMiniPlayer)";
|
||||||
|
"NEW_MINIPLAYER_STYLE_DESC" = "Απαιτείται επανεκκίνηση της εφαρμογής.";
|
||||||
|
|
||||||
|
"YT_RE_EXPLORE" = "Αντικατάσταση της καρτέλας Shorts με την καρτέλα Explore (YTReExplore)";
|
||||||
|
"YT_RE_EXPLORE_DESC" = "Απαιτείται επανεκκίνηση της εφαρμογής.";
|
||||||
|
|
||||||
|
"HIDE_SUBTITLES_BUTTON" = "Κρύψτε το κουμπί των Υπότιτλων";
|
||||||
|
"HIDE_SUBTITLES_BUTTON_DESC" = "Κρύψτε το κουμπί των Υπότιτλων κατά την αναπαραγωγή βίντεο.";
|
||||||
|
|
||||||
|
"HIDE_AUTOPLAY_SWITCH" = "Κρύψτε τον διακόπτη της αυτόματης αναπαραγωγής";
|
||||||
|
"HIDE_AUTOPLAY_SWITCH_DESC" = "Κρύψτε τον διακόπτη της αυτόματης αναπαραγωγής κατά την αναπαραγωγή βίντεο";
|
||||||
|
|
||||||
|
"AUTO_FULLSCREEN" = "Αυτόματη αναπαραγωγή σε πλήρη οθόνη (YTAutoFullScreen)";
|
||||||
|
"AUTO_FULLSCREEN_DESC" = "Αυτόματη αναπαραγωγή των βίντεο σε πλήρη οθόνη.";
|
||||||
|
|
||||||
|
"HIDE_HUD_MESSAGES" = "Κρύψτε τα μηνύματα του HUD";
|
||||||
|
"HIDE_HUD_MESSAGES_DESC" = "Παράδειγμα: Οι Υπότιτλοι απενεργοποιήθηκαν/ενεργοποιήθηκαν...";
|
||||||
|
|
||||||
|
"OLED_DARKMODE" = "OLED Μαύρο θέμα (Experimental)";
|
||||||
|
"OLED_DARKMODE_DESC" = "Μπορεί να μην δουλέψει σε κάποιες περιπτώσεις. Απαιτείται επανεκκίνηση της εφαρμογής αφού το ενεργοποιήσετε/απενεργοποιήσετε.";
|
||||||
|
|
||||||
|
"OLED_KEYBOARD" = "OLED πληκτρολόγιο (Experimental)";
|
||||||
|
"OLED_KEYBOARD_DESC" = "Μπορεί να μην δουλέψει σε κάποιες περιπτώσεις. Απαιτείται επανεκκίνηση της εφαρμογής.";
|
||||||
|
|
||||||
|
// YTCastConfirm
|
||||||
|
"CASTING" = "Μετάδοση";
|
||||||
|
"MSG_ARE_YOU_SURE" = "Είστε σίγουροι ότι θέλενε να ξεκινήσετε την μετάδοση;";
|
||||||
|
"MSG_YES" = "Ναι";
|
||||||
|
"MSG_CANCEL" = "Ακύρωση";
|
||||||
@@ -0,0 +1,43 @@
|
|||||||
|
/* uYouPlusSettings */
|
||||||
|
|
||||||
|
"HIDE_PREVIOUS_AND_NEXT_BUTTON" = "Скрыть «Пред.» и «След.»";
|
||||||
|
"HIDE_PREVIOUS_AND_NEXT_BUTTON_DESC" = "Убирает кнопки переключения видео «Следующий» и «Предыдущий» с плеера.";
|
||||||
|
|
||||||
|
"YT_MINIPLAYER" = "Мини-плеер для всех видео";
|
||||||
|
"YT_MINIPLAYER_DESC" = "Принудительно активирует мини-плеер для всех видео, включая видео, предназначенное для детей.";
|
||||||
|
|
||||||
|
"CAST_CONFIRM" = "Подтверждение «Трансляции» (YTCastConfirm)";
|
||||||
|
"CAST_CONFIRM_DESC" = "Спрашивать подтверждение перед началом трансляции во избежание случайных подключений к ТВ.";
|
||||||
|
|
||||||
|
"HIDE_HOVER_CARD" = "Скрыть рекомендации (YTNoHoverCards)";
|
||||||
|
"HIDE_HOVER_CARD_DESC" = "Скрывает эскизы, отображаемые по окончанию видеоролика.";
|
||||||
|
|
||||||
|
"NEW_MINIPLAYER_STYLE" = "Мини-плеер в стиле iPad (BigYTMiniPlayer)";
|
||||||
|
"NEW_MINIPLAYER_STYLE_DESC" = "Потребуется перезагрузка.";
|
||||||
|
|
||||||
|
"YT_RE_EXPLORE" = "Вкладка «Навигация» вместо «Shorts»";
|
||||||
|
"YT_RE_EXPLORE_DESC" = "Потребуется перезагрузка.";
|
||||||
|
|
||||||
|
"HIDE_SUBTITLES_BUTTON" = "Скрыть «Субтитры»";
|
||||||
|
"HIDE_SUBTITLES_BUTTON_DESC" = "Скрывает кнопку субтитров с оверлея плеера.";
|
||||||
|
|
||||||
|
"HIDE_AUTOPLAY_SWITCH" = "Скрыть «Автовоспроизведение»";
|
||||||
|
"HIDE_AUTOPLAY_SWITCH_DESC" = "Убирает тумблер «Автовоспроизведение» с оверлея плеера.";
|
||||||
|
|
||||||
|
"AUTO_FULLSCREEN" = "Полноэкранный режим (YTAutoFullScreen)";
|
||||||
|
"AUTO_FULLSCREEN_DESC" = "Автоматически открывает ролики в полноэкранном режиме.";
|
||||||
|
|
||||||
|
"HIDE_HUD_MESSAGES" = "Скрыть сообщения плеера";
|
||||||
|
"HIDE_HUD_MESSAGES_DESC" = "Скрывает надписи YouTube, появляющиеся поверх видео.";
|
||||||
|
|
||||||
|
"OLED_DARKMODE" = "Темный режим для OLED (Бета)";
|
||||||
|
"OLED_DARKMODE_DESC" = "Понадобится перезагрузка при смене цветовой темы приложения. Если OLED-тема не включится, попробуйте переключиться не светлый режим и обратно, а затем перезагрузить приложение.";
|
||||||
|
|
||||||
|
"OLED_KEYBOARD" = "OLED-клавиатура (Бета)";
|
||||||
|
"OLED_KEYBOARD_DESC" = "Возможно, на некоторых устройствах будет работать криво. Потребуется перезагрузка.";
|
||||||
|
|
||||||
|
/* YTCastConfirm */
|
||||||
|
"CASTING" = "Трансляция";
|
||||||
|
"MSG_ARE_YOU_SURE" = "Начать трансляцию экрана?";
|
||||||
|
"MSG_YES" = "Да";
|
||||||
|
"MSG_CANCEL" = "Отмена";
|
||||||
@@ -0,0 +1,52 @@
|
|||||||
|
// How to translate uYouPlus to your languate:
|
||||||
|
//
|
||||||
|
// 1. Fork uYouPlus repo
|
||||||
|
// 2. Rename the temple.lproj folder to your <lang_code>.lproj id. For example: ru.lproj for Russia
|
||||||
|
// 3. Translate each line below after each =
|
||||||
|
// 4. Open a Pull Request
|
||||||
|
//
|
||||||
|
// If your language already exists then feel free to check it and/or improve it!
|
||||||
|
//
|
||||||
|
// Settings
|
||||||
|
|
||||||
|
"HIDE_PREVIOUS_AND_NEXT_BUTTON" = "Hide Previous and Next button";
|
||||||
|
"HIDE_PREVIOUS_AND_NEXT_BUTTON_DESC" = "Hide Previous and Next button in video controls overlay.";
|
||||||
|
|
||||||
|
"YT_MINIPLAYER" = "Enable the Miniplayer for all YouTube videos";
|
||||||
|
"YT_MINIPLAYER_DESC" = "Kid videos for example.";
|
||||||
|
|
||||||
|
"CAST_CONFIRM" = "Confirm alert before casting (YTCastConfirm)";
|
||||||
|
"CAST_CONFIRM_DESC" = "Show a confirm alert before casting to prevent accidentally hijacking TV.";
|
||||||
|
|
||||||
|
"HIDE_HOVER_CARD" = "Hide End screens hover cards (YTNoHoverCards)";
|
||||||
|
"HIDE_HOVER_CARD_DESC" = "Hide creator End screens (thumbnails) at the end of videos.";
|
||||||
|
|
||||||
|
"NEW_MINIPLAYER_STYLE" = "New miniplayer bar style (BigYTMiniPlayer)";
|
||||||
|
"NEW_MINIPLAYER_STYLE_DESC" = "App restart is required.";
|
||||||
|
|
||||||
|
"YT_RE_EXPLORE" = "Replace Shorts tab with Explore tab (YTReExplore)";
|
||||||
|
"YT_RE_EXPLORE_DESC" = "App restart is required.";
|
||||||
|
|
||||||
|
"HIDE_SUBTITLES_BUTTON" = "Hide Subtitles button";
|
||||||
|
"HIDE_SUBTITLES_BUTTON_DESC" = "Hide the Subtitles button in video controls overlay.";
|
||||||
|
|
||||||
|
"HIDE_AUTOPLAY_SWITCH" = "Hide Autoplay switch";
|
||||||
|
"HIDE_AUTOPLAY_SWITCH_DESC" = "Hide the Autoplay switch in video controls overlay.";
|
||||||
|
|
||||||
|
"AUTO_FULLSCREEN" = "Auto Full Screen (YTAutoFullScreen)";
|
||||||
|
"AUTO_FULLSCREEN_DESC" = "Autoplay videos at full screen.";
|
||||||
|
|
||||||
|
"HIDE_HUD_MESSAGES" = "Hide HUD Messages";
|
||||||
|
"HIDE_HUD_MESSAGES_DESC" = "Example: CC is turned on/off, Video loop is on,...";
|
||||||
|
|
||||||
|
"OLED_DARKMODE" = "OLED Dark mode (Experimental)";
|
||||||
|
"OLED_DARKMODE_DESC" = "Might not working correctly in some cases. App restart is required after you enable/disable this option.";
|
||||||
|
|
||||||
|
"OLED_KEYBOARD" = "OLED Keyboard (Experimental)";
|
||||||
|
"OLED_KEYBOARD_DESC" = "Might not working correctly in some cases. App restart is required.";
|
||||||
|
|
||||||
|
// YTCastConfirm
|
||||||
|
"CASTING" = "Castings";
|
||||||
|
"MSG_ARE_YOU_SURE" = "Are you sure you want to start casting?";
|
||||||
|
"MSG_YES" = "Yes";
|
||||||
|
"MSG_CANCEL" = "Cancel";
|
||||||
@@ -0,0 +1,43 @@
|
|||||||
|
// Settings
|
||||||
|
|
||||||
|
"HIDE_PREVIOUS_AND_NEXT_BUTTON" = "Ẩn nút Next và nút Previous";
|
||||||
|
"HIDE_PREVIOUS_AND_NEXT_BUTTON_DESC" = "Ẩn nút Next và nút Previous trong trình phát video.";
|
||||||
|
|
||||||
|
"YT_MINIPLAYER" = "Cho phép trình phát thu nhỏ chạy với mọi video";
|
||||||
|
"YT_MINIPLAYER_DESC" = "Ví dụ: Video cho trẻ em.";
|
||||||
|
|
||||||
|
"CAST_CONFIRM" = "Xác nhận trước khi cast video (YTCastConfirm)";
|
||||||
|
"CAST_CONFIRM_DESC" = "Hiện hộp thoại xác nhận trước khi cast video sang TV để ngăn việc vô tình làm gián đoạn TV.";
|
||||||
|
|
||||||
|
"HIDE_HOVER_CARD" = "Ẩn video dạng thumbnails (YTNoHoverCards)";
|
||||||
|
"HIDE_HOVER_CARD_DESC" = "Ẩn các video dạng thu nhỏ (thumbnails) xuất hiện ở gần cuối video.";
|
||||||
|
|
||||||
|
"NEW_MINIPLAYER_STYLE" = "Giao diện trình phát thu nhỏ kiểu mới (BigYTMiniPlayer)";
|
||||||
|
"NEW_MINIPLAYER_STYLE_DESC" = "Cần khởi động lại ứng dụng.";
|
||||||
|
|
||||||
|
"YT_RE_EXPLORE" = "Thay thế tab Shorts bằng tab Khám phá (YTReExplore)";
|
||||||
|
"YT_RE_EXPLORE_DESC" = "Cần khởi động lại ứng dụng.";
|
||||||
|
|
||||||
|
"HIDE_SUBTITLES_BUTTON" = "Ẩn nút bật Phụ đề";
|
||||||
|
"HIDE_SUBTITLES_BUTTON_DESC" = "Ẩn nút bật phụ đề trong trình phát video.";
|
||||||
|
|
||||||
|
"HIDE_AUTOPLAY_SWITCH" = "Ẩn công tắc Tự động phát";
|
||||||
|
"HIDE_AUTOPLAY_SWITCH_DESC" = "Ẩn công tắc Tự động phát trong trình phát video.";
|
||||||
|
|
||||||
|
"AUTO_FULLSCREEN" = "Tự động toàn màn hình (YTAutoFullScreen)";
|
||||||
|
"AUTO_FULLSCREEN_DESC" = "Tự động phát video ở chế độ toàn màn hình.";
|
||||||
|
|
||||||
|
"HIDE_HUD_MESSAGES" = "Ẩn tin nhắn HUD";
|
||||||
|
"HIDE_HUD_MESSAGES_DESC" = "Ví dụ: Đã bật/tắt phụ đề, Tính năng phát video lặp lại đang bật,...";
|
||||||
|
|
||||||
|
"OLED_DARKMODE" = "Chế độ tối OLED (Thử nghiệm)";
|
||||||
|
"OLED_DARKMODE_DESC" = "Cần khởi động lại ứng dụng nếu bạn bật/tắt tính năng này, nhưng không cần khởi động lại ứng dụng nếu chuyển giữa chế độ Sáng và chế độ Tối.";
|
||||||
|
|
||||||
|
"OLED_KEYBOARD" = "Bàn phím OLED (Thử nghiệm)";
|
||||||
|
"OLED_KEYBOARD_DESC" = "Tính năng này có thể không hoạt động tốt trong một vài trường hợp. Cần khởi động lại ứng dụng.";
|
||||||
|
|
||||||
|
// YTCastConfirm
|
||||||
|
"CASTING" = "Truyền video";
|
||||||
|
"MSG_ARE_YOU_SURE" = "Bạn có muốn bắt đầu truyền video không?";
|
||||||
|
"MSG_YES" = "Có";
|
||||||
|
"MSG_CANCEL" = "Không";
|
||||||
+410
-417
@@ -1,9 +1,9 @@
|
|||||||
#import <UIKit/UIKit.h>
|
#import <UIKit/UIKit.h>
|
||||||
#import <Foundation/Foundation.h>
|
#import <Foundation/Foundation.h>
|
||||||
#import <objc/runtime.h>
|
#import <objc/runtime.h>
|
||||||
|
#import <dlfcn.h>
|
||||||
#import "Header.h"
|
#import "Header.h"
|
||||||
#import "Tweaks/YouTubeHeader/YTVideoQualitySwitchOriginalController.h"
|
#import "Tweaks/YouTubeHeader/YTVideoQualitySwitchOriginalController.h"
|
||||||
#import "Tweaks/YouTubeHeader/YTSettingsSectionItem.h"
|
|
||||||
#import "Tweaks/YouTubeHeader/YTPlayerViewController.h"
|
#import "Tweaks/YouTubeHeader/YTPlayerViewController.h"
|
||||||
#import "Tweaks/YouTubeHeader/YTWatchController.h"
|
#import "Tweaks/YouTubeHeader/YTWatchController.h"
|
||||||
#import "Tweaks/YouTubeHeader/YTIGuideResponse.h"
|
#import "Tweaks/YouTubeHeader/YTIGuideResponse.h"
|
||||||
@@ -11,21 +11,41 @@
|
|||||||
#import "Tweaks/YouTubeHeader/YTIPivotBarSupportedRenderers.h"
|
#import "Tweaks/YouTubeHeader/YTIPivotBarSupportedRenderers.h"
|
||||||
#import "Tweaks/YouTubeHeader/YTIPivotBarRenderer.h"
|
#import "Tweaks/YouTubeHeader/YTIPivotBarRenderer.h"
|
||||||
#import "Tweaks/YouTubeHeader/YTIBrowseRequest.h"
|
#import "Tweaks/YouTubeHeader/YTIBrowseRequest.h"
|
||||||
#include <RemoteLog.h>
|
#import "Tweaks/YouTubeHeader/YTCommonColorPalette.h"
|
||||||
|
#import "Tweaks/YouTubeHeader/ASCollectionView.h"
|
||||||
|
|
||||||
|
// Tweak's bundle for Localizations support - @PoomSmart - https://github.com/PoomSmart/YouPiP/commit/aea2473f64c75d73cab713e1e2d5d0a77675024f
|
||||||
|
NSBundle *uYouPlusBundle() {
|
||||||
|
static NSBundle *bundle = nil;
|
||||||
|
static dispatch_once_t onceToken;
|
||||||
|
dispatch_once(&onceToken, ^{
|
||||||
|
NSString *tweakBundlePath = [[NSBundle mainBundle] pathForResource:@"uYouPlus" ofType:@"bundle"];
|
||||||
|
bundle = [NSBundle bundleWithPath:tweakBundlePath];
|
||||||
|
});
|
||||||
|
return bundle;
|
||||||
|
}
|
||||||
|
NSBundle *tweakBundle = uYouPlusBundle();
|
||||||
|
|
||||||
|
//
|
||||||
BOOL hideHUD() {
|
BOOL hideHUD() {
|
||||||
return [[NSUserDefaults standardUserDefaults] boolForKey:@"hideHUD_enabled"];
|
return [[NSUserDefaults standardUserDefaults] boolForKey:@"hideHUD_enabled"];
|
||||||
}
|
}
|
||||||
BOOL oled() {
|
BOOL oled() {
|
||||||
return [[NSUserDefaults standardUserDefaults] boolForKey:@"oled_enabled"];
|
return [[NSUserDefaults standardUserDefaults] boolForKey:@"oled_enabled"];
|
||||||
}
|
}
|
||||||
|
BOOL oledKB() {
|
||||||
|
return [[NSUserDefaults standardUserDefaults] boolForKey:@"oledKeyBoard_enabled"];
|
||||||
|
}
|
||||||
|
BOOL isDarkMode() {
|
||||||
|
return ([[NSUserDefaults standardUserDefaults] integerForKey:@"page_style"] == 1);
|
||||||
|
}
|
||||||
BOOL autoFullScreen() {
|
BOOL autoFullScreen() {
|
||||||
return [[NSUserDefaults standardUserDefaults] boolForKey:@"autofull_enabled"];
|
return [[NSUserDefaults standardUserDefaults] boolForKey:@"autoFull_enabled"];
|
||||||
}
|
}
|
||||||
BOOL noHoverCard() {
|
BOOL hideHoverCard() {
|
||||||
return [[NSUserDefaults standardUserDefaults] boolForKey:@"hover_cards_enabled"];
|
return [[NSUserDefaults standardUserDefaults] boolForKey:@"hideHoverCards_enabled"];
|
||||||
}
|
}
|
||||||
BOOL ReExplore() {
|
BOOL reExplore() {
|
||||||
return [[NSUserDefaults standardUserDefaults] boolForKey:@"reExplore_enabled"];
|
return [[NSUserDefaults standardUserDefaults] boolForKey:@"reExplore_enabled"];
|
||||||
}
|
}
|
||||||
BOOL bigYTMiniPlayer() {
|
BOOL bigYTMiniPlayer() {
|
||||||
@@ -37,41 +57,60 @@ BOOL hideCC() {
|
|||||||
BOOL hideAutoplaySwitch() {
|
BOOL hideAutoplaySwitch() {
|
||||||
return [[NSUserDefaults standardUserDefaults] boolForKey:@"hideAutoplaySwitch_enabled"];
|
return [[NSUserDefaults standardUserDefaults] boolForKey:@"hideAutoplaySwitch_enabled"];
|
||||||
}
|
}
|
||||||
|
BOOL hidePreviousAndNextButton() {
|
||||||
|
return [[NSUserDefaults standardUserDefaults] boolForKey:@"hidePreviousAndNextButton_enabled"];
|
||||||
|
}
|
||||||
BOOL castConfirm() {
|
BOOL castConfirm() {
|
||||||
return [[NSUserDefaults standardUserDefaults] boolForKey:@"castConfirm_enabled"];
|
return [[NSUserDefaults standardUserDefaults] boolForKey:@"castConfirm_enabled"];
|
||||||
}
|
}
|
||||||
|
BOOL ytMiniPlayer() {
|
||||||
|
return [[NSUserDefaults standardUserDefaults] boolForKey:@"ytMiniPlayer_enabled"];
|
||||||
|
}
|
||||||
|
|
||||||
UIColor* oledColor = [UIColor colorWithRed:0.0 green:0.0 blue:0.0 alpha:1.0];
|
# pragma mark - Tweaks
|
||||||
|
// YTMiniPlayerEnabler: https://github.com/level3tjg/YTMiniplayerEnabler/
|
||||||
|
%hook YTWatchMiniBarViewController
|
||||||
|
- (void)updateMiniBarPlayerStateFromRenderer {
|
||||||
|
if (ytMiniPlayer()) {}
|
||||||
|
else { return %orig; }
|
||||||
|
}
|
||||||
|
%end
|
||||||
|
|
||||||
// Hide CC / Autoplay switch
|
// Hide CC / Autoplay switch / Next & Previous button
|
||||||
%hook YTMainAppControlsOverlayView
|
%hook YTMainAppControlsOverlayView
|
||||||
- (void)layoutSubviews {
|
- (void)setClosedCaptionsOrSubtitlesButtonAvailable:(BOOL)arg1 { // hide CC button
|
||||||
%orig();
|
if (hideCC()) { return %orig(NO); }
|
||||||
if (hideAutoplaySwitch()) {
|
else { return %orig; }
|
||||||
MSHookIvar<UIView *>(self, "_autonavSwitch").hidden = YES;
|
}
|
||||||
}
|
- (void)setAutoplaySwitchButtonRenderer:(id)arg1 { // hide Autoplay
|
||||||
if (hideCC()) {
|
if (hideAutoplaySwitch()) {}
|
||||||
MSHookIvar<UIView *>(self, "_closedCaptionsOrSubtitlesButton").hidden = YES;
|
else { return %orig; }
|
||||||
}
|
}
|
||||||
|
- (void)layoutSubviews { // hide Next & Previous button
|
||||||
|
%orig;
|
||||||
|
if (hidePreviousAndNextButton()) {
|
||||||
|
MSHookIvar<YTMainAppControlsOverlayView *>(self, "_nextButton").hidden = YES;
|
||||||
|
MSHookIvar<YTMainAppControlsOverlayView *>(self, "_previousButton").hidden = YES;
|
||||||
|
// YouTube love beta testing :/
|
||||||
|
MSHookIvar<YTTransportControlsButtonView *>(self, "_nextButtonView").hidden = YES;
|
||||||
|
MSHookIvar<YTTransportControlsButtonView *>(self, "_previousButtonView").hidden = YES;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
%end
|
%end
|
||||||
|
|
||||||
// Hide HUD Messages
|
// Hide HUD Messages
|
||||||
%hook YTHUDMessageView
|
%hook YTHUDMessageView
|
||||||
- (id)initWithMessage:(id)arg1 dismissHandler:(id)arg2 {
|
- (id)initWithMessage:(id)arg1 dismissHandler:(id)arg2 {
|
||||||
if (hideHUD()) {
|
return hideHUD() ? nil : %orig;
|
||||||
return NULL;
|
|
||||||
} else { return %orig; }
|
|
||||||
}
|
}
|
||||||
%end
|
%end
|
||||||
|
|
||||||
// YTAutoFullScreen: https://github.com/PoomSmart/YTAutoFullScreen/
|
// YTAutoFullScreen: https://github.com/PoomSmart/YTAutoFullScreen/
|
||||||
%hook YTPlayerViewController
|
%hook YTPlayerViewController
|
||||||
- (void)loadWithPlayerTransition:(id)arg1 playbackConfig:(id)arg2 {
|
- (void)loadWithPlayerTransition:(id)arg1 playbackConfig:(id)arg2 {
|
||||||
if (autoFullScreen()) {
|
|
||||||
%orig;
|
%orig;
|
||||||
[NSTimer scheduledTimerWithTimeInterval:0.75 target:self selector:@selector(autoFullscreen) userInfo:nil repeats:NO];
|
if (autoFullScreen())
|
||||||
} else { return %orig; }
|
[NSTimer scheduledTimerWithTimeInterval:0.75 target:self selector:@selector(autoFullscreen) userInfo:nil repeats:NO];
|
||||||
}
|
}
|
||||||
%new
|
%new
|
||||||
- (void)autoFullscreen {
|
- (void)autoFullscreen {
|
||||||
@@ -83,44 +122,44 @@ UIColor* oledColor = [UIColor colorWithRed:0.0 green:0.0 blue:0.0 alpha:1.0];
|
|||||||
// YTNoHoverCards: https://github.com/level3tjg/YTNoHoverCards
|
// YTNoHoverCards: https://github.com/level3tjg/YTNoHoverCards
|
||||||
%hook YTCreatorEndscreenView
|
%hook YTCreatorEndscreenView
|
||||||
- (void)setHidden:(BOOL)hidden {
|
- (void)setHidden:(BOOL)hidden {
|
||||||
if (!noHoverCard())
|
if (hideHoverCard())
|
||||||
hidden = YES;
|
hidden = YES;
|
||||||
%orig;
|
%orig;
|
||||||
}
|
}
|
||||||
%end
|
%end
|
||||||
|
|
||||||
//YTCastConfirm: https://github.com/JamieBerghmans/YTCastConfirm
|
//YTCastConfirm: https://github.com/JamieBerghmans/YTCastConfirm
|
||||||
%hook MDXPlaybackRouteButtonController
|
%hook MDXPlaybackRouteButtonController
|
||||||
-(void)didPressButton:(id)arg1 {
|
- (void)didPressButton:(id)arg1 {
|
||||||
if (castConfirm()) {
|
if (castConfirm()) {
|
||||||
UIAlertController* alertController = [%c(UIAlertController) alertControllerWithTitle:@"Casting"
|
UIAlertController* alertController = [%c(UIAlertController) alertControllerWithTitle:LOC(@"CASTING")
|
||||||
message:@"Are you sure you want to start casting?"
|
message:LOC(@"MSG_ARE_YOU_SURE")
|
||||||
preferredStyle:UIAlertControllerStyleAlert];
|
preferredStyle:UIAlertControllerStyleAlert];
|
||||||
UIAlertAction* defaultAction = [%c(UIAlertAction) actionWithTitle:@"Yes" style:UIAlertActionStyleDefault handler:^(UIAlertAction * action) {
|
UIAlertAction* defaultAction = [%c(UIAlertAction) actionWithTitle:LOC(@"MSG_YES") style:UIAlertActionStyleDefault handler:^(UIAlertAction * action) {
|
||||||
%orig;
|
%orig;
|
||||||
}];
|
}];
|
||||||
|
|
||||||
UIAlertAction* noButton = [%c(UIAlertAction)
|
UIAlertAction* noButton = [%c(UIAlertAction)
|
||||||
actionWithTitle:@"Cancel"
|
actionWithTitle:LOC(@"MSG_CANCEL")
|
||||||
style:UIAlertActionStyleDefault
|
style:UIAlertActionStyleDefault
|
||||||
handler: ^(UIAlertAction * action) {
|
handler: ^(UIAlertAction * action) {
|
||||||
return;
|
return;
|
||||||
}];
|
}];
|
||||||
|
|
||||||
[alertController addAction:defaultAction];
|
[alertController addAction:defaultAction];
|
||||||
[alertController addAction:noButton];
|
[alertController addAction:noButton];
|
||||||
|
|
||||||
id rootViewController = [%c(UIApplication) sharedApplication].delegate.window.rootViewController;
|
id rootViewController = [%c(UIApplication) sharedApplication].delegate.window.rootViewController;
|
||||||
if([rootViewController isKindOfClass:[%c(UINavigationController) class]]) {
|
if ([rootViewController isKindOfClass:[%c(UINavigationController) class]]) {
|
||||||
rootViewController = ((UINavigationController *)rootViewController).viewControllers.firstObject;
|
rootViewController = ((UINavigationController *)rootViewController).viewControllers.firstObject;
|
||||||
}
|
}
|
||||||
if([rootViewController isKindOfClass:[%c(UITabBarController) class]]) {
|
if ([rootViewController isKindOfClass:[%c(UITabBarController) class]]) {
|
||||||
rootViewController = ((UITabBarController *)rootViewController).selectedViewController;
|
rootViewController = ((UITabBarController *)rootViewController).selectedViewController;
|
||||||
}
|
}
|
||||||
if ([rootViewController presentedViewController] != nil) {
|
if ([rootViewController presentedViewController] != nil) {
|
||||||
rootViewController = [rootViewController presentedViewController];
|
rootViewController = [rootViewController presentedViewController];
|
||||||
}
|
}
|
||||||
[rootViewController presentViewController:alertController animated:YES completion:nil];
|
[rootViewController presentViewController:alertController animated:YES completion:nil];
|
||||||
} else { return %orig; }
|
} else { return %orig; }
|
||||||
}
|
}
|
||||||
%end
|
%end
|
||||||
@@ -148,432 +187,382 @@ UIColor* oledColor = [UIColor colorWithRed:0.0 green:0.0 blue:0.0 alpha:1.0];
|
|||||||
%hook YTColdConfig
|
%hook YTColdConfig
|
||||||
- (BOOL)shouldUseAppThemeSetting { return YES; }
|
- (BOOL)shouldUseAppThemeSetting { return YES; }
|
||||||
- (BOOL)respectDeviceCaptionSetting { return NO; }
|
- (BOOL)respectDeviceCaptionSetting { return NO; }
|
||||||
|
- (BOOL)isEnhancedSearchBarEnabled { return YES; }
|
||||||
%end
|
%end
|
||||||
|
|
||||||
// OLED
|
// NOYTPremium - https://github.com/PoomSmart/NoYTPremium/
|
||||||
// Thanks u/DGh0st for his very well explained comment - https://www.reddit.com/r/jailbreakdevelopers/comments/9uape7/comment/e94sq80/
|
%hook YTCommerceEventGroupHandler
|
||||||
// Thanks sinfool for his flex patch which brings OLED Dark mode for YouTube - "Color Customizer (YouTube) OLED"
|
- (void)addEventHandlers {}
|
||||||
|
%end
|
||||||
|
|
||||||
|
%hook YTInterstitialPromoEventGroupHandler
|
||||||
|
- (void)addEventHandlers {}
|
||||||
|
%end
|
||||||
|
|
||||||
|
%hook YTPromosheetEventGroupHandler
|
||||||
|
- (void)addEventHandlers {}
|
||||||
|
%end
|
||||||
|
|
||||||
|
%hook YTPromoThrottleController
|
||||||
|
- (BOOL)canShowThrottledPromo { return NO; }
|
||||||
|
- (BOOL)canShowThrottledPromoWithFrequencyCap:(id)arg1 { return NO; }
|
||||||
|
- (BOOL)canShowThrottledPromoWithFrequencyCaps:(id)arg1 { return NO; }
|
||||||
|
%end
|
||||||
|
|
||||||
|
%hook YTIShowFullscreenInterstitialCommand
|
||||||
|
- (BOOL)shouldThrottleInterstitial { return YES; }
|
||||||
|
%end
|
||||||
|
|
||||||
|
%hook YTSurveyController
|
||||||
|
- (void)showSurveyWithRenderer:(id)arg1 surveyParentResponder:(id)arg2 {}
|
||||||
|
%end
|
||||||
|
|
||||||
|
// Enable Shorts scroll bar - level3tjg - https://reddit.com/r/jailbreak/comments/v29yvk/_/iasl1l0/
|
||||||
|
%hook YTReelPlayerViewControllerSub
|
||||||
|
- (BOOL)shouldEnablePlayerBar { return YES; }
|
||||||
|
%end
|
||||||
|
|
||||||
|
/*
|
||||||
|
// Hide the download playlist button of uYou cuz it's broken ?!
|
||||||
|
// Why aren't you working?? :/
|
||||||
|
%hook YTPlaylistHeaderViewController
|
||||||
|
- (void)viewDidLoad {
|
||||||
|
%orig;
|
||||||
|
self.downloadsButton.hidden = YES;
|
||||||
|
}
|
||||||
|
%end
|
||||||
|
|
||||||
|
// Workaround for issue #54
|
||||||
|
%hook YTMainAppVideoPlayerOverlayViewController
|
||||||
|
- (void)updateRelatedVideos {
|
||||||
|
if ([[NSUserDefaults standardUserDefaults] boolForKey:@"relatedVideosAtTheEndOfYTVideos"] == NO) {}
|
||||||
|
else { return %orig; }
|
||||||
|
}
|
||||||
|
%end
|
||||||
|
*/
|
||||||
|
|
||||||
|
# pragma mark - IAmYouTube - https://github.com/PoomSmart/IAmYouTube/
|
||||||
|
%hook YTVersionUtils
|
||||||
|
+ (NSString *)appName { return YT_NAME; }
|
||||||
|
+ (NSString *)appID { return YT_BUNDLE_ID; }
|
||||||
|
%end
|
||||||
|
|
||||||
|
%hook GCKBUtils
|
||||||
|
+ (NSString *)appIdentifier { return YT_BUNDLE_ID; }
|
||||||
|
%end
|
||||||
|
|
||||||
|
%hook GPCDeviceInfo
|
||||||
|
+ (NSString *)bundleId { return YT_BUNDLE_ID; }
|
||||||
|
%end
|
||||||
|
|
||||||
|
%hook OGLBundle
|
||||||
|
+ (NSString *)shortAppName { return YT_NAME; }
|
||||||
|
%end
|
||||||
|
|
||||||
|
%hook GVROverlayView
|
||||||
|
+ (NSString *)appName { return YT_NAME; }
|
||||||
|
%end
|
||||||
|
|
||||||
|
%hook OGLPhenotypeFlagServiceImpl
|
||||||
|
- (NSString *)bundleId { return YT_BUNDLE_ID; }
|
||||||
|
%end
|
||||||
|
|
||||||
|
%hook SSOConfiguration
|
||||||
|
- (id)initWithClientID:(id)clientID supportedAccountServices:(id)supportedAccountServices {
|
||||||
|
self = %orig;
|
||||||
|
[self setValue:YT_NAME forKey:@"_shortAppName"];
|
||||||
|
[self setValue:YT_BUNDLE_ID forKey:@"_applicationIdentifier"];
|
||||||
|
return self;
|
||||||
|
}
|
||||||
|
%end
|
||||||
|
|
||||||
|
%hook NSBundle
|
||||||
|
- (NSString *)bundleIdentifier {
|
||||||
|
NSArray *address = [NSThread callStackReturnAddresses];
|
||||||
|
Dl_info info = {0};
|
||||||
|
if (dladdr((void *)[address[2] longLongValue], &info) == 0)
|
||||||
|
return %orig;
|
||||||
|
NSString *path = [NSString stringWithUTF8String:info.dli_fname];
|
||||||
|
if ([path hasPrefix:NSBundle.mainBundle.bundlePath])
|
||||||
|
return YT_BUNDLE_ID;
|
||||||
|
return %orig;
|
||||||
|
}
|
||||||
|
- (id)objectForInfoDictionaryKey:(NSString *)key {
|
||||||
|
if ([key isEqualToString:@"CFBundleIdentifier"])
|
||||||
|
return YT_BUNDLE_ID;
|
||||||
|
if ([key isEqualToString:@"CFBundleDisplayName"] || [key isEqualToString:@"CFBundleName"])
|
||||||
|
return YT_NAME;
|
||||||
|
return %orig;
|
||||||
|
}
|
||||||
|
%end
|
||||||
|
|
||||||
|
# pragma mark - OLED dark mode by BandarHL
|
||||||
|
|
||||||
|
UIColor* oledColor = [UIColor colorWithRed:0.0 green:0.0 blue:0.0 alpha:1.0];
|
||||||
|
|
||||||
%group gOLED
|
%group gOLED
|
||||||
%hook UIView
|
%hook YTCommonColorPalette
|
||||||
-(void)setBackgroundColor:(id)arg1 {
|
- (UIColor *)brandBackgroundSolid {
|
||||||
if ([self.nextResponder isKindOfClass:%c(DownloadedVC)]) //uYou
|
if (self.pageStyle == 1) {
|
||||||
arg1 = oledColor;
|
return oledColor;
|
||||||
if ([self.nextResponder isKindOfClass:%c(DownloadsPagerVC)]) //uYou
|
|
||||||
arg1 = oledColor;
|
|
||||||
if ([self.nextResponder isKindOfClass:%c(DownloadingVC)]) //uYou
|
|
||||||
arg1 = oledColor;
|
|
||||||
if ([self.nextResponder isKindOfClass:%c(PlayerVC)]) //uYou
|
|
||||||
arg1 = oledColor;
|
|
||||||
if ([self.nextResponder isKindOfClass:%c(YTLinkCell)])
|
|
||||||
arg1 = oledColor;
|
|
||||||
if ([self.nextResponder isKindOfClass:%c(YTCommentsHeaderView)])
|
|
||||||
arg1 = oledColor;
|
|
||||||
if ([self.nextResponder isKindOfClass:%c(YTSearchView)])
|
|
||||||
arg1 = oledColor;
|
|
||||||
if ([self.nextResponder isKindOfClass:%c(YTSearchBoxView)])
|
|
||||||
arg1 = oledColor;
|
|
||||||
if ([self.nextResponder isKindOfClass:%c(YTEngagementPanelHeaderView)])
|
|
||||||
arg1 = oledColor;
|
|
||||||
if ([self.nextResponder isKindOfClass:%c(YTEngagementPanelView)])
|
|
||||||
arg1 = oledColor;
|
|
||||||
if ([self.nextResponder isKindOfClass:%c(YTPivotBarView)])
|
|
||||||
arg1 = oledColor;
|
|
||||||
if ([self.nextResponder isKindOfClass:%c(YTHUDMessageView)])
|
|
||||||
arg1 = oledColor;
|
|
||||||
if ([self.nextResponder isKindOfClass:%c(YTChipCloudCell)])
|
|
||||||
arg1 = oledColor;
|
|
||||||
if ([self.nextResponder isKindOfClass:%c(YCHLiveChatTextCell)])
|
|
||||||
arg1 = oledColor;
|
|
||||||
if ([self.nextResponder isKindOfClass:%c(YCHLiveChatView)])
|
|
||||||
arg1 = oledColor;
|
|
||||||
if ([self.nextResponder isKindOfClass:%c(YCHLiveChatViewerEngagementCell)])
|
|
||||||
arg1 = oledColor;
|
|
||||||
if ([self.nextResponder isKindOfClass:%c(YTSlideForActionsView)])
|
|
||||||
arg1 = oledColor;
|
|
||||||
if ([self.nextResponder isKindOfClass:%c(YTPlaylistHeaderView)])
|
|
||||||
arg1 = oledColor;
|
|
||||||
if ([self.nextResponder isKindOfClass:%c(YTAsyncCollectionView)])
|
|
||||||
arg1 = oledColor;
|
|
||||||
if ([self.nextResponder isKindOfClass:%c(YTFeedHeaderView)])
|
|
||||||
arg1 = oledColor;
|
|
||||||
if ([self.nextResponder isKindOfClass:%c(YTMessageCell)])
|
|
||||||
arg1 = oledColor;
|
|
||||||
if ([self.nextResponder isKindOfClass:%c(YTPlaylistPanelProminentThumbnailVideoCell)])
|
|
||||||
arg1 = oledColor;
|
|
||||||
if ([self.nextResponder isKindOfClass:%c(ASWAppSwitcherCollectionViewCell)])
|
|
||||||
arg1 = oledColor;
|
|
||||||
if ([self.nextResponder isKindOfClass:%c(YTEditSheetControllerHeader)])
|
|
||||||
arg1 = oledColor;
|
|
||||||
if ([self.nextResponder isKindOfClass:%c(YTDialogContainerScrollView)])
|
|
||||||
arg1 = oledColor;
|
|
||||||
%orig;
|
|
||||||
}
|
|
||||||
//- (void)layoutSubviews {
|
|
||||||
// %orig;
|
|
||||||
// if ([self.nextResponder isKindOfClass:%c(YTALDialog)])
|
|
||||||
// self.backgroundColor = oledColor;
|
|
||||||
//}
|
|
||||||
%end
|
|
||||||
|
|
||||||
%hook UIControl // this sucks I know :/
|
|
||||||
-(void)setBackgroundColor:(id)arg1 {
|
|
||||||
if ([self.nextResponder isKindOfClass:%c(YTShareMainView)])
|
|
||||||
arg1 = oledColor;
|
|
||||||
%orig;
|
|
||||||
}
|
|
||||||
%end
|
|
||||||
|
|
||||||
%hook YTAsyncCollectionView
|
|
||||||
-(void)setBackgroundColor:(id)arg1 {
|
|
||||||
if([self.nextResponder isKindOfClass:%c(YTRelatedVideosCollectionViewController)]) {
|
|
||||||
arg1 = [oledColor colorWithAlphaComponent:0.0];
|
|
||||||
} else if([self.nextResponder isKindOfClass:%c(YTFullscreenMetadataHighlightsCollectionViewController)]) {
|
|
||||||
arg1 = [oledColor colorWithAlphaComponent:0.0];
|
|
||||||
} else {
|
|
||||||
arg1 = oledColor;
|
|
||||||
}
|
}
|
||||||
%orig;
|
return %orig;
|
||||||
|
}
|
||||||
|
- (UIColor *)brandBackgroundPrimary {
|
||||||
|
if (self.pageStyle == 1) {
|
||||||
|
return oledColor;
|
||||||
|
}
|
||||||
|
return %orig;
|
||||||
|
}
|
||||||
|
- (UIColor *)brandBackgroundSecondary {
|
||||||
|
if (self.pageStyle == 1) {
|
||||||
|
return oledColor;
|
||||||
|
}
|
||||||
|
return %orig;
|
||||||
|
}
|
||||||
|
- (UIColor *)staticBrandBlack {
|
||||||
|
if (self.pageStyle == 1) {
|
||||||
|
return oledColor;
|
||||||
|
}
|
||||||
|
return %orig;
|
||||||
|
}
|
||||||
|
- (UIColor *)generalBackgroundA {
|
||||||
|
if (self.pageStyle == 1) {
|
||||||
|
return oledColor;
|
||||||
|
}
|
||||||
|
return %orig;
|
||||||
}
|
}
|
||||||
%end
|
%end
|
||||||
|
|
||||||
%hook YTDialogContainerScrollView
|
// Account view controller
|
||||||
-(void)setBackgroundColor:(id)arg1 {
|
%hook YTAccountPanelBodyViewController
|
||||||
arg1 = oledColor;
|
- (UIColor *)backgroundColor:(NSInteger)pageStyle {
|
||||||
%orig;
|
if (pageStyle == 1) {
|
||||||
|
return oledColor;
|
||||||
|
}
|
||||||
|
return %orig;
|
||||||
}
|
}
|
||||||
%end
|
%end
|
||||||
|
|
||||||
%hook YTTopAlignedView
|
%hook YTInnerTubeCollectionViewController
|
||||||
-(void)setBackgroundColor:(id)arg1 {
|
- (UIColor *)backgroundColor:(NSInteger)pageStyle {
|
||||||
arg1 = oledColor;
|
if (pageStyle == 1) {
|
||||||
%orig;
|
return oledColor;
|
||||||
}
|
}
|
||||||
-(void)layoutSubviews { // Dune - https://github.com/Skittyblock/Dune/blob/9b1df9790230115b7553cc9dbadf36889018d7f9/Tweak.xm#L70
|
return %orig;
|
||||||
%orig;
|
|
||||||
MSHookIvar<UIView *>(self, "_contentView").backgroundColor = oledColor;
|
|
||||||
}
|
}
|
||||||
%end
|
%end
|
||||||
|
|
||||||
%hook MDXQueueView // Cast queue
|
// Explore
|
||||||
-(void)setBackgroundColor:(id)arg1 {
|
%hook ASScrollView
|
||||||
arg1 = oledColor;
|
- (void)didMoveToWindow {
|
||||||
%orig;
|
if (isDarkMode()) {
|
||||||
|
%orig;
|
||||||
|
self.backgroundColor = oledColor;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
%end
|
%end
|
||||||
|
|
||||||
%hook YTChannelProfileEditorView
|
// Your videos
|
||||||
-(void)setBackgroundColor:(id)arg1 {
|
%hook ASCollectionView
|
||||||
arg1 = oledColor;
|
- (void)didMoveToWindow {
|
||||||
%orig;
|
if (isDarkMode() && [self.nextResponder isKindOfClass:%c(_ASDisplayView)]) {
|
||||||
|
%orig;
|
||||||
|
self.superview.backgroundColor = [UIColor clearColor];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
%end
|
%end
|
||||||
|
|
||||||
%hook YTChannelSubMenuView //
|
// iSponsorBlock
|
||||||
-(void)setBackgroundColor:(id)arg1 {
|
%hook SponsorBlockSettingsController
|
||||||
arg1 = oledColor;
|
- (void)viewDidLoad {
|
||||||
%orig;
|
if (self.traitCollection.userInterfaceStyle == UIUserInterfaceStyleDark) {
|
||||||
|
%orig;
|
||||||
|
self.tableView.backgroundColor = oledColor;
|
||||||
|
} else { return %orig; }
|
||||||
}
|
}
|
||||||
%end
|
%end
|
||||||
|
|
||||||
%hook YTChannelListSubMenuView // sub -
|
%hook SponsorBlockViewController
|
||||||
-(void)setBackgroundColor:(id)arg1 {
|
- (void)viewDidLoad {
|
||||||
arg1 = oledColor;
|
if (self.traitCollection.userInterfaceStyle == UIUserInterfaceStyleDark) {
|
||||||
%orig;
|
%orig;
|
||||||
|
self.view.backgroundColor = oledColor;
|
||||||
|
} else { return %orig; }
|
||||||
}
|
}
|
||||||
%end
|
%end
|
||||||
|
|
||||||
|
// YT Miniplayer
|
||||||
|
%hook YTWatchMiniBarView
|
||||||
|
- (void)setBackgroundColor:(UIColor *)color {
|
||||||
|
if (isDarkMode()) {
|
||||||
|
return %orig([UIColor colorWithRed:0.0 green:0.0 blue:0.0 alpha:0.9]);
|
||||||
|
}
|
||||||
|
return %orig;
|
||||||
|
}
|
||||||
|
%end
|
||||||
|
|
||||||
|
// Search View
|
||||||
|
%hook YTSearchBarView
|
||||||
|
- (void)setBackgroundColor:(UIColor *)color {
|
||||||
|
if (isDarkMode()) {
|
||||||
|
return %orig(oledColor);
|
||||||
|
}
|
||||||
|
return %orig;
|
||||||
|
}
|
||||||
|
%end
|
||||||
|
|
||||||
|
// History Search view
|
||||||
|
%hook YTSearchBoxView
|
||||||
|
- (void)setBackgroundColor:(UIColor *)color {
|
||||||
|
if (isDarkMode()) {
|
||||||
|
return %orig(oledColor);
|
||||||
|
}
|
||||||
|
return %orig;
|
||||||
|
}
|
||||||
|
%end
|
||||||
|
|
||||||
|
// Comment view
|
||||||
%hook YTCommentView
|
%hook YTCommentView
|
||||||
-(void)setBackgroundColor:(id)arg1 {
|
- (void)setBackgroundColor:(UIColor *)color {
|
||||||
arg1 = oledColor;
|
if (isDarkMode()) {
|
||||||
%orig;
|
return %orig(oledColor);
|
||||||
|
}
|
||||||
|
return %orig;
|
||||||
}
|
}
|
||||||
%end
|
%end
|
||||||
|
|
||||||
%hook YTCreateCommentAccessoryView
|
%hook YTCreateCommentAccessoryView
|
||||||
-(void)setBackgroundColor:(id)arg1 {
|
- (void)setBackgroundColor:(UIColor *)color {
|
||||||
arg1 = oledColor;
|
if (isDarkMode()) {
|
||||||
%orig;
|
return %orig(oledColor);
|
||||||
|
}
|
||||||
|
return %orig;
|
||||||
}
|
}
|
||||||
%end
|
%end
|
||||||
|
|
||||||
%hook YTCreateCommentTextView
|
%hook YTCreateCommentTextView
|
||||||
-(void)setBackgroundColor:(id)arg1 {
|
- (void)setBackgroundColor:(UIColor *)color {
|
||||||
arg1 = oledColor;
|
if (isDarkMode()) {
|
||||||
%orig;
|
return %orig(oledColor);
|
||||||
|
}
|
||||||
|
return %orig;
|
||||||
|
}
|
||||||
|
- (void)setTextColor:(UIColor *)color { // fix black text in #Shorts video's comment
|
||||||
|
if (isDarkMode()) {
|
||||||
|
return %orig([UIColor whiteColor]);
|
||||||
|
}
|
||||||
|
return %orig;
|
||||||
}
|
}
|
||||||
%end
|
%end
|
||||||
|
|
||||||
|
%hook YTFormattedStringLabel // YT is werid...
|
||||||
|
- (void)setBackgroundColor:(UIColor *)color {
|
||||||
|
if (isDarkMode()) {
|
||||||
|
return %orig([UIColor clearColor]);
|
||||||
|
}
|
||||||
|
return %orig;
|
||||||
|
}
|
||||||
|
%end
|
||||||
|
|
||||||
|
// Live chat comment
|
||||||
%hook YCHLiveChatActionPanelView
|
%hook YCHLiveChatActionPanelView
|
||||||
-(void)setBackgroundColor:(id)arg1 {
|
- (void)setBackgroundColor:(UIColor *)color {
|
||||||
arg1 = oledColor;
|
if (isDarkMode()) {
|
||||||
%orig;
|
return %orig(oledColor);
|
||||||
|
}
|
||||||
|
return %orig;
|
||||||
}
|
}
|
||||||
%end
|
%end
|
||||||
|
|
||||||
%hook YTEmojiTextView
|
%hook YTEmojiTextView
|
||||||
-(void)setBackgroundColor:(id)arg1 {
|
- (void)setBackgroundColor:(UIColor *)color {
|
||||||
arg1 = oledColor;
|
if (isDarkMode()) {
|
||||||
%orig;
|
return %orig(oledColor);
|
||||||
|
}
|
||||||
|
return %orig;
|
||||||
}
|
}
|
||||||
%end
|
%end
|
||||||
|
|
||||||
%hook YTShareTitleView // Share sheet
|
// Nasty stuff :/
|
||||||
-(void)setBackgroundColor:(id)arg1 {
|
%hook _ASDisplayView
|
||||||
arg1 = oledColor;
|
- (void)didMoveToWindow {
|
||||||
%orig;
|
%orig;
|
||||||
|
if (isDarkMode()) {
|
||||||
|
if ([self.accessibilityIdentifier isEqualToString:@"id.elements.components.comment_composer"]) { self.backgroundColor = oledColor; }
|
||||||
|
if ([self.accessibilityIdentifier isEqualToString:@"id.elements.components.video_list_entry"]) { self.backgroundColor = oledColor; }
|
||||||
|
if ([self.accessibilityIdentifier isEqualToString:@"id.elements.components.filter_chip_bar"]) { self.backgroundColor = oledColor; }
|
||||||
|
if ([self.accessibilityIdentifier isEqualToString:@"id.ui.comment_cell"]) { self.backgroundColor = oledColor; }
|
||||||
|
if ([self.accessibilityIdentifier isEqualToString:@"eml.cvr"]) { self.backgroundColor = oledColor; }
|
||||||
|
if ([self.accessibilityIdentifier isEqualToString:@"rich_header"]) { self.backgroundColor = oledColor; }
|
||||||
|
if ([self.accessibilityIdentifier isEqualToString:@"id.comment.channel_guidelines_bottom_sheet_container"]) { self.backgroundColor = oledColor; }
|
||||||
|
if ([self.accessibilityIdentifier isEqualToString:@"id.comment.channel_guidelines_entry_banner_container"]) { self.backgroundColor = oledColor; }
|
||||||
|
if ([self.accessibilityIdentifier isEqualToString:@"id.comment.guidelines_text"]) { self.superview.backgroundColor = oledColor; }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
%end
|
%end
|
||||||
|
|
||||||
%hook YTNavigationBar
|
// Open link with...
|
||||||
-(void)setBackgroundColor:(id)arg1 {
|
|
||||||
arg1 = oledColor;
|
|
||||||
%orig;
|
|
||||||
}
|
|
||||||
-(void)setBarTintColor:(id)arg1 {
|
|
||||||
arg1 = oledColor;
|
|
||||||
%orig;
|
|
||||||
}
|
|
||||||
%end
|
|
||||||
|
|
||||||
%hook YTPrivacyTosFooterView
|
|
||||||
-(void)setBackgroundColor:(id)arg1 {
|
|
||||||
arg1 = oledColor;
|
|
||||||
%orig;
|
|
||||||
}
|
|
||||||
%end
|
|
||||||
|
|
||||||
%hook YTWatchMiniBarView
|
|
||||||
-(void)setBackgroundColor:(id)arg1 {
|
|
||||||
arg1 = [UIColor colorWithRed:0.0 green:0.0 blue:0.0 alpha:0.9];
|
|
||||||
%orig;
|
|
||||||
}
|
|
||||||
%end
|
|
||||||
|
|
||||||
%hook YTPlaylistMiniBarView
|
|
||||||
-(void)setBackgroundColor:(id)arg1 {
|
|
||||||
arg1 = [UIColor colorWithRed:0.0 green:0.0 blue:0.0 alpha:0.9];
|
|
||||||
%orig;
|
|
||||||
}
|
|
||||||
%end
|
|
||||||
|
|
||||||
%hook _LNPopupBarContentView // uYou player
|
|
||||||
-(void)setBackgroundColor:(id)arg1 {
|
|
||||||
arg1 = [UIColor colorWithRed:0.0 green:0.0 blue:0.0 alpha:0.9];
|
|
||||||
%orig;
|
|
||||||
}
|
|
||||||
%end
|
|
||||||
|
|
||||||
%hook YTEngagementPanelHeaderView
|
|
||||||
-(void)setBackgroundColor:(id)arg1 {
|
|
||||||
arg1 = oledColor;
|
|
||||||
%orig;
|
|
||||||
}
|
|
||||||
%end
|
|
||||||
|
|
||||||
%hook YTChannelMobileHeaderView
|
|
||||||
-(void)setBackgroundColor:(id)arg1 {
|
|
||||||
arg1 = oledColor;
|
|
||||||
%orig;
|
|
||||||
}
|
|
||||||
%end
|
|
||||||
|
|
||||||
%hook YTInlineSignInView
|
|
||||||
-(void)setBackgroundColor:(id)arg1 {
|
|
||||||
arg1 = oledColor;
|
|
||||||
%orig;
|
|
||||||
}
|
|
||||||
%end
|
|
||||||
|
|
||||||
%hook YTHeaderView //Stt bar
|
|
||||||
-(void)setBackgroundColor:(id)arg1 {
|
|
||||||
arg1 = oledColor;
|
|
||||||
%orig;
|
|
||||||
}
|
|
||||||
%end
|
|
||||||
|
|
||||||
%hook YTTabTitlesView // Tab bar - mychannel
|
|
||||||
-(void)setBackgroundColor:(id)arg1 {
|
|
||||||
arg1 = oledColor;
|
|
||||||
%orig;
|
|
||||||
}
|
|
||||||
%end
|
|
||||||
|
|
||||||
%hook YTSettingsCell // Settings
|
|
||||||
-(void)setBackgroundColor:(id)arg1 {
|
|
||||||
arg1 = oledColor;
|
|
||||||
%orig;
|
|
||||||
}
|
|
||||||
%end
|
|
||||||
|
|
||||||
%hook GOODialogView // 3 dots menu
|
|
||||||
-(void)setBackgroundColor:(id)arg1 {
|
|
||||||
arg1 = oledColor;
|
|
||||||
%orig;
|
|
||||||
}
|
|
||||||
%end
|
|
||||||
|
|
||||||
%hook YTCollectionView //sharesheet
|
|
||||||
-(void)setBackgroundColor:(id)arg1 {
|
|
||||||
arg1 = oledColor;
|
|
||||||
%orig;
|
|
||||||
}
|
|
||||||
%end
|
|
||||||
|
|
||||||
%hook ASWAppSwitchingSheetHeaderView
|
%hook ASWAppSwitchingSheetHeaderView
|
||||||
-(void)setBackgroundColor:(id)arg1 {
|
- (void)setBackgroundColor:(UIColor *)color {
|
||||||
arg1 = oledColor;
|
if (isDarkMode()) {
|
||||||
%orig;
|
return %orig(oledColor);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
%end
|
%end
|
||||||
|
|
||||||
%hook ASWAppSwitchingSheetFooterView
|
%hook ASWAppSwitchingSheetFooterView
|
||||||
-(void)setBackgroundColor:(id)arg1 {
|
- (void)setBackgroundColor:(UIColor *)color {
|
||||||
arg1 = oledColor;
|
if (isDarkMode()) {
|
||||||
%orig;
|
return %orig(oledColor);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
%end
|
%end
|
||||||
|
|
||||||
%hook YTCollectionSeparatorView
|
%hook ASWAppSwitcherCollectionViewCell
|
||||||
-(void)setBackgroundColor:(id)arg1 {
|
- (void)didMoveToWindow {
|
||||||
arg1 = oledColor;
|
if (isDarkMode()) {
|
||||||
|
%orig;
|
||||||
|
self.subviews[1].backgroundColor = oledColor;
|
||||||
|
self.superview.backgroundColor = oledColor;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
%end
|
||||||
|
%end
|
||||||
|
|
||||||
|
# pragma mark - OLED keyboard by @ichitaso <3 - http://gist.github.com/ichitaso/935100fd53a26f18a9060f7195a1be0e
|
||||||
|
%group gOLEDKB
|
||||||
|
%hook UIPredictionViewController
|
||||||
|
- (void)loadView {
|
||||||
%orig;
|
%orig;
|
||||||
|
[self.view setBackgroundColor:oledColor];
|
||||||
}
|
}
|
||||||
- (void)layoutSubviews {}
|
|
||||||
%end
|
%end
|
||||||
|
|
||||||
%hook YTLightweightQTMButton
|
%hook UICandidateViewController
|
||||||
-(void)setBackgroundColor:(id)arg1 {
|
- (void)loadView {
|
||||||
if([self.nextResponder isKindOfClass:%c(YTShareMainView)]) {
|
|
||||||
arg1 = oledColor;
|
|
||||||
%orig;
|
%orig;
|
||||||
}
|
[self.view setBackgroundColor:oledColor];
|
||||||
}
|
}
|
||||||
-(void)setCustomTitleColor:(id)arg1 {
|
%end
|
||||||
arg1 = [UIColor whiteColor];
|
|
||||||
|
%hook UIKeyboardDockView
|
||||||
|
- (void)didMoveToWindow {
|
||||||
%orig;
|
%orig;
|
||||||
|
self.backgroundColor = oledColor;
|
||||||
}
|
}
|
||||||
%end
|
%end
|
||||||
|
|
||||||
%hook YTShareBusyView // sharesheet load
|
%hook UIKeyboardLayoutStar
|
||||||
-(void)setBackgroundColor:(id)arg1 {
|
- (void)didMoveToWindow {
|
||||||
arg1 = oledColor;
|
|
||||||
%orig;
|
|
||||||
}
|
|
||||||
%end
|
|
||||||
|
|
||||||
%hook YTPageView
|
|
||||||
-(void)setBackgroundColor:(id)arg1 {
|
|
||||||
arg1 = oledColor;
|
|
||||||
%orig;
|
|
||||||
}
|
|
||||||
%end
|
|
||||||
|
|
||||||
%hook YTWatchView
|
|
||||||
-(void)setBackgroundColor:(id)arg1 {
|
|
||||||
arg1 = oledColor;
|
|
||||||
%orig;
|
|
||||||
}
|
|
||||||
%end
|
|
||||||
|
|
||||||
%hook YTSearchBarView
|
|
||||||
-(void)setBackgroundColor:(id)arg1 {
|
|
||||||
arg1 = oledColor;
|
|
||||||
%orig;
|
|
||||||
}
|
|
||||||
%end
|
|
||||||
|
|
||||||
%hook YTSearchSuggestionCollectionViewCell
|
|
||||||
-(void)updateColors {}
|
|
||||||
%end
|
|
||||||
|
|
||||||
%hook UISearchBarBackground
|
|
||||||
-(void)setBarTintColor:(id)arg1 {
|
|
||||||
arg1 = oledColor;
|
|
||||||
%orig;
|
%orig;
|
||||||
|
self.backgroundColor = oledColor;
|
||||||
}
|
}
|
||||||
%end
|
%end
|
||||||
|
|
||||||
%hook YTELMView // upload videos
|
%hook UIKBRenderConfig // Prediction text color
|
||||||
-(void)layoutSubviews {
|
- (void)setLightKeyboard:(BOOL)arg1 { %orig(NO); }
|
||||||
%orig;
|
|
||||||
self.backgroundColor = oledColor;
|
|
||||||
}
|
|
||||||
%end
|
%end
|
||||||
|
|
||||||
%hook YTMealBarPromoView
|
|
||||||
-(void)setBackgroundColor:(id)arg1 { // Offline
|
|
||||||
arg1 = oledColor;
|
|
||||||
%orig;
|
|
||||||
}
|
|
||||||
%end
|
|
||||||
|
|
||||||
%hook NIAttributedLabel
|
|
||||||
-(void)setBackgroundColor:(id)arg1 {
|
|
||||||
if ([self.nextResponder isKindOfClass:%c(UIScrollView)])
|
|
||||||
arg1 = oledColor;
|
|
||||||
%orig;
|
|
||||||
}
|
|
||||||
%end
|
|
||||||
|
|
||||||
////
|
|
||||||
/*
|
|
||||||
%hook UICollectionView
|
|
||||||
-(void)setBackgroundColor:(id)arg1 {
|
|
||||||
if ([self.nextResponder isKindOfClass:%c(UICollectionViewControllerWrapperView)])
|
|
||||||
arg1 = oledColor;
|
|
||||||
%orig;
|
|
||||||
}
|
|
||||||
%end
|
|
||||||
|
|
||||||
%hook YTShortsGalleryHeaderView // upload videos heaer (gallery)
|
|
||||||
-(void)setBackgroundColor:(id)arg1 {
|
|
||||||
arg1 = oledColor;
|
|
||||||
%orig;
|
|
||||||
}
|
|
||||||
%end
|
|
||||||
|
|
||||||
%hook _ASDisplayView // edit your videos
|
|
||||||
-(void)layoutSubviews {
|
|
||||||
if ([self.nextResponder isKindOfClass:%c(ELMView)])
|
|
||||||
self.backgroundColor = oledColor;
|
|
||||||
}
|
|
||||||
%end
|
|
||||||
|
|
||||||
%hook ASCollectionView
|
|
||||||
-(void)layoutSubviews {
|
|
||||||
self.backgroundColor = oledColor;
|
|
||||||
%orig;
|
|
||||||
}
|
|
||||||
%end
|
|
||||||
|
|
||||||
%hook YTChannelProfileDescriptionEditorView // edit profile Description
|
|
||||||
-(void)setBackgroundColor:(id)arg1 {
|
|
||||||
arg1 = oledColor;
|
|
||||||
%orig;
|
|
||||||
}
|
|
||||||
%end
|
|
||||||
|
|
||||||
%hook YTChannelProfileNameEditorView // edit profile Name
|
|
||||||
-(void)setBackgroundColor:(id)arg1 {
|
|
||||||
arg1 = oledColor;
|
|
||||||
%orig;
|
|
||||||
}
|
|
||||||
%end
|
|
||||||
|
|
||||||
hook GOOTextField
|
|
||||||
-(void)setBackgroundColor:(id)arg1 { // edit profile Description
|
|
||||||
arg1 = oledColor;
|
|
||||||
%orig;
|
|
||||||
}
|
|
||||||
%end
|
|
||||||
|
|
||||||
%hook GOOMultilineTextField//
|
|
||||||
-(void)setBackgroundColor:(id)arg1 { // edit profile Name
|
|
||||||
arg1 = oledColor;
|
|
||||||
%orig;
|
|
||||||
}
|
|
||||||
%end
|
|
||||||
*/
|
|
||||||
%end
|
%end
|
||||||
|
|
||||||
// YTReExplore: https://github.com/PoomSmart/YTReExplore/
|
// YTReExplore: https://github.com/PoomSmart/YTReExplore/
|
||||||
@@ -613,37 +602,41 @@ static void replaceTab(YTIGuideResponse *response) {
|
|||||||
// BigYTMiniPlayer: https://github.com/Galactic-Dev/BigYTMiniPlayer
|
// BigYTMiniPlayer: https://github.com/Galactic-Dev/BigYTMiniPlayer
|
||||||
%group Main
|
%group Main
|
||||||
%hook YTWatchMiniBarView
|
%hook YTWatchMiniBarView
|
||||||
-(void)setWatchMiniPlayerLayout:(int)arg1 {
|
- (void)setWatchMiniPlayerLayout:(int)arg1 {
|
||||||
%orig(1);
|
%orig(1);
|
||||||
}
|
}
|
||||||
-(int)watchMiniPlayerLayout {
|
- (int)watchMiniPlayerLayout {
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
-(void)layoutSubviews {
|
- (void)layoutSubviews {
|
||||||
%orig;
|
%orig;
|
||||||
self.frame = CGRectMake(([UIScreen mainScreen].bounds.size.width - self.frame.size.width), self.frame.origin.y, self.frame.size.width, self.frame.size.height);
|
self.frame = CGRectMake(([UIScreen mainScreen].bounds.size.width - self.frame.size.width), self.frame.origin.y, self.frame.size.width, self.frame.size.height);
|
||||||
}
|
}
|
||||||
%end
|
%end
|
||||||
|
|
||||||
%hook YTMainAppVideoPlayerOverlayView
|
%hook YTMainAppVideoPlayerOverlayView
|
||||||
-(BOOL)isUserInteractionEnabled {
|
- (BOOL)isUserInteractionEnabled {
|
||||||
if([[self _viewControllerForAncestor].parentViewController.parentViewController isKindOfClass:%c(YTWatchMiniBarViewController)]) {
|
if([[self _viewControllerForAncestor].parentViewController.parentViewController isKindOfClass:%c(YTWatchMiniBarViewController)]) {
|
||||||
return NO;
|
return NO;
|
||||||
}
|
}
|
||||||
return %orig;
|
return %orig;
|
||||||
}
|
}
|
||||||
%end
|
%end
|
||||||
%end
|
%end
|
||||||
|
|
||||||
|
# pragma mark - ctor
|
||||||
%ctor {
|
%ctor {
|
||||||
%init;
|
%init;
|
||||||
if (oled() && ([[NSUserDefaults standardUserDefaults] integerForKey:@"page_style"] == 1)) {
|
if (oled()) {
|
||||||
%init(gOLED);
|
%init(gOLED);
|
||||||
}
|
}
|
||||||
if (ReExplore()) {
|
if (oledKB()) {
|
||||||
%init(gReExplore)
|
%init(gOLEDKB);
|
||||||
|
}
|
||||||
|
if (reExplore()) {
|
||||||
|
%init(gReExplore);
|
||||||
}
|
}
|
||||||
if (bigYTMiniPlayer() && (UIDevice.currentDevice.userInterfaceIdiom != UIUserInterfaceIdiomPad)) {
|
if (bigYTMiniPlayer() && (UIDevice.currentDevice.userInterfaceIdiom != UIUserInterfaceIdiomPad)) {
|
||||||
%init(Main)
|
%init(Main);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user