-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UI empty square (bottom banner) #12
Comments
Not using this adblocker, but you could do it by modifying |
Dear @abba23 thanks for this information! Wrote a quick bash script which some may find useful (it requires permissions to change content in Spotify directory however it does not check that it has those permissions): #!/bin/bash
sPATH=$(dirname $(realpath -L $(which spotify))) # absolute path to Spotify
cd ${sPATH}/Apps/
cp xpui.spa ~/xpui.spa_bak # create a backup, in home folder, in case of trouble
unzip -p xpui.spa xpui.js | sed 's/{adsEnabled:\!0}/{adsEnabled:0}/' > xpui.js
zip --update xpui.spa xpui.js
rm xpui.js |
@NoNameForMee Currently the banner shows a 0 at the bottom left for me. I've changed the sed expression a bit |
Here's a script based on @NoNameForMee's script and @snbk97 change. It also include an option to restore and checks for permission. Edit: Added support for flatpak Edit 2: Fixed sed expression #!/bin/bash
if which spotify > /dev/null; then
sPATH=$(dirname $(realpath -L $(which spotify))) # absolute path to Spotify
elif flatpak list | grep --q com.spotify.Client; then
sPATH="$(flatpak --installations)/app/com.spotify.Client/current/active/files/extra/share/spotify"
else
echo "Spotify not found"
exit 0
fi
cd ${sPATH}/Apps/
if [ "$1" == 'restore' ]; then
if [ -w xpui.spa_bak ] && [ -w . ]; then
rm -f xpui.spa
mv xpui.spa_bak xpui.spa
echo "Restore success"
else
[ -f xpui.spa_bak ] && echo "Permission denied" || echo "Backup not found"
fi
exit 0
fi
if [ -w xpui.spa ] && [ -w . ]; then
cp xpui.spa xpui.spa_bak # create a backup, in case of trouble
unzip -p xpui.spa xpui.js | sed 's/adsEnabled:\!0/adsEnabled:false/' > xpui.js
zip --update xpui.spa xpui.js
rm xpui.js
echo "Success"
else
[ -f xpui.spa ] && echo "Permission denied" || echo "File not found"
fi Usage # to remove ad banner
sudo ./remove_spotify_banner.sh
# restore from backup, in case of trouble
sudo ./remove_spotify_banner.sh restore |
I still have the zero. I tried all the three sed commands by @NoNameForMee @snbk97 @Zzombiee2361 . Is it a problem on my end? |
@abinlatheef if you ran @NoNameForMee's script without @snbk97's change, your |
@Zzombiee2361 Thank you very much bro. It worked like a charm. |
I'm running Manjaro with spotify-adblock-git installed from the AUR and I don't have such a file, only a folder named In the file Just mentioning this because the previous scripts all consider the |
To automate this on Gentoo Linux, you can add a post_src_install() hook that patches the spa file. Create this file:
with this in it: post_src_install() {
elog "Patching xpui.spa to remove ad box."
cd "${ED}"/opt/spotify/spotify-client/Apps || die
unzip -p xpui.spa xpui.js | sed 's/adsEnabled:\!0}/adsEnabled:false}/' > xpui.js || die
zip --update xpui.spa xpui.js || die
rm xpui.js || die
} Now just reinstall spotify ( |
To automate this in Fedora 36+ with lpf package
|
Guys, is there an equally practical way to remove the Upgrade button? I tried this method, but it seems that the Could someone take a look at it? Thanks! |
@soonan5, try to use spicetify-cli, you can create custom css and hide anything. |
I've already used spicetify-cli, but I am not looking to make extreme changes to the interface, I just want to get rid of the |
It's much easier than you think, even without making drastic changes to the interface. Just follow the detailed installation instructions for your platform. Then edit
Also, if you don't like the new Experimental Features and Sidebar Config buttons, you can hide them by editing
After that make sure to apply changes: If you decide to do the latter, edit That would be all, this wonderful repository does the rest! Perhaps you can consider this as an alternative to the previously proposed script, although both work fine, it's more comfortable to work on a CSS base than on a harcoded one. |
does this still work |
There is no user.css file. can we add to xpui.css file instead |
it should |
Try to create it. You can also read Themes. |
Well, the new update that supposedly removed the banner actually made mine show up again. And the script doesn't work anymore to remove it. :/ |
There was no such update.
The scripts only modify your Spotify installation and are completely independent of this project. If a script you're using doesn't work, it's not because of (any changes to) spotify-adblock. The likely explanation is that you installed a Spotify update that changed something in its Javascript code, so the script would have to be modified. |
Also happening to me, I had just installed the Flatpak version and noticed the script wasn't working. - unzip -p xpui.spa xpui.js | sed 's/{adsEnabled:\!0}/{adsEnabled:false}/' > xpui.js
+ unzip -p xpui.spa xpui.js | sed 's/adsEnabled:\!0/adsEnabled:false/' > xpui.js |
worked for me now, thank you :3 |
here on artix on latest (at the moment) spotify update, the absolute path is over at /opt/spotify |
For users of the new look of Spotify. I edited my comment to fix #149 I guess that's it for now. If you find something equally annoying, you can let me know or try to fix it using |
Someone e-mailed us with the script with the new absolute file path
usage: save this to a sh file, make it executable and then run it with sudo. |
Anyway to remove the blackbox bar from the flatpak version of spotify |
I don't have anything there, only in /usr/share/spotify/Apps.
Did that and nothing changed. |
Did the banner removed or not? |
@semka95 Instructions is working pretty well. Thanks! |
Is there any way to remove this bottom empty banner?
The text was updated successfully, but these errors were encountered: