Skip to content

Block AI-generated music on Spotify using a community-maintained list. For listeners who prefer real artists.

License

Notifications You must be signed in to change notification settings

CennoxX/spotify-ai-blocker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

232 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spotify AI Music Blocker

Block AI-generated music on Spotify

Automatically blocks artists known for AI-generated music using a community-maintained list.

  • Runs directly in your browser
  • No manual blocking
  • Daily updated
  • Fully open source

Installation

  1. Install Tampermonkey
    • The script requires direct page-context access, which other userscript managers do not support.
    • If you use Chrome, you must allow Tampermonkey to run scripts: Permission to execute userscripts.
  2. Open the script on:
  3. Click Install and confirm.
  4. Open Spotify Web Player to run the script.

How It Works

The script automatically blocks artists from a community list of AI-generated music and runs quietly when you open Spotify Web.

Caution

Spotify does not provide an official API for blocking artists. This userscript mimics requests made by Spotify’s web player and may violate Spotify's Terms of Service. Use at your own risk.

  1. List Fetching: Daily loads a crowd-sourced CSV list of artists generating AI music from GitHub.
  2. Token Capture: Hooks into Spotify’s internal fetch requests to extract the access token.
  3. Username Detection: Retrieves the logged-in username from Spotify’s localStorage.
  4. Blocking: Sends POST requests with access token and username to Spotify’s private API to block each artist.
  5. Persistence: Remembers blocked artists and last run date using localStorage to prevent duplicate requests.

Help Improve the List

Found an AI artist? Submit them:

Similar Projects

FAQ

Does this work in the Spotify app?
Blocking the artists only works in the Spotify Web Player. But once blocked, the artists are blocked everywhere you use Spotify.

Do I need to install this on every device?
No, the block applies globally to your Spotify account, so once an artist is blocked, it counts on all devices.

Can I unblock artists later?
Yes, just unblock them on their artist page, they will not be blocked from that device again.

Will this get my Spotify account banned?
No known bans so far, but it uses unofficial methods and could theoretically violate ToS.

Support

Other problems? Open an issue on GitHub.

About

Block AI-generated music on Spotify using a community-maintained list. For listeners who prefer real artists.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Contributors 5