This repository has been archived on 2022-03-25. You can view files and clone it, but cannot push or open issues or pull requests.
manjaroConfiguration/removeBannerSpotify.sh
2022-02-15 09:26:55 +01:00

10 lines
375 B
Bash

#!/usr/bin/env bash
cd "$(dirname "$(realpath -L "$(which spotify)")")"/Apps/ || exit # absolute path to Spotify
sudo cp xpui.spa xpui.spa_bak # create a backup, in case of trouble
sudo bash -c "unzip -p xpui.spa xpui.js | sed 's/{adsEnabled:\!0}/{adsEnabled:false}/' > xpui.js"
sudo zip --update xpui.spa xpui.js
sudo rm xpui.js
echo -e "\nSpotify banner removed! 🎉"