Block AI-generated music on Spotify using a crowd-sourced list. This project collects artists making AI-music and blocks them automatically with a userscript.
Caution
Spotify doesn’t provide a public API to block artists, so this userscript uses a workaround by capturing Spotify’s tokens and mimicking internal requests from Spotify’s web client. Using unofficial API requests may violate Spotify's Terms of Service.
- List Fetching: Loads daily a crowd-sourced CSV list of artists generating AI-music from GitHub.
- Token Capture: Hooks into Spotify’s internal
fetch
requests to extract the access token. - Username Detection: retrieves the logged-in username from Spotify’s
localStorage
. - Blocking: Sends POST requests with access token and username to Spotify’s private API to block each artist.
- Persistence: Remembers blocked artists and last run date using
localStorage
to prevent duplicate requests.
- Install a userscript manager (e.g. Tampermonkey, Violentmonkey).
- Visit the script on GreasyFork or GitHub.
- Click Install and confirm.
Found an AI-music generating artist? Add an AI artist using GitHub or send a mail.
Other problems? Open an issue.