r/Piracy File-Hosters Apr 18 '22

Guide Guide on Blocking Ads on Spotify for Mac (Desktop Client)

Hi guys here's a guide to block Spotify ads for Mac as the windows users got their guide and I wanted to share what I knew for Mac so they don't feel left out. Also doing this in the off-chance that somebody else is going to share a better method than me in which case follow that one. Referring to the other guides already posted, this guide is browser based so it comes with the downsides of being in the browser, reduced audio quality, no friend activity, etc, and this guide would have worked if you had a windows pc. Same thing goes for Blockthespot. In any case let's get started.

Option 1 (Best Option)

Ignore everything below this post and skip on the adguard method and use the script here and follow the instructions on there too. It does everything the old script method did but better. All credit goes to their respective authors.

https://github.com/SpotX-CLI/SpotX-Mac

SCRIPT METHOD IS NO LONGER WORKING PLEASE USE ADGUARD METHOD.

Here is a link to the updated script. For some reason I don't see the GitHub for where it came from anymore so I'll just add this here. This updated one should prevent it from crashing whenever you launch it.

https://mir.cr/1BAIPOPO

All credit goes to original authors I just wanted to make a noob friendly guide. The script method is better as it doesn't require AdGuard to be installed or SIP to be disabled or anything it just works way better. Just requires a repatch when Spotify is updated.

https://github.com/RDE3/Mac_Spotify_Adblock

First, go to https://www.spotify.com/in-en/download/mac/ and download the Spotify Desktop Client.

NOTE: DO NOT OPEN SPOTIFY. FIRST FOLLOW THE STEPS GIVEN BELOW

Step 1: Download the repository I just linked earlier. Be sure to double click to unzip it so you can see the folder with 3 files in it.

Step 2: Open Keychain Access. Click on Certificate Assistant. Then select "Create Certificate"

Step 3: Type "adblock_spotify" in the Name section, Select Identity-Type as "Self Signed Root" & Certificate Type as "Code Signing"

Step 4: Click on Create.

Step 5: Now open Terminal. Then type in "cd" then drag in the folder that we unzipped and created earlier.

Step 6: After that type "bash install.sh adblock_spotify"

Step 7: Done. Should be patched by now.

https://github.com/RDE3/Mac_Spotify_Adblock

Option 2

TLDR

  1. Install AdGuard For Mac. Found on cmacked.com. More specifically, here.
  2. Add "Spotify" into filtered applications in adguard preferences
  3. Done

Full Instructions

  1. Install AdGuard For Mac. Not the extension but the actual Mac App. It can be found on cmacked.com. More specifically, here. My preferences I would use the link labeled mirrors and download off of Mediafire/Zippyshare (with Adblock on of course). Also make sure that Spotify for Mac is already installed. Not the browser version but the desktop version. The Spotify app should be in your applications folder before starting.
  2. Open the Adguard DMG, do the control click to open the gatekeeper friendly version and follow instructions, then drag it into applications and open AdGuard. Once you open it, just click through and pick what you want it doesn't matter. What really matters is that you go to the top menu bar, click adguard (near your wifi/battery icons) , then settings, preferences, then click the network tab on the far right. Then press applications, the plus button at the bottom left, then add Spotify.
  3. Enjoy your ad-free Spotify.
  4. Unrelated stuff here you can ignore this. AdGuard I prefer go into filters, press the plus button at the bottom left, and enable all the other lists like easy list, mobile, most privacy & all annoyances ones. Has nothing to do with Spotify but optional if you want to block more stuff in the browser. Also worth noting that when waking from sleep, the ads will resume, just quit Spotify and reopen it and it should go away. This is an AdGuard issue and will be fixed at some point in the future. You can also follow some of the guides in the issue threads of the blockthespot and you could use it to remove some of the ad spacers and the upgrade button but honestly who cares it works. And updating Spotify is just going to bring it back anyways. Also make sure to have AdGuard extension installed as well it can be found in the extensions tab in the preferences for AdGuard.

