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

9 lines
340 B
Bash
Raw Normal View History

2021-12-23 14:37:42 +01:00
cd $(dirname $(realpath -L $(which spotify)))/Apps/ # absolute path to Spotify
sudo cp xpui.spa xpui.spa_bak # create a backup, in case of trouble
2021-12-23 14:37:42 +01:00
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! 🎉"