mirror of
https://github.com/cucumber-sp/yandex-music-linux.git
synced 2024-12-23 22:22:59 +03:00
Remove OS Spoof. Fixes #143
This commit is contained in:
parent
994c55e88d
commit
ea7d26a743
@ -67,13 +67,11 @@ curdir="$PWD"
|
|||||||
cd "$TEMPDIR/app"
|
cd "$TEMPDIR/app"
|
||||||
|
|
||||||
|
|
||||||
echo "Fixing SecretKey"
|
echo "Patching .js chunks"
|
||||||
echo "Spoofing OS"
|
|
||||||
find "./" -type f \( -name "*.js" -o -name "*.js.map" \) -print0 | while IFS= read -r -d $'\0' file; do
|
find "./" -type f \( -name "*.js" -o -name "*.js.map" \) -print0 | while IFS= read -r -d $'\0' file; do
|
||||||
# Use 'sed' to perform the replacement in-place
|
# Use 'sed' to perform the replacement in-place
|
||||||
sed -i 's/WINDOWS:e="kzqU4XhfCaY6B6JTHODeq5"/LINUX:e="kzqU4XhfCaY6B6JTHODeq5"/g' "$file"
|
|
||||||
sed -i 's/l.isLinuxApplication/(window.CUSTOM_TITLE_BAR)/g' "$file"
|
sed -i 's/l.isLinuxApplication/(window.CUSTOM_TITLE_BAR)/g' "$file"
|
||||||
sed -i 's/a.isLinuxApplication/(window.CUSTOM_TITLE_BAR)/g' "$file"
|
sed -i 's/o.isLinuxApplication/(window.CUSTOM_TITLE_BAR)/g' "$file"
|
||||||
done
|
done
|
||||||
echo "OS spoofed"
|
echo "OS spoofed"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user