SpotX-Bash

SpotX-OfficialMIT活跃维护

用 Bash 脚本给 Mac 和 Linux 上的 Spotify 桌面客户端去广告,装完就能屏蔽音频和横幅广告,不用改客户端本体。

SpotX Mac and Linux adblocker for the Spotify desktop client, in Bash

暂无版本6,469star +8 / 7 天235fork同步于 2026-11-10 23:35 UTC

怎么上手

由 README 提炼,执行前请确认
bash <(curl -sSL https://spotx-official.github.io/run.sh)
硬件要求按 README 说明

README 未说明硬件要求;适用于所有 Linux 发行版和 OS X/macOS 10.11+,较旧的 macOS 需手动安装兼容的 Spotify 客户端

支持 Apple Silicon
下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

由 README 自动翻译提炼

给 Linux 和 macOS 上的 Spotify 桌面客户端打补丁,屏蔽广告并解锁实验功能

用 Bash 脚本给 Mac 和 Linux 上的 Spotify 桌面客户端去广告,装完就能屏蔽音频和横幅广告,不用改客户端本体。

核心能力

  • 屏蔽音频、横幅和视频广告
  • 屏蔽日志上报并开启开发者模式
  • 解锁全部受支持的实验性功能
  • 隐藏首页有声书、单集和播客
  • macOS 可屏蔽客户端自动更新

容易踩的坑

默认会应用免费版补丁,付费 Premium 用户必须加 -p 参数;Snap 安装的 Spotify 需克隆仓库后用 spotx-snap.sh 处理;Nix 用户应改用 SpotX-Nix,Intel macOS 除外

内容由模型根据 README 生成,可能不完整或不准确,以官方文档为准。看原文 README

最近发版

0 个版本

暂无 release 数据(可能没有发版,或尚未同步)。

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    Features:

    • Block all audio, banner & video ads
    • Block logging
    • Enable developer mode
    • Enable experimental features
    • Hide audiobooks, episodes & podcasts on home screen
    • Block automatic updates (macOS)
    • Install latest desktop client versions on macOS 13+ and APT-based Linux distros
    • Supports all Linux distros and OS X/macOS 10.11+
    • Older macOS releases require a compatible Spotify client installed manually; see the version timeline.

    Usage:

    • Run the following command in terminal:
    bash <(curl -sSL https://spotx-official.github.io/run.sh)
    

    or

    bash <(curl -sSL https://raw.githubusercontent.com/SpotX-Official/SpotX-Bash/main/spotx.sh)
    
    • If your shell does not support process substitution, use:
    curl -sSL https://spotx-official.github.io/run.sh | bash
    
    • See the FAQ for more information about shell compatibility and using options with the pipe command
    • By default...
      • all supported experimental features are enabled
      • free-tier user patches are applied, paid-premium users should use -p / --premium flag
      • macOS client auto-updates are NOT disabled, block auto-updates with -B / --blockupdates flag
    • View additional flags/options and examples in the Options section below
    • For more information, see the FAQ

    Snap / Nix:

    Spotify installations using Snap require the included spotx-snap.sh helper. Download the repo so spotx-snap.sh and spotx.sh remain in the same directory:

    git clone https://github.com/SpotX-Official/SpotX-Bash.git
    cd SpotX-Bash
    bash spotx-snap.sh
    

    Run bash spotx-snap.sh --help for additional Snap options or see the FAQ.

    Nix users on x86_64 Linux or Apple Silicon macOS should use SpotX-Nix, which applies SpotX-Bash while building the Spotify package without modifying the Nix store. It supports NixOS, nix-darwin, Home Manager, and configurations with or without flakes. Intel macOS users should continue using regular SpotX-Bash.

    Options:

    OptionDescription
    -Bblock client auto-updates [macOS]
    -cclear client app cache
    -denable developer mode
    -eexclude all experimental features
    -fforce SpotX-Bash to run
    -hhide non-music on home screen
    --helpprint options
    -ienable interactive mode
    --installdebinstall latest client deb pkg on APT-based distros [Linux]
    --installmacinstall latest supported client [macOS]
    -lset lyrics background color to black
    --nocolorremove colors from SpotX-Bash output
    --noninteractivedisable interactive prompts for automation
    -ouse old home screen UI
    -ppaid premium-tier subscriber
    -P <path>set path to client
    --rollbackinstall previous supported client version [macOS]
    -Sskip codesigning [macOS]
    --stableuse with '--installdeb' for stable branch [Linux]
    --uninstalluninstall SpotX-Bash
    -vprint SpotX-Bash version

    Examples:

    Run SpotX-Bash, clear app cache, enable dev mode, hide non-music categories

    bash <(curl -sSL https://spotx-official.github.io/run.sh) -cdh
    

    Run SpotX-Bash, enable interactive mode, set custom path to client

    bash <(curl -sSL https://spotx-official.github.io/run.sh) -i -P $HOME/Downloads/
    

    Run SpotX-Bash, set paid premium-tier subscriber

    bash <(curl -sSL https://spotx-official.github.io/run.sh) -p
    

    Run SpotX-Bash, install latest testing branch client version (Linux)

    bash <(curl -sSL https://spotx-official.github.io/run.sh) --installdeb
    

    Run SpotX-Bash, block auto-updates, install latest supported client version (macOS)

    bash <(curl -sSL https://spotx-official.github.io/run.sh) -B --installmac
    

    Install latest supported client version without interactive prompts (macOS)

    curl -sSL https://spotx-official.github.io/run.sh | bash -s -- --noninteractive --installmac
    

    Thanks: