Last active
February 14, 2023 16:08
-
-
Save musaubrian/4fe4cd5fdb01bd654a7141a967332408 to your computer and use it in GitHub Desktop.
bash script to install spotify adblocker by [github.com/abba23]
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# this script makes use of flatpak, ensure that is installed | |
# Or to not use flatpacks, check out the instructions from the repo just below | |
git clone https://github.com/abba23/spotify-adblock.git | |
cd spotify-adblock | |
make | |
sudo make install | |
mkdir -p ~/.spotify-adblock && cp target/release/libspotifyadblock.so ~/.spotify-adblock/spotify-adblock.so | |
mkdir -p ~/.config/spotify-adblock && cp config.toml ~/.config/spotify-adblock | |
flatpak override --user --filesystem="~/.spotify-adblock/spotify-adblock.so" --filesystem="~/.config/spotify-adblock/config.toml" com.spotify.Client |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Launch the programm | |
flatpak run --command=sh com.spotify.Client -c 'eval "$(sed s#LD_PRELOAD=#LD_PRELOAD=$HOME/.spotify-adblock/spotify-adblock.so:#g /app/bin/spotify)"' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment