[GH-ISSUE #44] [Feature Request] A standalone package?? #169

Open
opened 2026-03-01 17:43:35 +03:00 by kerem · 3 comments
Owner

Originally created by @im-AMS on GitHub (Oct 12, 2021).
Original GitHub issue: https://github.com/AnanthVivekanand/spotify-adblock/issues/44

The script works good, but its a hassle with opening the terminal, running then open Spotify.

Im not that informed in this sort of programming, but is there a way where opening spotify automatically runs mitm, and quits when spotify closes?? possibly clone this repo in Spotify.app/Contents/MacOS and creating a script which runs mitm before opening Spotify binary.

Originally created by @im-AMS on GitHub (Oct 12, 2021). Original GitHub issue: https://github.com/AnanthVivekanand/spotify-adblock/issues/44 The script works good, but its a hassle with opening the terminal, running then open Spotify. Im not that informed in this sort of programming, but is there a way where opening spotify automatically runs mitm, and quits when spotify closes?? possibly clone this repo in Spotify.app/Contents/MacOS and creating a script which runs mitm before opening Spotify binary.
Author
Owner

@adikpb commented on GitHub (Oct 13, 2021):

#!/bin/zsh
cd {Spotify Adblock Directory Here}

number=$(ps aux | grep -v grep | grep -ci "Spotify")

if [ $number -gt 0 ] ;then
    echo "Spotify is found to be running, relaunching Spotify"
    pkill Spotify
    else
    echo "Spotify is not found to be running, launching Spotify"
fi
    
open -a Spotify
node mitm.js

Save this as a .sh file, running it should start the mitm service and open up spotify as well. You will have to close service and spotify manually though.

<!-- gh-comment-id:942582094 --> @adikpb commented on GitHub (Oct 13, 2021): ``` #!/bin/zsh cd {Spotify Adblock Directory Here} number=$(ps aux | grep -v grep | grep -ci "Spotify") if [ $number -gt 0 ] ;then echo "Spotify is found to be running, relaunching Spotify" pkill Spotify else echo "Spotify is not found to be running, launching Spotify" fi open -a Spotify node mitm.js ``` Save this as a .sh file, running it should start the mitm service and open up spotify as well. You will have to close service and spotify manually though.
Author
Owner

@AnanthVivekanand commented on GitHub (Oct 13, 2021):

Although the script will start Spotify and spotify-adblock at the same time, it will not manage the proxy settings on Spotify.

So just note that whenever you start Spotify manually, you'll have to change the proxy settings to None or No Proxy or start spotify-adblock manually.

<!-- gh-comment-id:942588105 --> @AnanthVivekanand commented on GitHub (Oct 13, 2021): Although the script will start Spotify and spotify-adblock at the same time, it will not manage the proxy settings on Spotify. So just note that whenever you start Spotify manually, you'll have to change the proxy settings to None or No Proxy or start spotify-adblock manually.
Author
Owner

@karelo911 commented on GitHub (Nov 19, 2021):

Can confirm that @adikpb's solution works for me. I wonder if I can add this script to the spotify launcher itself.

<!-- gh-comment-id:973571407 --> @karelo911 commented on GitHub (Nov 19, 2021): Can confirm that @adikpb's solution works for me. I wonder if I can add this script to the spotify launcher itself.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/spotify-adblock#169
No description provided.