Giter Club home page Giter Club logo

spotifyadmuter's Introduction

* i realize that Windows Defender flags it. it's not a virus. that being said, i take no responsibility if anything bad happens.

SpotifyAdMuter

lightweight app that mutes the Spotify app on Windows when there are advertisements

behavior

  • SAM does NOT block ads, it only mutes them. therefore, there will occasionally be stretches of silence between songs.
  • when Spotify starts playing a song or gets paused, SAM will unmute Spotify.
  • when Spotify starts playing an advertisement, SAM will mute Spotify.
  • when you click the green button in the app, SAM will toggle Spotify's mute state. you can use this button to mute songs or listen to ads if you want.

troubleshooting / todo list

  • if the ads aren't being muted and the button doesn't do anything, restart SAM. this probably has something to do with whether you opened SAM before or after Spotify.
  • if the ads aren't being muted but the button still works, contact me.
  • sometimes, Spotify will play video ads. SAM does not detect these ads and is unable to mute them. i've noticed that video ads only happen when i'm on the Spotify app, so if you spend long periods of time browsing Spotify then SAM may not be as useful to you. i might fix this in the future.
  • in the future, i want to make SAM minimize to tray so that it doesn't add window clutter.

inspiration/sources

mostly Eric Zhang's EZBlocker - i looked through the code and wanted to simplify the process. other sources can be found in the .cs files.

technical bits and pieces

  • C#
  • Windows Forms
  • .NET Framework 4.0
  • Visual Studio 2019
  • Windows Core Audio API to control mute state
  • detects Spotify ad state by checking its window title

spotifyadmuter's People

Contributors

enpandi avatar

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.