All Projects → abba23 → spotify-adblock

abba23 / spotify-adblock

Licence: other
Adblocker for Spotify

Programming Languages

rust
11053 projects
Makefile
30231 projects

Projects that are alternatives of or similar to spotify-adblock

ADios
ADBlocker - Block ADS on Twitch, Spotify and EVERYWHERE via the HOST File, PI-Hole, Adblocker Add-on, DNSMasq, Response Policy Zone and Adguard Services. - ADios ADS !
Stars: ✭ 73 (-89.19%)
Mutual labels:  spotify, adblock
Spotify Adblock Linux
Spotify adblocker for Linux
Stars: ✭ 641 (-5.04%)
Mutual labels:  spotify, adblock
SpotX
Blocking ads and updates for the desktop version of Spotify, disabling podcasts and something else.
Stars: ✭ 812 (+20.3%)
Mutual labels:  spotify, adblock
Xspotify
A modified Spotify client with DRM bypass.
Stars: ✭ 1,376 (+103.85%)
Mutual labels:  spotify, adblock
SpotifyAdBlocker-Windows
Spotify Adblocker for windows
Stars: ✭ 42 (-93.78%)
Mutual labels:  spotify, adblock
spotube
A lightweight free Spotify 🎧 desktop-client 🖥 which handles playback manually, streams music using Youtube & no Spotify premium account is needed 😱
Stars: ✭ 361 (-46.52%)
Mutual labels:  spotify
pi-hole-cloudflared-docker-compose-ansible-caddy
Example configuration for using Pi-Hole, Cloudflared, Docker Compose, Ansible, and Caddy to over-engineer your home network for privacy and security.
Stars: ✭ 97 (-85.63%)
Mutual labels:  adblock
spotdlRedesign
spotDL v4 - The spotDL you love and use with plugin support.
Stars: ✭ 17 (-97.48%)
Mutual labels:  spotify
react-tailwind-spotify-clone
Spotify clone with full functionality using React + Tailwind (Not finished)
Stars: ✭ 209 (-69.04%)
Mutual labels:  spotify
hosts
🄯Curated lists of hosts files with various domain blocks.🄯
Stars: ✭ 15 (-97.78%)
Mutual labels:  adblock
react-redux-spotify
React + Redux + Spotify web api boilerplate project
Stars: ✭ 14 (-97.93%)
Mutual labels:  spotify
remixr
Discover new music based on the Spotify playlists you know and love!
Stars: ✭ 37 (-94.52%)
Mutual labels:  spotify
guilyx
Dynamic Profile with github statistics, coding info (time and languages) with WakaTime and music status with the spotify API, leave a ⭐ if you like it
Stars: ✭ 175 (-74.07%)
Mutual labels:  spotify
indonesianadblockrules
Filter tambahan untuk EasyList memblokir iklan berbahasa Indonesia dan Malaysia.
Stars: ✭ 93 (-86.22%)
Mutual labels:  adblock
FCommunity
multi Checkers (Hma/Hulu/Spotify/Call of duty/Instagram/smtp2go/VyprVpn) in One Tool Named FCommunity
Stars: ✭ 26 (-96.15%)
Mutual labels:  spotify
spotify-auth-code-example-vue
VueJS boilerplate app with Spotify API authentication and data fetching.
Stars: ✭ 12 (-98.22%)
Mutual labels:  spotify
platzi-music-vue
Web app para el curso Profesional de Vue.js
Stars: ✭ 33 (-95.11%)
Mutual labels:  spotify
alternative-front-ends
Overview of alternative open source front-ends for popular internet platforms (e.g. YouTube, Twitter, etc.)
Stars: ✭ 1,664 (+146.52%)
Mutual labels:  adblock
pebblify
Pebblify is a full-featured Spotify app for Pebble watches, made with PebbleJS ⌚🎶 https://apps.rebble.io/en_US/application/5ff3b52b1e6bb11b9eee5c5a
Stars: ✭ 16 (-97.63%)
Mutual labels:  spotify
spotify-true-random
🔀 An application for unbiased truly random playlist and library shuffling with Spotify.
Stars: ✭ 51 (-92.44%)
Mutual labels:  spotify

spotify-adblock

Spotify adblocker for Linux (macOS untested) that works by wrapping getaddrinfo and cef_urlrequest_create. It blocks requests to domains that are not on the allowlist, as well as URLs that are on the denylist.

Notes

  • This does not work with the snap Spotify package.
  • This might not work with the Flatpak Spotify package, depending on your system's shared libraries' versions.
  • On Debian-based distributions (e.g. Ubuntu), the Debian Spotify package can be installed by following the instructions at the bottom of this page. (recommended)

Build

Prerequisites:

$ git clone https://github.com/abba23/spotify-adblock.git
$ cd spotify-adblock
$ make

Install

$ sudo make install

Flatpak

$ mkdir -p ~/.spotify-adblock && cp target/release/libspotifyadblock.so ~/.spotify-adblock/spotify-adblock.so
$ mkdir -p ~/.config/spotify-adblock && cp config.toml ~/.config/spotify-adblock
$ flatpak override --user --filesystem="~/.spotify-adblock/spotify-adblock.so" --filesystem="~/.config/spotify-adblock/config.toml" com.spotify.Client

Usage

Command-line

$ LD_PRELOAD=/usr/local/lib/spotify-adblock.so spotify

Flatpak

$ flatpak run --command=sh com.spotify.Client -c 'eval "$(sed s#LD_PRELOAD=#LD_PRELOAD=$HOME/.spotify-adblock/spotify-adblock.so:#g /app/bin/spotify)"'

Desktop file

You can integrate it with your desktop environment by creating a .desktop file (e.g. spotify-adblock.desktop) in ~/.local/share/applications. This lets you easily run it from an application launcher without opening a terminal.

Examples:

Debian Package

[Desktop Entry]
Type=Application
Name=Spotify (adblock)
GenericName=Music Player
Icon=spotify-client
TryExec=spotify
Exec=env LD_PRELOAD=/usr/local/lib/spotify-adblock.so spotify %U
Terminal=false
MimeType=x-scheme-handler/spotify;
Categories=Audio;Music;Player;AudioVideo;
StartupWMClass=spotify

Flatpak

[Desktop Entry]
Type=Application
Name=Spotify (adblock)
GenericName=Music Player
Icon=com.spotify.Client
Exec=flatpak run --file-forwarding --command=sh com.spotify.Client -c 'eval "$(sed s#LD_PRELOAD=#LD_PRELOAD=$HOME/.spotify-adblock/spotify-adblock.so:#g /app/bin/spotify)"' @@u %U @@
Terminal=false
MimeType=x-scheme-handler/spotify;
Categories=Audio;Music;Player;AudioVideo;
StartupWMClass=spotify

Uninstall

$ sudo make uninstall

Flatpak

$ rm -r ~/.spotify-adblock ~/.config/spotify-adblock
$ flatpak override --user --reset com.spotify.Client

Configuration

The allowlist and denylist can be configured in a config file located at (in ascending order of precedence):

  • /etc/spotify-adblock/config.toml (default)
  • ~/.config/spotify-adblock/config.toml (default for Flatpak)
  • config.toml in the working directory
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].