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

8 lines
304 B
Bash
Raw Normal View History

sPATH=$(dirname $(realpath -L $(which spotify))) # absolute path to Spotify
cd ${sPATH}/Apps/
sudo cp xpui.spa xpui.spa_bak # create a backup, in case of trouble
sudo 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