Giter Site home page Giter Site logo

Feature suggestion about spotify-ad-blocker HOT 4 CLOSED

xeroday avatar xeroday commented on September 23, 2024
Feature suggestion

from spotify-ad-blocker.

Comments (4)

Keavon avatar Keavon commented on September 23, 2024

This would be nice!

from spotify-ad-blocker.

war59312 avatar war59312 commented on September 23, 2024

Hi,

Indeed.

For now, I just use a batch file...

GOTO EndComment
This Batch File Makes It Easy To Hide Ads In Spotify
See: http://www.paralint.com/projects/notifu/
Written By war59312 ([email protected]) On May/11/2012
Updated On 21 Dec. 2014 To Use EZBlocker Instead Of Blockify

:EndComment
CLS
@ECHO OFF
TITLE Running Spotify

:SetPath
SET SPOTIFY_PATH=E:\Apps\Spotify

:TestSpotify
START /b /w /D"%SPOTIFY_PATH%\" pslist -e spotify >nul 2>&1
IF ERRORLEVEL 1 GOTO Spotify_NotFound

:Spotify_Found
ECHO Spotify Is Already Running
ECHO.
TITLE Spotify Is Already Running
START /b /D"%SPOTIFY_PATH%\notifu-1.6" notifu64.exe /p "Spotify" /m "Spotify Is Already Running" /d 30 /i notifu64.exe
GOTO TestEZBlocker

:Spotify_NotFound
ECHO Starting Spotify
ECHO.
TITLE Starting Spotify
start /d"%userprofile%\AppData\Roaming\Spotify\" spotify.exe
GOTO TestEZBlocker

:TestEZBlocker
START /b /w /D"%SPOTIFY_PATH%\" pslist EZBlocker >nul 2>&1
IF ERRORLEVEL 1 GOTO EZBlocker_NotFound

:EZBlocker_Found
ECHO EZBlocker Is Already Running
ECHO.
TITLE EZBlocker Is Already Running
GOTO TestToastify

:EZBlocker_NotFound
TITLE Starting EZBlocker
ECHO Lets Wait 10 Seconds And Then Start EZBlocker
TIMEOUT 10
ECHO.
ECHO Starting EZBlocker
ECHO.
start /d"%SPOTIFY_PATH%\EZBlocker\" EZBlocker.exe
GOTO TestToastify

:TestToastify
START /b /w /D"%SPOTIFY_PATH%\" pslist -e Toastify >nul 2>&1
IF ERRORLEVEL 1 GOTO Toastify_NotFound

:Toastify_Found
ECHO Toastify Is Already Running
TITLE Toastify Is Already Running
GOTO END

:Toastify_NotFound
ECHO Starting Toastify
TITLE Waiting For Spotify To Quit
start /w /d"%SPOTIFY_PATH%\Toastify_1.7.0" Toastify.exe

:QuitSpotify
TITLE Quitting Spotify
ECHO.
ECHO Quitting Spotify
ECHO.
START /b /w /D"%SPOTIFY_PATH%\" pslist -e EZBlocker >nul 2>&1
IF ERRORLEVEL 1 GOTO END
TITLE Killing EZBlocker
ECHO Killing EZBlocker
ECHO.
process -q EZBlocker.exe >nul 2>&1

:END
TITLE Spotify Has Exited
ECHO.
::PAUSE
EXIT

Files requried:

http://www.paralint.com/projects/notifu/
http://technet.microsoft.com/en-us/sysinternals/bb896682.aspx
https://toastify.codeplex.com/

Make sure you change "SPOTIFY_PATH" and droped requried files in that folder.

If you want to start the batch file completely hidden, you can use hstart64 @ http://www.ntwind.com/blog/hstart-x64.html

Then start batch file via something like:

E:\Apps\hstart\hstart64.exe /noconsole /wait /D="" "E:\Spotify\Spotify.cmd"

So it starts all three programs, Spotify, EZBlocker, and Toastify.

Then when you exit Toastify, it will close Spotify and EZBlocker too.

Make sure in Toastify settings you check "Close Spotify when use close Toastify".

Enjoy,

Will

from spotify-ad-blocker.

mikalehmann avatar mikalehmann commented on September 23, 2024

Thank you for the idea. I knew how to do basic batch files so I just made a batch file to open Spotify and EZBlocker. Didn't know how to close them simultaneously, though. I'll try to use your method.
There are people more lazy than us and having an EZBlocker option for this would be nice.

from spotify-ad-blocker.

Xeroday avatar Xeroday commented on September 23, 2024

Autostart option added in v1.6.7.

from spotify-ad-blocker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.