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