Add script to remove bottom-banner in Spotify

This commit is contained in:
Mylloon 2021-11-26 10:53:16 +01:00
parent 9fe628cf36
commit f14d47baaf
3 changed files with 14 additions and 0 deletions

View file

@ -56,6 +56,10 @@ Mon guide à suivre lors d'une réinstallation d'Ubuntu
```bash ```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 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) - 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 ```bash

View file

@ -44,6 +44,9 @@ then
# Install Spotify # Install Spotify
bash installSpotify.sh bash installSpotify.sh
# Remove Spotify's bottom-banner
bash removeBannerSpotify.sh
# Install Syncthing # Install Syncthing
bash installSyncthing.sh bash installSyncthing.sh

7
removeBannerSpotify.sh Normal file
View file

@ -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