diff --git a/README.md b/README.md index 3dac281..55c7a22 100644 --- a/README.md +++ b/README.md @@ -56,6 +56,10 @@ Mon guide à suivre lors d'une réinstallation d'Ubuntu ```bash wget -q --show-progress https://git.kennel.ml/Anri/myLinuxConfiguration/raw/branch/main/installSpotify.sh -O tmp.sh && bash tmp.sh; rm tmp.sh ``` + Faculativement, lance ce script pour [supprimer la bannière en bas](https://github.com/abba23/spotify-adblock/issues/12#issuecomment-858357326) (attention il va falloir refaire la manipulation à chaque mise-à-jour) + ```bash + wget -q --show-progress https://git.kennel.ml/Anri/myLinuxConfiguration/raw/branch/main/removeBannerSpotify.sh -O tmp.sh && bash tmp.sh; rm tmp.sh + ``` - Installe [Syncthing](https://apt.syncthing.net/) et le [lance au démarrage](https://docs.syncthing.net/users/autostart.html#how-to-set-up-a-system-service) ```bash diff --git a/installGlobalScript.sh b/installGlobalScript.sh index 2d1d08a..1d12a3e 100644 --- a/installGlobalScript.sh +++ b/installGlobalScript.sh @@ -44,6 +44,9 @@ then # Install Spotify bash installSpotify.sh + # Remove Spotify's bottom-banner + bash removeBannerSpotify.sh + # Install Syncthing bash installSyncthing.sh diff --git a/removeBannerSpotify.sh b/removeBannerSpotify.sh new file mode 100644 index 0000000..ac31547 --- /dev/null +++ b/removeBannerSpotify.sh @@ -0,0 +1,7 @@ +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