Skip to content
المشاريع

CennoxX/spotify-ai-blocker

عرض على GitHub

حول

Block AI-generated music on Spotify Web automatically using a community-maintained list. Runs in your browser with Tampermonkey, keeps your Spotify account free from AI artists, and updates daily.

التصميم والوسائط

كيف تُقاس هذه الأرقام

النمو المقاس للنجوم

خلال 24 ساعة
٠
خلال 7 أيام
+٣
خلال 15 يومًا
+٦
خلال شهر
جارٍ جمع السجل

تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.

README.md

الأصل

Spotify AI Music Blocker

License: MIT Greasy Fork version AI artists

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

Check if a Spotify Artist is AI-Generated

Wondering if a Spotify artist is AI-generated? If you don’t want to install the script and just want to check an artist, you can search the list of AI music artists here:
Search the AI Artist List

Use the Search this file box at the top of the page to look for the artist name or ID.

Installation

  1. Install a userscript manager:
    • The script requires direct page-context access to hook Spotify's internal requests. Depending on the userscript manager, additional configuration may be required.
    • Tampermonkey
    • Violentmonkey
      • If you use Firefox, enable Bypass CSP in Firefox in Violentmonkey's settings.
  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-generated artist that is not on the list? Submit them using the GitHub submission form.

You can also submit the currently playing or the currently opened artist anonymously from Spotify Web: Hold Shift + Right Click (Spotify disables the normal context menu), then go to Tampermonkey → Spotify AI Artist Blocker → Report playing AI Artist / Report opened AI Artist. A new submission with the artist will automatically be created.

Data Sources

Spotify AI Music Blocker combines community submissions with artists imported from other lists.

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.

استكشف مشاريع مشابهة ومرتبطة

جارٍ التحميل…