added ReX

Can patch ReX from now and fix 🐛
This commit is contained in:
yue374
2024-02-02 22:07:35 +07:00
parent 123d45a124
commit 8061a9360f
10 changed files with 130 additions and 3 deletions

50
src/build/ReX.sh Normal file
View File

@@ -0,0 +1,50 @@
#!/bin/bash
# ReX build
source src/build/utils.sh
#################################################
# Download requirements
dl_gh "ReX-patches ReX-integrations" "YT-Advanced" "latest"
dl_gh "revanced-cli" "inotia00" "latest"
#################################################
# Patch YouTube ReX:
get_patches_key "youtube-ReX"
get_ver "Hide general ads" "com.google.android.youtube"
get_apk "youtube" "youtube" "google-inc/youtube/youtube"
patch "youtube" "ReX" "inotia"
#################################################
# Patch YouTube Music ReX:
# Arm64-v8a
get_patches_key "youtube-music-ReX"
#get_ver "Hide general ads" "com.google.android.apps.youtube.music"
get_apk "youtube-music-arm64-v8a" "youtube-music" "google-inc/youtube-music/youtube-music" "arm64-v8a"
patch "youtube-music-arm64-v8a" "ReX" "inotia"
# Armeabi-v7a
get_patches_key "youtube-music-ReX"
#get_ver "Hide general ads" "com.google.android.apps.youtube.music"
get_apk "youtube-music-armeabi-v7a" "youtube-music" "google-inc/youtube-music/youtube-music" "armeabi-v7a"
patch "youtube-music-armeabi-v7a" "ReX" "inotia"
#################################################
# Patch Reddit:
get_patches_key "reddit"
get_apk "reddit" "reddit" "redditinc/reddit/reddit"
patch "reddit" "ReX" "inotia"
#################################################
rm -f revanced-cli*
dl_gh "revanced-cli" "FiorenMas" "latest"
# Split architecture Youtube:
get_patches_key "youtube-ReX"
for i in {0..3}; do
split_arch "youtube" "youtube-${archs[i]}-ReX" "$(gen_rip_libs ${libs[i]})"
done
#################################################

View File

@@ -33,7 +33,7 @@ patch "lightroom" "revanced"
# Patch Windy:
get_patches_key "windy"
get_apk "windy" "windy-wind-weather-forecast" "windy-weather-world-inc/windy-wind-weather-forecast/windy-wind-weather-forecast"
get_apk "windy" "windy-wind-weather-forecast" "windy-weather-world-inc/windy-wind-weather-forecast/windy-wind-weather-forecast" "arm64-v8a + x86 + x86_64"
patch "windy" "revanced"
#################################################

View File

@@ -95,7 +95,7 @@ get_apk() {
armeabi-v7a) url_regexp='armeabi-v7a'"[^@]*$6"''"[^@]*$5"'</div>[^@]*@\([^"]*\)' ;;
x86) url_regexp='x86'"[^@]*$6"''"[^@]*$5"'</div>[^@]*@\([^"]*\)' ;;
x86_64) url_regexp='x86_64'"[^@]*$6"''"[^@]*$5"'</div>[^@]*@\([^"]*\)' ;;
*) return 1 ;;
*) url_regexp='$4'"[^@]*$6"''"[^@]*$5"'</div>[^@]*@\([^"]*\)' ;;
esac
fi
export version="$version"

View File

@@ -0,0 +1,20 @@
Custom branding icon YouTube
Enable compact controls overlay
Disable QUIC protocol
Disable auto captions
Disable HDR video
Enable old quality layout
Enable zen mode
Hide cast button
Hide account menu
Hide autoplay button
Hide autoplay preview
Hide captions button
Hide description components
Hide handle
Hide latest videos button
Hide load more button
Hide mix playlists
Hide previous next button
Hide voice search button
Custom seekbar color

View File

@@ -0,0 +1 @@

View File

@@ -0,0 +1,12 @@
Custom branding icon YouTube Music
Disable auto captions
Hide captions button
Hide button shelf
Hide carousel shelf
Hide category bar
Replace cast button
Hide cast button
Hide account menu
Hide mix playlists
Hide new playlist button
Hide playlist card

View File

@@ -0,0 +1 @@