Skip to content

🚫[Works in 2024] Block ads in the Spotify desktop app for Windows using JavaScript injection. Enjoy uninterrupted music streaming without interruptions.

License

Notifications You must be signed in to change notification settings

An0n-00/SpotifyAB

Repository files navigation

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. πŸŽ§πŸ”‡

Anouncement

There will be a client app to automate the installation process and to provide a user-friendly interface. Stay tuned for updates! πŸ”„

Installation Guide

To implement the Spotify AdBlocker, follow these steps:

  1. Download the Required File:

    • Obtain the xpui.spa file from the latest release in this repository.
  2. 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 downloaded xpui.spa from step 1.
    • If you encounter issues, unzip the xpui.spa to .\xpui\
  3. 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. πŸ–₯️❌

Note

There is a client app in progress to automate the installation process. Stay tuned for updates! πŸ”„

Verification Process

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 the index.html file, which calls the JS file.
  • The AB.js file contains the JavaScript code that blocks the ads.

Legal Information

  • License: This project is licensed under the MIT License. πŸ“œ
  • Disclaimer: Use this software at your own risk. No warranties are provided. ⚠️

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! πŸŽΆπŸš€