0
0
mirror of https://github.com/cucumber-sp/yandex-music-linux.git synced 2025-04-04 16:23:44 +03:00

OS spoofing

This commit is contained in:
Nikolay Bely 2025-02-12 10:00:39 +07:00
parent a72265c66e
commit 7685977573

View File

@ -73,6 +73,10 @@ find "./" -type f \( -name "*.js" -o -name "*.js.map" \) -print0 | while IFS= re
sed -i 's/l.isLinuxApplication/(window.CUSTOM_TITLE_BAR)/g' "$file"
sed -i 's/o.isLinuxApplication/(window.CUSTOM_TITLE_BAR)/g' "$file"
sed -i 's/panel:!1,allowOverwriteExperiments:!1/panel:window.IS_DEVTOOLS_ENABLED??!1,allowOverwriteExperiments:window.IS_DEVTOOLS_ENABLED??!1/g' "$file"
sed -i 's/OS",o.LINUX="Linux"}/OS",o.LINUX="Windows"}/g' "$file"
sed -i 's/LINUX:"98548790"/LINUX:"95673843"/g' "$file"
sed -i 's/LINUX:"d2bcdb71-90ac-493b-b68f-024321954a5d"/LINUX:"0d8ab1a6-1667-42cb-a98f-2fe7eff4b137"/g' "$file"
sed -i 's/case n.t.LINUX:e="uVNvVMAvdrvjtwN0VlhEt2"/case n.t.LINUX:e="kzqU4XhfCaY6B6JTHODeq5"/g' "$file"
done
echo ".js chunks patched"