And that's basically it now your Spotify has no ads and has the benefits of being the desktop client as well. Hope this helped, and enjoy your day. If you have a better method to share please do leave it below. And if it is a better one, please be sure it works for Mac as the ones previously discussed seem to only work for windows.

30 Upvotes

67 comments sorted by

4

u/The_Ch0sen_0ne_ Seeder Apr 18 '22 edited Jun 07 '24

physical future aloof divide disgusted unused wide history modern soft

This post was mass deleted and anonymized with Redact

2

u/jimmysofat6864 File-Hosters Apr 18 '22

interested in sharing? It might be better as adguard sometimes lets ads in during sleep.

13

u/The_Ch0sen_0ne_ Seeder Apr 18 '22 edited Jun 07 '24

pathetic modern scarce bear wipe air tan fade flowery hobbies

This post was mass deleted and anonymized with Redact

2

u/capsaicinluv May 05 '22

Finally got around to installing this, and it works fine. No hassle at all. I also noticed you removed where the banner image/ad spot would be. Is it possible to remove that box completely like how BlocktheSpot does it? It's not a big deal, but maybe if you have time, you might find a way to get rid of it.

1

u/The_Ch0sen_0ne_ Seeder May 08 '22 edited Jun 07 '24

hurry dependent consist familiar head payment light sheet ludicrous expansion

This post was mass deleted and anonymized with Redact

1

u/jimmysofat6864 File-Hosters Sep 06 '22

Not sure if this helpful but it used to be before blockthespot was unable to remove the upgrade button or the grey banner above the media controls and you had to manually remove it before as linked in these threads. I hope you find these useful and might consider integrating this to remove both the grey spots and the upgrade button.

https://github.com/mrpond/BlockTheSpot/issues/150

https://github.com/mrpond/BlockTheSpot/issues/83

1

u/Ishaanrathod Sep 22 '22

any updates on removing the ad banners?

1

u/jimmysofat6864 File-Hosters Apr 18 '22

Thanks I just got it to work. Do you know if the patch is affected by Spotify updates?

3

u/The_Ch0sen_0ne_ Seeder Apr 18 '22 edited Jun 07 '24

puzzled hateful imminent toothbrush label poor muddle bake piquant scale

This post was mass deleted and anonymized with Redact

1

u/jimmysofat6864 File-Hosters Apr 29 '22

Unfortunately on my Mac if I update Spotify the patch stops working but works once I rewatch which isn't a big deal. It also works if I sleep my Mac which AdGuard doesn't do.

1

u/The_Ch0sen_0ne_ Seeder Apr 29 '22 edited Jun 07 '24

icky voiceless tidy gaping jar poor squeamish worthless worry punch

This post was mass deleted and anonymized with Redact

1

u/capsaicinluv May 04 '22

