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

View File

@@ -16,6 +16,9 @@ jobs:
- name: Check new patch ReVanced - name: Check new patch ReVanced
id: check-rv id: check-rv
run: bash src/etc/ci.sh ReVanced/revanced-patches youtube-revanced.apk run: bash src/etc/ci.sh ReVanced/revanced-patches youtube-revanced.apk
- name: Check new patch ReX
id: check-rex
run: bash src/etc/ci.sh YT-Advanced/ReX-patches youtube-revanced-extended.apk
- name: Check new patch Revanced Extended - name: Check new patch Revanced Extended
id: check-rve id: check-rve
run: bash src/etc/ci.sh inotia00/revanced-patches youtube-revanced-extended.apk run: bash src/etc/ci.sh inotia00/revanced-patches youtube-revanced-extended.apk
@@ -29,6 +32,7 @@ jobs:
uses: gautamkrishnar/keepalive-workflow@v1 uses: gautamkrishnar/keepalive-workflow@v1
outputs: outputs:
check_rv: ${{ steps.check-rv.outputs.new_patch }} check_rv: ${{ steps.check-rv.outputs.new_patch }}
check_rex: ${{ steps.check-rex.outputs.new_patch }}
check_rve: ${{ steps.check-rve.outputs.new_patch }} check_rve: ${{ steps.check-rve.outputs.new_patch }}
check_rve67: ${{ steps.check-rve67.outputs.new_patch }} check_rve67: ${{ steps.check-rve67.outputs.new_patch }}
check_rve5: ${{ steps.check-rve5.outputs.new_patch }} check_rve5: ${{ steps.check-rve5.outputs.new_patch }}
@@ -40,6 +44,13 @@ jobs:
uses: ./.github/workflows/manual-patch.yml uses: ./.github/workflows/manual-patch.yml
with: with:
org: "Revanced" org: "Revanced"
Patch-ReX:
name: Patch ReX
needs: check
if: ${{ needs.check.outputs.check_rex == 1 }}
uses: ./.github/workflows/manual-patch.yml
with:
org: "ReX"
Patch-Revanced-Extended: Patch-Revanced-Extended:
name: Patch Revanced Extended name: Patch Revanced Extended
needs: check needs: check

View File

@@ -11,6 +11,7 @@ on:
options: options:
- 'All' - 'All'
- 'Revanced' - 'Revanced'
- 'ReX'
- 'Revanced Extended' - 'Revanced Extended'
- 'Revanced Extended Android 6,7' - 'Revanced Extended Android 6,7'
- 'Revanced Extended Android 5' - 'Revanced Extended Android 5'
@@ -44,6 +45,21 @@ jobs:
repository: ${{ github.repository }} repository: ${{ github.repository }}
- name: Releasing APK files - name: Releasing APK files
uses: ./.github/actions/release uses: ./.github/actions/release
patch_rex:
name: Patch ReX
if: ${{ github.event.inputs.org == 'ReX' || github.event.inputs.org == 'All' || inputs.org == 'ReX' }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4.1.1
- name: Preparing to patch
uses: ./.github/actions/preparing
- name: Patch apk
run: bash src/build/ReX.sh
env:
repository: ${{ github.repository }}
- name: Releasing APK files
uses: ./.github/actions/release
patch_rve: patch_rve:
name: Patch Revanced Extended name: Patch Revanced Extended
if: ${{ github.event.inputs.org == 'Revanced Extended' || github.event.inputs.org == 'All' || inputs.org == 'Revanced Extended' }} if: ${{ github.event.inputs.org == 'Revanced Extended' || github.event.inputs.org == 'All' || inputs.org == 'Revanced Extended' }}

View File

@@ -44,7 +44,19 @@ Download
[x86_64](https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/releases/download/all/youtube-x86_64-revanced.apk) [x86_64](https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/releases/download/all/youtube-x86_64-revanced.apk)
### [Revanced Extended:](https://github.com/inotia00/revanced-patches/) ### [ReX: (forked from Revanced Extended)](https://github.com/YT-Advanced/ReX-patches)
[All Architectures](https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/releases/download/all/youtube-ReX.apk)
[Arm64-v8a](https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/releases/download/all/youtube-arm64-v8a-ReX.apk)
[Armeabi-v7a](https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/releases/download/all/youtube-armeabi-v7a-ReX.apk)
[x86](https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/releases/download/all/youtube-x86-ReX.apk)
[x86_64](https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/releases/download/all/youtube-x86_64-ReX.apk)
### [Revanced Extended: (Discontinued)](https://github.com/inotia00/revanced-patches/)
[All Architectures](https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/releases/download/all/youtube-revanced-extended.apk) [All Architectures](https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/releases/download/all/youtube-revanced-extended.apk)
@@ -175,6 +187,10 @@ Download
[All Architectures](https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/releases/download/all/reddit-revanced.apk) [All Architectures](https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/releases/download/all/reddit-revanced.apk)
### ReX:
[All Architectures](https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/releases/download/all/reddit-ReX.apk)
### Revanced Extended: ### Revanced Extended:
[All Architectures](https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/releases/download/all/reddit-revanced-extended.apk) [All Architectures](https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/releases/download/all/reddit-revanced-extended.apk)

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: # Patch Windy:
get_patches_key "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" patch "windy" "revanced"
################################################# #################################################

View File

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