mirror of
https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root.git
synced 2025-12-06 16:17:40 +00:00
added Twitter Pico
- Remove rufusin patch because pj merged with anddea - Improve ci function
This commit is contained in:
34
src/build/Piko.sh
Normal file
34
src/build/Piko.sh
Normal file
@@ -0,0 +1,34 @@
|
||||
#!/bin/bash
|
||||
# Twitter Piko
|
||||
source src/build/utils.sh
|
||||
|
||||
# Patch Twitter Piko:
|
||||
patch_piko () {
|
||||
get_apk "twitter" "twitter" "x-corp/twitter/twitter"
|
||||
dl_gh "revanced-patches revanced-cli" "revanced" "latest"
|
||||
mv revanced-patches*.jar _revanced-patches*.jar
|
||||
local v apk_name
|
||||
if [[ "$1" == "latest" ]]; then
|
||||
v="latest" apk_name="stable"
|
||||
else
|
||||
v="prerelease" apk_name="beta"
|
||||
fi
|
||||
get_patches_key "twitter-pico"
|
||||
if [ -f "./download/twitter.apk" ]; then
|
||||
dl_gh "piko revanced-integrations" "crimera" "$v"
|
||||
green_log "[+] Patch Twitter Pico:"
|
||||
eval java -jar revanced-cli*.jar patch \
|
||||
--patch-bundle _revanced-patches*.jar \
|
||||
--patch-bundle revanced-patches*.jar \
|
||||
--merge revanced-integrations*.apk \
|
||||
$excludePatches\
|
||||
$includePatches \
|
||||
--out=./release/twitter-piko-$apk_name.apk \
|
||||
--keystore=./src/ks.keystore \
|
||||
./download/twitter.apk
|
||||
else
|
||||
red_log "[-] Not found Twitter.apk"
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
patch_piko $1
|
||||
@@ -1,30 +0,0 @@
|
||||
#!/bin/bash
|
||||
# ReX forked by rufusin build
|
||||
source src/build/utils.sh
|
||||
|
||||
#################################################
|
||||
|
||||
# Download requirements
|
||||
dl_gh " revanced-patches revanced-integrations" "rufusin" "latest"
|
||||
dl_gh "revanced-cli" "inotia00" "latest"
|
||||
|
||||
#################################################
|
||||
|
||||
# Patch YouTube ReX rufusin:
|
||||
get_patches_key "youtube-ReX-rufusin"
|
||||
get_ver "Hide general ads" "com.google.android.youtube"
|
||||
get_apk "youtube" "youtube" "google-inc/youtube/youtube"
|
||||
patch "youtube" "ReX-rufusin" "inotia"
|
||||
|
||||
|
||||
#################################################
|
||||
|
||||
rm -f revanced-cli*
|
||||
dl_gh "revanced-cli" "FiorenMas" "latest"
|
||||
# Split architecture Youtube:
|
||||
get_patches_key "youtube-ReX-rufusin"
|
||||
for i in {0..3}; do
|
||||
split_arch "youtube" "youtube-${archs[i]}-ReX-rufusin" "$(gen_rip_libs ${libs[i]})"
|
||||
done
|
||||
|
||||
#################################################
|
||||
@@ -5,13 +5,13 @@ get_date() {
|
||||
json=$(wget -qO- "https://api.github.com/repos/$1/releases")
|
||||
case "$2" in
|
||||
latest)
|
||||
updated_at=$(echo "$json" | jq -r 'first(.[] | select(.prerelease == false) | .assets[] | select(.name == "'$3'") | .updated_at)')
|
||||
updated_at=$(echo "$json" | jq -r 'first(.[] | select(.prerelease == false) | .assets[] | select(.name | test("'$3'")) | .updated_at)')
|
||||
;;
|
||||
prerelease)
|
||||
updated_at=$(echo "$json" | jq -r 'first(.[] | select(.prerelease == true) | .assets[] | select(.name == "'$3'") | .updated_at)')
|
||||
updated_at=$(echo "$json" | jq -r 'first(.[] | select(.prerelease == true) | .assets[] | select(.name | test("'$3'")) | .updated_at)')
|
||||
;;
|
||||
*)
|
||||
updated_at=$(echo "$json" | jq -r 'first(.[] | select(.tag_name == "'$2'") | .assets[] | select(.name == "'$3'") | .updated_at)')
|
||||
updated_at=$(echo "$json" | jq -r 'first(.[] | select(.tag_name == "'$2'") | .assets[] | select(.name | test("'$3'")) | .updated_at)')
|
||||
;;
|
||||
esac
|
||||
echo "$updated_at"
|
||||
@@ -19,7 +19,7 @@ get_date() {
|
||||
|
||||
checker(){
|
||||
local date1 date2 date1_sec date1_sec repo=$1 ur_repo=$repository check=$3
|
||||
date1=$(get_date "$repo" "$2" "patches.json")
|
||||
date1=$(get_date "$repo" "$2" "^.*\\\.jar$")
|
||||
date2=$(get_date "$ur_repo" "all" "$check")
|
||||
date1_sec=$(date -d "$date1" +%s)
|
||||
date2_sec=$(date -d "$date2" +%s)
|
||||
|
||||
@@ -1 +1 @@
|
||||
Disable switching emoji to sticker
|
||||
Disable switching emoji to sticker
|
||||
|
||||
1
src/patches/twitter-pico/exclude-patches
Normal file
1
src/patches/twitter-pico/exclude-patches
Normal file
@@ -0,0 +1 @@
|
||||
Unlock downloads
|
||||
6
src/patches/twitter-pico/include-patches
Normal file
6
src/patches/twitter-pico/include-patches
Normal file
@@ -0,0 +1,6 @@
|
||||
Hide Banner
|
||||
Hide FAB
|
||||
Hide FAB Menu Buttons
|
||||
Hide Promoted Trends
|
||||
Hide Community Notes
|
||||
Google Ads Patch
|
||||
@@ -1 +0,0 @@
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
|
||||
@@ -1,18 +0,0 @@
|
||||
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 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
|
||||
Custom seekbar color
|
||||
@@ -1 +0,0 @@
|
||||
|
||||
Reference in New Issue
Block a user