w0lfschild / spotifyPlus

🎵 MacForge plugin to enhance the Spotify Desktop player on macOS
https://www.macenhance.com/mflink?macforge://github.com/w0lfschild/myRepo/raw/master/mytweaks/org.w0lf.spotiHack
42 stars 2 forks source link

Not injecting in 1.0.87.491.ge2a121fc and above #8

Closed sidpagariya closed 4 years ago

sidpagariya commented 6 years ago

The spotify+ menu doesn't seem to show up in version 1.0.87.491.ge2a121fc of Spotify now...

sidpagariya commented 6 years ago

It now works in 1.0.86.337.ga8d5cef9... Yes, I did downgrade for now, but @w0lfschild do you mind checking for 1.0.87.491.ge2a121fc? Thanks!

Machaan commented 6 years ago

I'm having the same issue as @sidpagariya on both of the two newest updates: 1.0.87.491.ge2a121fc and 1.0.88.353.g15c26ea1. It works great again on 1.0.86.337 though after downgrading just like sidpagariya stated. I can't seem to find the change logs.

w0lfschild commented 6 years ago
sidpagariya commented 6 years ago
Fofer commented 6 years ago

I'm on MacOS 10.13.6. Spotfiy+ was working for me fine, until Spotify updated to 1.0.87.491 just now, and now Spotify+ isn't working for me anymore.

I'm a paid Spotify user, but appreciate the Dock badging feature that Spotify+ had been granting me.

On Tue, Aug 21, 2018 at 11:41 AM Siddhant Nandkishor Pagariya < notifications@github.com> wrote:

  • I'm on macOS 10.14 (18A371a), Developer Beta 8
  • I do indeed have SIP off and I upgraded Spotify, after which it stopped working...

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/w0lfschild/spotifyPlus/issues/8#issuecomment-414779468, or mute the thread https://github.com/notifications/unsubscribe-auth/AAfqXTsZdFE0cYKR7vokOYfjgklFkM-vks5uTFQpgaJpZM4WF69U .

w0lfschild commented 6 years ago

Interesting it's working fine for me on the latest version 1.0.88.353.g15c26ea1 on macOS 10.14 (18A371a).

w0lfschild commented 6 years ago

What version of spotify+ are you all using? I realized I had version 0.6.0 on my personal mySIMBL repo but 0.6.3 is the most current version.

Machaan commented 6 years ago

I'm using 0.6.0-- I hadn't realized there was an update for it. I'll try it out right now and report back as soon as I can

Machaan commented 6 years ago

Yeah, it still isn't working for me after I updated to 0.6.3 via mySIMBL's update section and I updated Spotify to 1.0.88.353.g15c26ea1. Maybe I need to delete it and redownload spotifyPlus manually or restart my Macbook Pro for it to take effect?

Machaan commented 6 years ago

I was able to get it to work-- What I did was the following: I uninstalled/ deleted Spotify and make sure no application leftovers were still there. Then I removed spotifyPlus.bundle from mySIMBL and closed out of mySIMBL. Next, I downloaded the latest Spotify installer and installed Spotify. I quit Spotify, and then opened mySIMBL. From the Discover tab, I installed spotifyPlus, then reopened Spotify, and it worked! For some reason, whenever I would update from 0.6.0 to 0.6.3 within mySIMBL without first removing/deleting the 0.6.0 bundle, it wouldn't work in Spotify.

sidpagariya commented 6 years ago

Woah @w0lfschild weird that mySIMBL didn't show updates for the 0.6.3 package and even after reinstalling from scratch, it still installed 0.6.0 instead of 0.6.3...

Update: it finally shows up after multiple tries of opening and closing with the occasional refresh button hit

sidpagariya commented 6 years ago

@Shapsuo I'll give that a try now!

sidpagariya commented 6 years ago

Lol Spotify doesn't even show me a 1.0.88 version for updates haha, even after disabling blocks in /etc/hosts 😆

