π΅ Welcome to the Spotify AdBlocker (SpotifyAB) repository by An0n-00, designed to block ads and trackers directly within the Spotify desktop app for Windows. π«πΊ
This project utilizes JavaScript injection into the Spotify application to block ads and trackers, providing an uninterrupted listening experience without intrusive interruptions. π§π
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. π
To install the Spotify AdBlocker, follow these steps:
-
Download the Client App:
- Obtain the
SpotifyAB-Installer.exe
file 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! π
Here you have some images of the client app:
To implement the Spotify AdBlocker, follow these steps:
-
Download the Required File:
- Obtain the
xpui.spa
file 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.spa
file with the downloadedxpui.spa
from step 1. If you encounter issues, unzip thexpui.spa
to.\xpui\
- Newly you have to have the
xpui.spa
and\xpui
as 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
This method is specifically designed for the Spotify desktop app on Windows. The Microsoft Store version is not supported. π₯οΈβ
You can verify the functionality by examining the contents of the xpui.spa
file:
- Unzip the
xpui.spa
file using any zip program. - Explore the extracted files. The main file of interest is
./spotifyAB/AB.js
and theindex.html
file, which calls the JS file. - The
AB.js
file contains the JavaScript code that blocks the ads.
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.exe
and verify its functionality.
- Run the built
π Youβve successfully built the SpotifyAB client app!
- License: This project is licensed under the MIT License. π
- Disclaimer: Use this software at your own risk. No warranties are provided.
β οΈ
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! πΆπ