mirror of
https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root.git
synced 2025-12-06 08:07:40 +00:00
Add files via upload
This commit is contained in:
@@ -1,16 +1,14 @@
|
||||
# Download
|
||||
Revanced
|
||||
|
||||
[](https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/releases/latest/download/yt-revanced.apk)
|
||||
[](https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/releases/download/Revanced/yt-revanced.apk)
|
||||
|
||||
Revanced Extended
|
||||
|
||||
[](https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/releases/latest/download/yt-revanced-extended.apk)
|
||||
[](https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/releases/download/Revanced-Extended/yt-revanced-extended.apk)
|
||||
|
||||
# Download MicroG from inotia00 source
|
||||
[](https://github.com/inotia00/VancedMicroG/releases/latest/download/microg.apk)
|
||||
|
||||
# About
|
||||
This repository forked from [@luxysiv](https://github.com/luxysiv/yt-revanced-extended)
|
||||
|
||||
<img alt="GitHub Workflow Status" src="https://img.shields.io/github/actions/workflow/status/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/patch.yml">
|
||||
|
||||
27
patch.sh
27
patch.sh
@@ -1,21 +1,18 @@
|
||||
#!/bin/bash
|
||||
# Config to patch Revanced and Revanced Extended
|
||||
# Input YTVERSION number of version/blank to select specific/auto select YouTube version supported
|
||||
|
||||
# Revanced
|
||||
cat > keywords.rv << EOF
|
||||
NAME="revanced"
|
||||
USER="revanced"
|
||||
ORG="revanced"
|
||||
PATCH="patches.rv"
|
||||
YTVERSION="18.03.36"
|
||||
EOF
|
||||
|
||||
# Revanced Extended
|
||||
cat > keywords.rve << EOF
|
||||
NAME="revanced-extended"
|
||||
USER="inotia00"
|
||||
ORG="inotia00"
|
||||
PATCH="patches.rve"
|
||||
#YTVERSION="18.07.35"
|
||||
EOF
|
||||
|
||||
# for var in keywords.rv # Revanced
|
||||
@@ -66,15 +63,15 @@ echo -e "⏬ Prepairing $NAME resources..."
|
||||
IFS=$' \t\r\n'
|
||||
|
||||
# Patches & json
|
||||
latest_patches=$(curl -s https://api.github.com/repos/$USER/revanced-patches/releases/latest \
|
||||
latest_patches=$(curl -s https://api.github.com/repos/$ORG/revanced-patches/releases/latest \
|
||||
| jq -r '.assets[].browser_download_url')
|
||||
|
||||
# Cli
|
||||
latest_cli=$(curl -s https://api.github.com/repos/$USER/revanced-cli/releases/latest \
|
||||
latest_cli=$(curl -s https://api.github.com/repos/$ORG/revanced-cli/releases/latest \
|
||||
| jq -r '.assets[].browser_download_url')
|
||||
|
||||
# Integrations
|
||||
latest_integrations=$(curl -s https://api.github.com/repos/$USER/revanced-integrations/releases/latest \
|
||||
latest_integrations=$(curl -s https://api.github.com/repos/$ORG/revanced-integrations/releases/latest \
|
||||
| jq -r '.assets[].browser_download_url')
|
||||
|
||||
# Download all resources
|
||||
@@ -82,8 +79,11 @@ for asset in $latest_patches $latest_cli $latest_integrations ; do
|
||||
curl -s -OL $asset
|
||||
done
|
||||
|
||||
# Download YouTube APK supported
|
||||
WGET_HEADER="User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:111.0) Gecko/20100101 Firefox/111.0"
|
||||
# Fetch latest supported YT versions
|
||||
YTVERSION=$(jq -r '.[] | select(.name == "microg-support") | .compatiblePackages[] | select(.name == "com.google.android.youtube") | .versions[-1]' patches.json)
|
||||
|
||||
# Download latest APK supported
|
||||
WGET_HEADER="User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0"
|
||||
|
||||
req() {
|
||||
wget -q -O "$2" --header="$WGET_HEADER" "$1"
|
||||
@@ -107,13 +107,8 @@ dl_yt() {
|
||||
req "$url" "$2"
|
||||
}
|
||||
|
||||
# Download specific or auto choose Youtube version
|
||||
if [ $YTVERSION ] ;
|
||||
then
|
||||
# Download Youtube
|
||||
dl_yt $YTVERSION youtube-v$YTVERSION.apk
|
||||
else YTVERSION=$(jq -r '.[] | select(.name == "microg-support") | .compatiblePackages[] | select(.name == "com.google.android.youtube") | .versions[-1]' patches.json)
|
||||
dl_yt $YTVERSION youtube-v$YTVERSION.apk
|
||||
fi
|
||||
|
||||
# Patch APK
|
||||
echo -e "⚙️ Patching YouTube..."
|
||||
|
||||
Reference in New Issue
Block a user