Machaan commented 6 years ago

@sidpagariya I uninstalled Spotify using AppDelete (making sure to not remove any files I still needed). I just downloaded the 1.0.88 .dmg file from the Spotify website and installed it from there.

sidpagariya commented 6 years ago

Thanks @Shapsuo I did try that once before the spotifyPlus stopped working but I'll try it again lol

Fofer commented 6 years ago

I uninstalled Spotify and SpotifyPlus completely. I downloaded and installed Spotify, and am now running 1.0.88.353.g15c26ea1. I then also installed SpotifyPlus 0.6.3. I rebooted my Mac and launched Spotify, logged in and customized my settings.

However, I'm still not seeing the SpotifyPlus menu or getting any of its features. I am a paid Spotify user, if that matters here. I am running the most current macOS official release, 10.13.6. Is there anything else I should be trying?

On Tue, Aug 21, 2018 at 8:43 PM Siddhant Nandkishor Pagariya < notifications@github.com> wrote:

Thanks @Shapsuo https://github.com/Shapsuo I did try that once before the spotifyPlus stopped working but I'll try it again lol

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/w0lfschild/spotifyPlus/issues/8#issuecomment-414900026, or mute the thread https://github.com/notifications/unsubscribe-auth/AAfqXakhZVPMNF4QfprwCPY2v6rS1Gbtks5uTNNHgaJpZM4WF69U .

sidpagariya commented 6 years ago

I did do the same things as @Shapsuo, and still no luck on 1.0.88.353.g15c26ea1 with multiple application and plugin uninstallations and reinstallations...

Machaan commented 6 years ago

Hey @sidpagariya @w0lfschild -- I restarted my computer and now it stopped working, and I can't seem to get it to work again. =/ Sorry... I thought I had a method that worked for some reason >.<

Machaan commented 6 years ago

I've spent quite a bit of time testing out different methods to see if I could get it to work again with 0.6.3 for 1.0.88.353.g15c26ea1, but to no avail :( mySIMBL version is 0.7.1, and this is my System Info tab:

1

Here is a screenshot of my Manage Tab with spotifyPlus showing:

screenshot 2018-08-23 13 11

I'm on High Sierra 10.13.6 (17G65).

Please let me know if you need any other information to help solve this. Thanks!

w0lfschild commented 6 years ago

@Machaan Looks like you have System Integrity Protection on in your photo.

Assuming you're on 10.14 (more injection security) maybe that's the issue?

Machaan commented 6 years ago

@w0lfschild Ahh thanks! I didn't notice that it turned back on. But that isn't it sadly...

screenshot 2018-08-23 17 58 51

I'm on 10.13.6 (17G65) -- High Sierra (Not Mojave). I tried doing a clean install of spotifyPlus after removing it, but that didn't make a difference with Spotify 1.0.88.353.g15c26ea1.

sidpagariya commented 6 years ago

I hope this is what we need to expect for the requirements of mySIMBL:

screen shot 2018-08-23 at 6 04 02 pm

I have been blocking updates for Spotify and downgraded to 1.0.80 using the DMG on Spotify's website... and spotifyPlus is temporarily working...

Fofer commented 6 years ago

How exactly do you block updates for Spotify?

On Thu, Aug 23, 2018 at 3:07 PM Siddhant Nandkishor Pagariya < notifications@github.com> wrote:

I hope this is what we need to expect for the requirements of mySIMBL: [image: screen shot 2018-08-23 at 6 04 02 pm] https://user-images.githubusercontent.com/10685754/44554449-0543c980-a6ff-11e8-8a65-6779f728be18.png

I have been blocking updates for Spotify and downgraded to 1.0.80 using the DMG on Spotify's website... and spotifyPlus is temporarily working...

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/w0lfschild/spotifyPlus/issues/8#issuecomment-415586428, or mute the thread https://github.com/notifications/unsubscribe-auth/AAfqXWGTPfWoPjR_sTolp6FQL7cSpwWPks5uTydngaJpZM4WF69U .