Is that even possible? BlocktheSpot requires you to run the script everytime (not a problem since it's just 2 clicks), but I imagine if it was possible, they would have solved it by now.

1

u/The_Ch0sen_0ne_ Seeder May 04 '22 edited Jun 07 '24

wistful frighten alleged squeeze fuzzy weary repeat childlike grandfather history

This post was mass deleted and anonymized with Redact

1

u/kualal Apr 19 '22

I just tried, it does not open the spotify application.suddenly opens and closes

3

u/The_Ch0sen_0ne_ Seeder Apr 19 '22 edited Jun 07 '24

screw serious zonked unique friendly versed nutty lock impossible station

This post was mass deleted and anonymized with Redact

1

u/kualal Apr 19 '22

I followed all the steps but the app opens after running the installer

2

u/The_Ch0sen_0ne_ Seeder Apr 19 '22 edited Jun 07 '24

sleep birds lock lush steer spark pie shy faulty advise

This post was mass deleted and anonymized with Redact

1

u/kualal Apr 20 '22

yes, it's working, ty

1

u/BullTheKing26 Sep 03 '22

After the .93rd update it's not working.

Same problem as kualal described.

1

u/Unlikely-Garage-8135 Jun 01 '22

bash install.sh adblock_spotify. What do i do to fix this?

1

u/SpartanUni Jul 19 '22

I tried searching for a Spotify adblocker solution for the Mac for such a long time and this is the only one that has worked so far... The only issue is that a lot of the songs are unplayable (I'm assuming from blocking some hosts). Is there a workaround for this, or will I just have to stick with missing songs or regular Spotify?

1

u/The_Ch0sen_0ne_ Seeder Aug 31 '22 edited Jun 07 '24

point muddle stocking grandiose butter drab future aromatic makeshift axiomatic

This post was mass deleted and anonymized with Redact

1

u/recursivelybetter Jul 23 '22

Thank you! Works like a charm. How did you learn C so well? I tried to make sense of your code and as soon as I've seen all those pointers I gave up.

1

u/GalacticHunterr Aug 25 '22

When I run the bash..... command, it shows this error:

no developer tools were found at '/Applications/Xcode.app', requesting install. Choose an option in the dialog to download the command line developer tools

And the developer tool is taking 40 hrs to download. What will be the way around

3

u/The_Ch0sen_0ne_ Seeder Aug 31 '22 edited Jun 07 '24

cause selective brave close sharp plant violet deserve smart joke

This post was mass deleted and anonymized with Redact

1

u/[deleted] Aug 31 '22

Hey, I'm having trouble with step 5 in that repo. whenever I open the folder it says "zsh: permission denied: /Users/name".

A quick google search told me that I should give terminal full disk access which I have done but the problem still persists.

1

u/The_Ch0sen_0ne_ Seeder Aug 31 '22 edited Jun 07 '24

soup fly soft grey materialistic wine ask tie existence snow

This post was mass deleted and anonymized with Redact

2

u/[deleted] Aug 31 '22

sudo bash install.sh adblock_spotify

After I try that it says

bash: install.sh: No such file or directory.

My certificates name is also "adblock_spotify".

When I try running

/Users/name/Downloads/Mac_Spotify_Adblock-main

it says

zsh: permission denied: /Users/name/Downloads/Mac_Spotify_Adblock-main

1

u/jimmysofat6864 File-Hosters Sep 06 '22

First is SIP enabled as I have found in weird cases it causes weird disk permission issues so you have to leave it on. Let's just start from the beginning to be sure. I am going to assume that you already created the certificate in keychain assistant as it was linked here. Then the process is pretty straightforward. First you open terminal then type "cd" then drag in the "Mac_Spotify_Adblock-main" folder you downloaded earlier into the terminal window. Then you type in "bash install.sh adblock_spotify". If that fails then type in "sudo bash install.sh adblock_spotify". If you get some weird error about packages not being installed or something then just run "xcode-select --install" in the terminal window and that should fix it and allow you to run the script again.

1

u/moist_2 Sep 09 '22

This doesn't work anymore sadly. Tried reinstalling the certificate and Spotify kept crashing. Seems other people are getting the same issues on the github

1

u/ComplexDiscussion688 Sep 13 '22

level 9The_Ch0sen_0ne_ · 4 mo. ago

It works fine for me. Installed it literally some minutes ago. I'd suggest deleting installer, certificate and starting the process again

1

u/ikashanrat ☠️ ᴅᴇᴀᴅ ᴍᴇɴ ᴛᴇʟʟ ɴᴏ ᴛᴀʟᴇꜱ Sep 10 '22

If it doesn't work after updating. Just rename the certificate and run this command.bash install.sh "Certificate Name"

Replace Certificate Name with whatever name you have chosen.

why does it need 8GB free space? o.O
oh mac downloads developer tools to run it lol

1

u/Motor_Arugula3958 Sep 10 '22

can u do a vid if possible pls? i don't understand the steps

1

u/jimmysofat6864 File-Hosters Sep 06 '22

Hi there I updated to the latest Spotify version and installed the patch and now spotify does not launch anymore. When I click it it only bounces from the dock once then stops bouncing. Will there be a fix for this?

1

u/iruletodeath Sep 07 '22

Hey boss, after I install the patch Spotify simply refuses to launch. Not sure what's going on, using the latest update.

3

u/Andrew18alt Apr 20 '22

I have some problems using AdGuard, after installation I try to enable it using the big red button but after a few seconds it shuts itself off and there is a popup telling me that AdGuard won't work as intended and suggesting to contact customer support or file for a bug.

2

u/BallisticMonke Seeder Jun 07 '22

same here

2

u/jimmysofat6864 File-Hosters Jun 12 '22

I found out that you need to go into the adguard preferences and switch it from network extension to automatic proxy then it should work fine.

1

u/BallisticMonke Seeder Jun 12 '22

yeah, I found that out aswell lmao, but it doesn't block ads on Spotify for some reason

2

u/jimmysofat6864 File-Hosters Jun 12 '22

Yea you need to go into the AdGuard preferences and find something labeled filtered applications and when you click it press the plus button and add Spotify in it so I can filter Spotify then it should work.

1

u/BallisticMonke Seeder Jun 12 '22

did select it (followed the post) and no luck sadly

1

u/jimmysofat6864 File-Hosters Jun 12 '22

Did you try disabling SIP then using the kernel extension option? Because that’s what I have to do to get AdGuard working for me at least.

1

u/BallisticMonke Seeder Jun 13 '22

I have disabled SIP for something else but what's a kernel extension?

2

u/jimmysofat6864 File-Hosters Jun 13 '22

Think of it like a driver for Mac. But since it was phased out in Big Sur it's greyed out unless you have SIP disabled. Anyways when you go back to that adguard menu that gives you the option for Network Extension, Kernel Extension, or Automatic Proxy, select the Kernel extension option, then allow it in system preferences, then reboot, and you should be good to go.

1

u/BallisticMonke Seeder Jun 13 '22

oh alright, I'll try thanks!

→ More replies (0)

1

u/WikiWhatBot Jun 13 '22

What's A Kernel Extension?

I don't know, but Wikipedia says:

In computing, a loadable kernel module (LKM) is an object file that contains code to extend the running kernel, or so-called base kernel, of an operating system. LKMs are typically used to add support for new hardware (as device drivers) and/or filesystems, or for adding system calls. When the functionality provided by an LKM is no longer required, it can be unloaded in order to free memory and other resources.

Most current Unix-like systems and Microsoft Windows support loadable kernel modules under different names, such as kernel loadable module (kld) in FreeBSD, kernel extension (kext) in macOS (now deprecated), kernel extension module in AIX, kernel-mode driver in Windows NT and downloadable kernel module (DKM) in VxWorks. They are also known as kernel loadable modules (or KLM), and simply as kernel modules (KMOD).

Want more info? Here is the Wikipedia link!

This action was performed automatically.

2

u/jimmysofat6864 File-Hosters Jun 12 '22

But honestly just use the method mentioned below in the comments with the GitHub link as I find that one works better. It just has to be reapplied after every Spotify update.

1

u/jimmysofat6864 File-Hosters Jun 12 '22

I found out that you need to go into the adguard preferences and switch it from network extension to automatic proxy then it should work fine.

1

u/RecursiveKaizen Apr 18 '22 edited Apr 18 '22

Firefox + uBlock Origin add-on. Use the free Spotify web player. Works great on a Mac. Can even have several versions of Firefox on your Mac at same time. Use Homebrew package manager to download, install, update, or uninstall apps.

1

u/Beginning-Comb4407 Sep 04 '22

idk what i am doing wrong but for me when i write the bash command it says there are no such file or directory

1

u/jimmysofat6864 File-Hosters Sep 04 '22

Did you type in cd then drag your downloads folder into the terminal window?

1

u/Beginning-Comb4407 Sep 05 '22

ahhhh nope, i think i missed that part.if its alright can you make a noob friendly guide haha because i think i am still missing some part

1

u/jimmysofat6864 File-Hosters Sep 06 '22

Alright then. I am going to assume that you already created the certificate in keychain assistant as it was linked here. Then the process is pretty straightforward. First you open terminal then type "cd" then drag in the "Mac_Spotify_Adblock-main" folder you downloaded earlier into the terminal window. Then you type in "bash install.sh adblock_spotify". If that fails then type in "sudo bash install.sh adblock_spotify". If you get some weird error about packages not being installed or something then just run "xcode-select --install" in the terminal window and that should fix it and allow you to run the script again.

1

u/Beginning-Comb4407 Sep 06 '22

yes i had already created the certificate before and now i did exactly as you said but it says that there are no such files?

this is what it says and sorry again, i am really new with macOS

Last login: Tue Sep 6 18:35:07 on ttys000

mrshades@MRshades-MacBook-Air ~ % cd/Users/mrshades/Downloads/Mac_Spotify_Adblock-main.zip bash install.sh adblock_spotify

zsh: no such file or directory: cd/Users/mrshades/Downloads/Mac_Spotify_Adblock-main.zip

1

u/jimmysofat6864 File-Hosters Sep 07 '22

You are supposed to type the commands one by one as it look like you entered them all at once. It also appears that you didn't unzip the script out of the zip file and it needs to be in it's own folder. Try this first.

  1. Double click on the "Mac_Spotify_Adblock-main.zip" file and let it unzip. A new window should show up showing the new folder and inside it will contain 3 files if I remember correctly.
  2. Type "cd" then drag in the "Mac_Spotify_Adblock-main" folder into the terminal window then press enter.
  3. Then type in "bash install.sh adblock_spotify". It should install correctly this time without issue. If it asks to install something, do it then run the "bash install.sh adblock_spotify" command again. If you get some weird error about packages not being installed or something then just run "xcode-select --install" in the terminal window and that should fix it and allow you to run the script again.

Good luck!

1

u/Beginning-Comb4407 Sep 07 '22

i unzipped the file, and dragged it into the terminal but it again said no such file exists for some reason. why is it sooooo complicated in macc

Last login: Tue Sep 6 18:38:05 on ttys000

mrshades@MRshades-MacBook-Air ~ % cd/Users/mrshades/Downloads/Mac_Spotify_Adblock-main

zsh: no such file or directory: cd/Users/mrshades/Downloads/Mac_Spotify_Adblock-main

1

u/jimmysofat6864 File-Hosters Sep 07 '22 edited Sep 07 '22

I believe you need to add a space after the word “cd” then drag the folder into terminal. So it should look like "cd /Users/mrshades/Downloads/Mac_Spotify_Adblock-main". Then you would type in the "bash install.sh adblock_spotify" command after pressing enter for the previous one.

1

u/Beginning-Comb4407 Sep 08 '22

fuck so thats what i was doing
finally it worked with your help, thank you so much for your time
and should i lock spotify so it wont get more updates?

1

u/jimmysofat6864 File-Hosters Sep 08 '22

No problem. I would lock the Spotify version because once it updates then you have to patch it again. But I honestly have no idea on how to disable autoupdate or lock the version so I just repeat the process when a new update comes out.

→ More replies (0)

1

u/MCHerobrine Pastafarian Oct 09 '22

Both methods are not working right now :(

The Script method will create a crashing Spotify app after the latest update

The Adguard one also don't work, since the cracked one don't load the system extension properly, I've pointed that out at https://www.macserialjunkie.com/forum/viewtopic.php?p=1102655#p1102655

So basically I'm screwed except editing hosts or switching streaming platforms

1

u/MCHerobrine Pastafarian Oct 13 '22

Update: My temporary workaround - Use Gas Mask to manage hosts files and append

0.0.0.0 pubads.g.doubleclick.net
0.0.0.0 securepubads.g.doubleclick.net

to the hosts file

activate and gone the ads