{"id":13607209,"url":"https://github.com/abba23/spotify-adblock-linux","last_synced_at":"2025-04-12T11:31:50.948Z","repository":{"id":52203389,"uuid":"161527455","full_name":"abba23/spotify-adblock-linux","owner":"abba23","description":"Spotify adblocker for Linux","archived":true,"fork":false,"pushed_at":"2021-05-05T11:30:09.000Z","size":67,"stargazers_count":720,"open_issues_count":0,"forks_count":70,"subscribers_count":21,"default_branch":"master","last_synced_at":"2024-08-01T19:44:17.727Z","etag":null,"topics":["adblock","ads","blacklist","dns","linux","spotify","whitelist"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/abba23.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-12-12T18:16:00.000Z","updated_at":"2024-07-31T21:57:04.000Z","dependencies_parsed_at":"2022-08-03T15:19:54.738Z","dependency_job_id":null,"html_url":"https://github.com/abba23/spotify-adblock-linux","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abba23%2Fspotify-adblock-linux","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abba23%2Fspotify-adblock-linux/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abba23%2Fspotify-adblock-linux/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abba23%2Fspotify-adblock-linux/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abba23","download_url":"https://codeload.github.com/abba23/spotify-adblock-linux/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223514032,"owners_count":17158111,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["adblock","ads","blacklist","dns","linux","spotify","whitelist"],"created_at":"2024-08-01T19:01:16.550Z","updated_at":"2024-11-07T12:31:38.036Z","avatar_url":"https://github.com/abba23.png","language":"C","readme":"# This project has been deprecated in favor of its rewrite in Rust (https://github.com/abba23/spotify-adblock).\n\n# spotify-adblock-linux\nSpotify adblocker for Linux that works by wrapping `getaddrinfo` and `cef_urlrequest_create`, blocking non-whitelisted domains and blacklisted URLs.\n\n### Notes\n* This does not work with the snap Spotify package.\n\n## Build\nPrerequisites:\n* Git\n* Wget\n* tar\n* Make\n* GCC\n* libc headers (e.g. `libc-dev` on Debian-based distributions)\n\n---\n\n    $ git clone https://github.com/abba23/spotify-adblock-linux.git\n    $ cd spotify-adblock-linux\n    $ wget -O cef.tar.bz2 https://cef-builds.spotifycdn.com/cef_binary_88.1.6%2Bg4fe33a1%2Bchromium-88.0.4324.96_linux64_minimal.tar.bz2\n    $ tar -xf cef.tar.bz2 --wildcards '*/include' --strip-components=1\n    $ make\n\n## Install\n### Debian Package\n    $ sudo make install\n\n### Flatpak\n    $ mkdir -p ~/.spotify-adblock \u0026\u0026 cp spotify-adblock.so ~/.spotify-adblock\n    $ flatpak override --user --filesystem=\"~/.spotify-adblock/spotify-adblock.so\" com.spotify.Client\n\n## Usage\n### Command-line\n#### Debian Package\n    $ LD_PRELOAD=/usr/local/lib/spotify-adblock.so spotify\n\n#### Flatpak\n    $ 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)\"'\n\n### Desktop file\nYou 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.\n\nExamples:\n\n\u003cdetails\u003e \n  \u003csummary\u003eDebian Package\u003c/summary\u003e\n  \u003cp\u003e\n\n```\n[Desktop Entry]\nType=Application\nName=Spotify (adblock)\nGenericName=Music Player\nIcon=spotify-client\nTryExec=spotify\nExec=env LD_PRELOAD=/usr/local/lib/spotify-adblock.so spotify %U\nTerminal=false\nMimeType=x-scheme-handler/spotify;\nCategories=Audio;Music;Player;AudioVideo;\nStartupWMClass=spotify\n```\n  \u003c/p\u003e\n\u003c/details\u003e\n\n\u003cdetails\u003e\n  \u003csummary\u003eFlatpak\u003c/summary\u003e\n  \u003cp\u003e\n\n```\n[Desktop Entry]\nType=Application\nName=Spotify (adblock)\nGenericName=Music Player\nIcon=com.spotify.Client\nExec=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 @@\nTerminal=false\nMimeType=x-scheme-handler/spotify;\nCategories=Audio;Music;Player;AudioVideo;\nStartupWMClass=spotify\n```\n  \u003c/p\u003e\n\u003c/details\u003e\n\n## Uninstall\n    $ sudo make uninstall\n","funding_links":[],"categories":["C"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabba23%2Fspotify-adblock-linux","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabba23%2Fspotify-adblock-linux","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabba23%2Fspotify-adblock-linux/lists"}