Blockify

Github

This program mutes advertisements automatically in Spotify.

An RPM is available from openSUSE’s build service, though you may prefer to install it manually.

Note
pip
You may want to review the article on pip for general advice on not polluting your system when installing Python packages.

First the dependencies:

dnf install pygtk2 python3-docopt dbus qstreamer-devel wmctrl

Pulseaudio and ALSA are required as well. Finally, you have to install this using Python 3.

git clone https://github.com/mikar/blockify
cd blockify
pip3 install --user .

This will put everything into ~/.local/. Uninstall using:

pip3 uninstall --user blockify