Tired of Spotify ads? This script automatically detects when advertisements are playing and restarts Spotify to skip them.
It monitors Spotify window titles and when it detects "Advertisement" (so please, avoid music with this title lol), it automatically:
- Kills the Spotify process
- Restarts Spotify
- Minimizes the window
- Resumes playback
- Debian Mate with X11 (it should work on others distros/desktop environments too, but I only tested on that)
- xdotool
- Spotify desktop app (duh)
sudo apt install xdotool
git clone <this repo url>
cd spotify-reset
chmod +x sporeset.sh./sporeset.sh &The script runs continuously in the background, monitoring for advertisements.
Put it on your Startup Applications :)