Skip to content

muskit/EZBlocker2

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

88 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This fork by Alex Tran (muskit) adds automatic playback of audio during muted ad breaks.

Besides muting Spotify, you can now choose to play an audio clip during ad breaks! Image of fork explanation

Working off commit a4bd292976c53186b2f054b21ba0aa46eb17ef10, the last commit involved in the latest binary release from MatrixDJ96.

EZBlocker 2

This is an unofficial successor of EZBlocker by Eric Zhang

Information

EZBlocker 2 is ad muter/blocker for Spotify.
It is compatible with every O.S. which supports .NET Framework 4.5+.
(Also Windows Store version is supported!)

You could choose 2 different options:

  • Mute ads (if an ad does load, it will mute Spotify until the ad is over)
  • Block ads (apply hosts patches on system to prevent ads on Spotify from loading)

No setup required, it's a portable application!
To update your EZBlocker 2, replace the executable or use auto-update process.

How it works

Mute ads:

  • Basically Spotify desktop runs a web server on 127.0.0.1 that contains information about Spotify status. EZBlocker 2 attempts to extract song information hooking to this local server. To use this non-intrusive method, web helper in Spotify must be enabled.
  • EZBlocker 2 attempts to extract song information hooking to the new Spotify Web API. To use this official method you need to connect with your Spotify account (using any browser) and it is necessary to accept the request. (Example)

Block ads:

  • To prevent ads on Spotify from loading EZBlocker 2 must apply hosts patches on your system. These patches to be applied should require administrator rights.
  • Enabling this option will be disabled automatic update for Spotify!

Error reporting

EZBlocker 2 will create a log with all errors detected. If you want to open a issue on GitHub, it would be better to attach that log to receive a better solution.

Credits

  • MatrixDJ96 (me) for this amazing project
  • Eric Zhang for the original EZBlocker
  • Bruske for design inspiration
  • Shyyko Serhiy for spotilocal method
  • FadeMind for hosts patches
  • Mark Heath for NAudio library
  • James Newton-King for Json.NET library
  • Alex Tran for the audio-during-muted-ads fork

Changelog

Version 2.2.0.0:

  • Added audio playback during muted ad breaks
  • Added ad break simulation
  • Settings pertaining to ad-break audio playback are saved
  • Limited the window dragging zone to the banner and title bar

Version 2.1.4.0:

  • Changed request interval to 500ms
  • Updated resources using NuGet
  • Improved authorization process
  • Updated Spotify Web API (issue #19, #20, #24, #28)
  • Added menu item to show EZBlocker 2 status

Version 2.1.3.4:

  • Fixed log
  • Added browser auto-close
  • Fixed hosts patches (merged pull request n.16)
  • Removed message "Automatic update for Spotify will be disabled."
  • General improvements and fixes

Version 2.1.3.3:

  • Improved log
  • (re)Fixed WebAPI (refresh_token)

Version 2.1.3.2:

  • Improved WebServer
  • Fixed WebAPI (refresh_token)
  • Changed request interval (300ms)
  • Cleaned from useless code
  • Various fixed

Version 2.1.3.1:

  • Improved error handling
  • Improved and fixed WebServer
  • Decreased (half) request for second
  • Improved error reporting (log)
  • Little fixes

Version 2.1.3.0:

  • Using new Spotify WebAPI (beta)

Version 2.1.2.5:

  • Implemented save location on the screen
  • Added CTRL key to center location on the screen
  • Fixed commit 8d43ec8
  • Updated hosts patches
  • Bug fixes and general optimization

Version 2.1.2.4:

  • Fixed memory leak (issue #10, #9)

Version 2.1.2.3:

  • Improved Spotify port detection
  • Fixed minor bugs
  • Added Spotilocal timeout
  • Updated hosts patches
  • Added warning when enabling hosts patches
  • Fixed issue #6 (1st second or half second of ads is not muted)

Version 2.1.2.2:

  • Updated hosts patches
  • Fixed some weird title/artist/album song

Version 2.1.2.1:

  • Improved update form
  • Added tooltip for errors
  • Added detection of .NET Framework 4.5
  • Removed useless using directive
  • Fixed version number

Version 2.1.2.0:

  • Added info message when you enable/disable hosts patches
  • Revert 'Downgraded .NET Framework to v4.0'
  • Updated JSON library
  • Improved update process
  • Improved SpotilocalStatus
  • Removed useless using directives
  • Fixed minor bug

Version 2.1.1.0:

  • Improved and fixed Spotify status checking process
  • Updated user agent

Version 2.1.0.0:

  • Significant improvement of the Spotify status checking process
  • Updated hosts patches
  • Fixed minor bugs

Version 2.0.0.8:

  • Fixed minor crashes
  • Fixed update process
  • Fixed host patches applying process
  • Fixed hosts patches
  • Options StartMinized and StartOnLogin separated
  • Added all security protocols for the network connect
  • Changed exit timeout to 3 seconds
  • Fixed issue #1 (the last second of ads are not muted)

Version 2.0.0.7:

  • Added SndVol32.exe check for system volume mixer
  • Improved songs detection
  • Updated 7-Zip binary
  • Improved errors reporting
  • Updated host patches
  • Improved host patches applying process
  • Fixed minor bugs

Version 2.0.0.6:

  • Downgraded .NET Framework to v4.0
  • Improved Spotify detection process
  • Improved processes starting mechanism

Version 2.0.0.5:

  • Improved block-ads process
  • Improved loading process
  • Updated icons

Version 2.0.0.4:

  • Fixed detection of Spotify in a particular case
  • New settings storage (portable)
  • Fixed typo in a message
  • Fixed crash while playing local song
  • Fixed detection of Spotify in multi-user case
  • Added message when something goes wrong while extracting dependencies
  • Added message and solution when the update process goes wrong
  • Updated icon

Version 2.0.0.3:

  • Updated graphic resources
  • Fixed file extraction
  • Recompiled NAudio.dll for .NET Framework 4.5
  • Fixed "Loading EZBlocker 2..." message
  • Added detection of .NET Framework 4.5
  • Fixed start minimized option
  • Fixed behavior when something goes wrong
  • Updated websites
  • Added GUI for update process
  • Added more movement points

Version 2.0.0.2:

  • Fixed auto-update process
  • Fixed behavior if admin rights not granted

Version 2.0.0.1:

  • Mute ads is now enabled by default

Version 2.0.0.0:

  • EZBlocker 2! (Project rewritten from scratch)

About

A fork of MatrixDJ96's EZBlocker2, which now plays user-loaded audio if a Spotify ad is being muted

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 99.0%
  • HTML 1.0%