sidpagariya commented 6 years ago

I chmod the app so it can't be replaced even by the update mechanism...

w0lfschild commented 6 years ago

Interesting maybe you're in some A/B testing by spotify? Do other plugins load for you all?

Machaan commented 6 years ago

Nothing is working with the latest version of Spotify for me. Not even F-Script shows up in the menubar:

Latest Version:

latest

Older Version:

old
Machaan commented 6 years ago

@sidpagariya What were the exact chmod commands that you used? I used an old script I had saved from before I discovered @w0lfschild 's spotifyPlus/mySIMBL and denied a couple of connections with Little Snitch:

#This script prevents Spotify from Autoupdating on OS X (tested on Yosemite)
#This script must be run as root:
#sudo sh donotupdatespotify.sh
FILE="/tmp/out.$$"
if [ "$(id -u)" != "0" ]; then
echo "This script must be run as root"
echo "-------------------------------------------"
echo "This is what you should type into terminal:"
echo "sudo sh Page on donotupdatespotify.sh"
exit 1
fi

filepath1="/Users/$SUDO_USER/Library/Application
Support/Spotify/Spotify_new.archive"

filepath2="/Users/$SUDO_USER/Library/Application
Support/Spotify/Spotify_new.archive.sig"
-f "$filepath1" && rm -f "$filepath1"
-f "$filepath2" && rm -f "$filepath2"
touch "$filepath1"
touch "$filepath2"
chflags uchg "$filepath1" # Lock file in which the downloaded update
is stored, thus preventing an update
chflags uchg "$filepath2"
echo "---------------------------------------"
echo "| Spotify will no longer be updated |"
echo "---------------------------------------"

Was it the same thing as this: https://gist.github.com/aleksandrs-ledovskis/0b149b996c7a1ebc16126c60a79433ec ? Also, btw I noticed we are from the same state :)

sidpagariya commented 6 years ago

@Machaan basically that script but the update mechanism I thought was changed so I had to do stuff with locking (the chflags command with the uchg flag) the /Applications/Spotify.app/ and ~/Library/Application\ Support/Spotify/PersistentCache/Update/ and I locked the files inside it... The only annoying thing is that Spotify asks my password when I open it up lol, but it's all good haha

anonymouz4 commented 6 years ago

Doesn't work for me either on 10.13.6 and newest Spotify

anonymouz4 commented 6 years ago

Found a temporary fix: Download Version 1.0.86 DMG: from here for example

Block this Address (I prefer using Vallum): beta.spotify.map.fastly.net (151.101.120.246) - Port 443

Open the Downloaded DMG and replace the existing Spotify with the Dowloaded. It will still say new Verion available but won't be able to download

dbolger commented 5 years ago

Found a temporary fix: Download Version 1.0.86 DMG: from here for example

Block this Address (I prefer using Vallum): beta.spotify.map.fastly.net (151.101.120.246) - Port 443

Open the Downloaded DMG and replace the existing Spotify with the Dowloaded. It will still say new Verion available but won't be able to download

This does indeed work.

I'm going to assume methods have changed and they differ from what is currently being used in the header. Probably need to dump new headers so we know what to change.

Fofer commented 5 years ago

It’s worthwhile to read Spotify’s new terms of service:

Spotify will soon ban accounts that use ad blockers https://www.cultofmac.com/605788/spotify-ban-accounts-ad-blockers/

anonymouz4 commented 5 years ago

@Fofer Trust me, there is always a way to bypass things like this

w0lfschild commented 5 years ago

I can get this to load with both SIP and AMFI off using MacForge.

Screen Shot 2019-08-09 at 11 41 08 PM

macOS - 10.15 Spotify - 1.1.10.540.gfcf0430f

Problem is that if you're using this for the complete ad block, that was just altering the hosts file which no longer works.

If you like this tweak for the custom icon or the auto muting of ads that will still work.