@coxackie, have you taken a look into the SpotX for Bash project? I know basically nothing about AUR packaging, but I wonder if we could somehow integrate the installation of this script into an updateable aur package that can update whenever a new version of the spotify
AUR package drops.
Search Criteria
Package Details: spotify-remove-ad-banner 5-1
Package Actions
Git Clone URL: | https://aur.archlinux.org/spotify-remove-ad-banner.git (read-only, click to copy) |
---|---|
Package Base: | spotify-remove-ad-banner |
Description: | Remove Spotify ad banner |
Upstream URL: | None |
Keywords: | spotify |
Licenses: | unknown |
Submitter: | coxackie |
Maintainer: | coxackie |
Last Packager: | coxackie |
Votes: | 5 |
Popularity: | 0.000036 |
First Submitted: | 2022-01-10 18:06 (UTC) |
Last Updated: | 2023-04-05 22:17 (UTC) |
Dependencies (4)
- sed (busybox-coreutilsAUR, sed-gitAUR)
- spotifyAUR (spotify-snapstoreAUR, spotify-1.1AUR, spotify-edgeAUR, spotify-devAUR)
- unzip (unzip-natspecAUR, unzip-zstdAUR)
- zip (zip-natspecAUR)
Required by (0)
Sources (3)
Sanras commented on 2023-06-13 01:26 (UTC)
Sanras commented on 2023-05-03 15:08 (UTC)
Anyone figure out how to remove the upgrade button on 1.2.9.743-1 yet?
It seems the code has changed significantly, and even though I can find references to lines such as shouldShowUpgradeButton:i
, I'm not sure how to remove it.
It seems like the ad banner is still easy pickings, a simple adsEnabled
!0
to adsEnabled
!1
swap.
HydeFromT70s commented on 2022-10-11 00:22 (UTC) (edited on 2022-10-11 00:22 (UTC) by HydeFromT70s)
@coxackie, thanks for creating AUR package, very helpful, finally nothing covers playlists!
@Sanras, thanks for the tip how to remove "upgrade button".
For those who want to, but don't know how to remove "upgrade button", just peek at "remove.sh" file and you will find out, that you can unzip xpui.js from xpui.spa, manually remove i().createElement($w,{spec:w,onClick:C,className:zN.Z.UpgradeButton}),
and insert modified file back into xpui.spa :)
Sanras commented on 2022-06-10 18:03 (UTC)
@coxackie, on the latest version of Spotify for Linux (1.1.84.716-2), the Upgrade button can be removed by deleting this line in xpui.js - i().createElement($w,{spec:w,onClick:C,className:zN.Z.UpgradeButton}),
coxackie commented on 2022-05-16 10:21 (UTC) (edited on 2022-10-12 19:28 (UTC) by coxackie)
@kr0wx1 unfortunately, with every update of the spotify package the way to remove the upgrade button is changed in the xpui.js
file. I cannot put the effort to chase it down every time. I will just remove this broken functionality - realistically speaking, the ad banner is much more annoying than the upgrade button.
kr0wx1 commented on 2022-05-15 22:06 (UTC)
Hey friend! thanks for making this AUR package... but it just removes the empty ad placeholder and it won't remove the upgrade button! I mean the script for removing empty ad banner is just easy and understandable I did it myself before but this package wont remove the upgrade button but you said it does! can you pls tell me how? :(
coxackie commented on 2022-01-11 11:38 (UTC) (edited on 2022-01-11 18:06 (UTC) by coxackie)
@Sanras please check the new version - I think it works in removing the "Upgrade" button as well. Just to ensure you check properly: please install this after a clean installation of spotify, i.e., xpui.spa
should not have been altered by you before.
Sanras commented on 2022-01-10 18:51 (UTC)
Sure. I need to check again and see what I changed, so I'll post a comment when I find it.
coxackie commented on 2022-01-10 18:45 (UTC)
@Sanras can you tell me simply (but exactly) what you manually change at xpui.js to get the upgrade button to disappear? I may be able to add this change to sed. But, as I said I have just shamelessly copied the scripts from a comment at the spotify-adblock github issues.
Sanras commented on 2022-01-10 18:32 (UTC)
Awesome! I was thinking of making something similar, but I haven't learned how to use sed yet...
Would you be willing to integrate another patch into the script?
BlockTheSpot can also remove the upgrade button, which would be nice to have automated. Right now, I just manually patch the ad banner and upgrade button myself with a text editor.
You can see what needs to be changed here in BTS's script: https://raw.githubusercontent.com/mrpond/BlockTheSpot/master/install.ps1
Pinned Comments
coxackie commented on 2022-01-10 18:11 (UTC) (edited on 2022-10-04 07:08 (UTC) by coxackie)
This is a simple stripped-down version of a script that appears in the github page of
spotify-adblock
in order to remove the annoying ad banner in Spotify. This is only a (hopefully, welcome) visual change and does not remove the ads themselves - for this, you have to additionally use thespotify-adblock(-git)
package.