SpotifyAB
π«[Works in 2025] Block ads in the Spotify desktop app for Windows using JavaScript injection. Enjoy uninterrupted music streaming without interruptions.
Install / Use
/learn @An0n-00/SpotifyABQuality Score
Category
Development & EngineeringSupported Platforms
README
<div align="center">[!important] This project is decommisioned due to personal and functional reasons..... To replace the adblock mechanism and to enjoy ad-free music, check out SPOT X: https://github.com/SpotX-Official/SpotX
Spotify AdBlocker (SpotifyAB)
π΅ Welcome to the Spotify AdBlocker (SpotifyAB) repository by An0n-00, designed to block ads and trackers directly within the Spotify desktop app for Windows. π«πΊ
Overview
This project utilizes JavaScript injection into the Spotify application to block ads and trackers, providing an uninterrupted listening experience without intrusive interruptions. π§π
</div>Anouncement
We are happy to announce that we have released a client app that automates the installation process. You can download the client app from the latest release in this repository. π
Installation Guide
To install the Spotify AdBlocker, follow these steps:
-
Download the Client App:
- Obtain the
SpotifyAB-Installer.exefile from the latest release - Run the installer to install the Spotify AdBlocker.
- Choose the option that you want to do.
- Obtain the
-
Restart Spotify: Done! You have successfully installed the Spotify AdBlocker! π
Visuals
Here you have some images of the client app:

Manual Installation Guide
To implement the Spotify AdBlocker, follow these steps:
-
Download the Required File:
- Obtain the
xpui.spafile from the latest release in this repository.
- Obtain the
-
Replace the Existing File in Spotify Directory:
- Navigate to your Spotify installation directory:
C:\Users\_username_\AppData\Roaming\Spotify\Apps\ - Replace the existing
xpui.spafile with the downloadedxpui.spafrom step 1. - ~If you encounter issues, unzip the
xpui.spato.\xpui\~ - Newly you have to have the
xpui.spaand\xpuias a folder. (you can unzip the xpui.spa file with any other software that unzips .tar files)
- Navigate to your Spotify installation directory:
[!important] Please always read the newest release, as it may contain newer information than written here
- Restart Spotify:
- Close and reopen the Spotify desktop app to apply the changes.
You have successfully installed the Spotify AdBlocker! π
[!CAUTION]
Compatibility Notice:
This method is specifically designed for the Spotify desktop app on Windows. The Microsoft Store version is not supported. π₯οΈβ
Verification Process
You can verify the functionality by examining the contents of the xpui.spa file:
- Unzip the
xpui.spafile using any zip program. - Explore the extracted files. The main file of interest is
./spotifyAB/AB.jsand theindex.htmlfile, which calls the JS file. - The
AB.jsfile contains the JavaScript code that blocks the ads.
π How to Build the Client App
If you want to build the client app yourself, follow these steps:
-
Clone the Repository:
git clone https://github.com/An0n-00/SpotifyAB.git cd SpotifyAB/SpotifyABClient -
Build the App:
dotnet build --Configuration Release cd ./bin -
Test Your Build:
- Run the built
SpotifyAB.exeand verify its functionality.
- Run the built
π Youβve successfully built the SpotifyAB client app!
Legal Information
- License: SpotifyAB by An0n-00 is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International
- Disclaimer: Use this software at your own risk. No warranties are provided. β οΈ
Contributors
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --> <!-- prettier-ignore-start --> <!-- markdownlint-disable --> <table> <tbody> <tr> <td align="center" valign="top" width="14.28%"><a href="https://an0n-00.github.io/"><img src="https://avatars.githubusercontent.com/u/142223573?v=4?s=100" width="100px;" alt="Anon"/><br /><sub><b>Anon</b></sub></a><br /><a href="https://github.com/An0n-00/SpotifyAB/commits?author=An0n-00" title="Code">π»</a> <a href="https://github.com/An0n-00/SpotifyAB/commits?author=An0n-00" title="Documentation">π</a> <a href="#design-An0n-00" title="Design">π¨</a> <a href="https://github.com/An0n-00/SpotifyAB/issues?q=author%3AAn0n-00" title="Bug reports">π</a> <a href="#blog-An0n-00" title="Blogposts">π</a> <a href="#content-An0n-00" title="Content">π</a> <a href="#maintenance-An0n-00" title="Maintenance">π§</a> <a href="#projectManagement-An0n-00" title="Project Management">π</a> <a href="#question-An0n-00" title="Answering Questions">π¬</a> <a href="#research-An0n-00" title="Research">π¬</a> <a href="https://github.com/An0n-00/SpotifyAB/pulls?q=is%3Apr+reviewed-by%3AAn0n-00" title="Reviewed Pull Requests">π</a> <a href="#security-An0n-00" title="Security">π‘οΈ</a> <a href="#tool-An0n-00" title="Tools">π§</a></td> </tr> </tbody> </table> <!-- markdownlint-restore --> <!-- prettier-ignore-end --> <!-- ALL-CONTRIBUTORS-LIST:END --> <!-- prettier-ignore-start --> <!-- markdownlint-disable --> <!-- markdownlint-restore --> <!-- prettier-ignore-end --> <!-- ALL-CONTRIBUTORS-LIST:END -->Star History
<a href="https://star-history.com/#An0n-00/SpotifyAB&Date"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=An0n-00/SpotifyAB&type=Date&theme=dark" /> <source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=An0n-00/SpotifyAB&type=Date" /> <img alt="Star History Chart" src="https://api.star-history.com/svg?repos=An0n-00/SpotifyAB&type=Date" /> </picture> </a>Useful Information
[!TIP] I've published another project called Spotify-ad-hosts that used to block Spotify ads by modifying the hosts file. It did not work out properly due to Spotify's changes in the ad-serving mechanism. However, I recommend to add the domains to the hosts file as an additional layer of protection and to block trackers. π Check it out! π¦
If you have any questions or encounter issues, please feel free to reach out by opening an issue on the GitHub repository. π’
Enjoy your ad-free Spotify experience with SpotifyAB! πΆπ
Related Skills
apple-reminders
335.9kManage Apple Reminders via remindctl CLI (list, add, edit, complete, delete). Supports lists, date filters, and JSON/plain output.
gh-issues
335.9kFetch GitHub issues, spawn sub-agents to implement fixes and open PRs, then monitor and address PR review comments. Usage: /gh-issues [owner/repo] [--label bug] [--limit 5] [--milestone v1.0] [--assignee @me] [--fork user/repo] [--watch] [--interval 5] [--reviews-only] [--cron] [--dry-run] [--model glm-5] [--notify-channel -1002381931352]
node-connect
335.9kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
oracle
335.9kBest practices for using the oracle CLI (prompt + file bundling, engines, sessions, and file attachment patterns).
