ads in New UI | Black Ad placeholder.
yes it is true there is the bar where the ads of spotify should appear but although there is it is blocked thanks to blockthespot and the songs work I hope you can remove it completely but everything works and nothing has appeared
I have a workaround that works for now.
- Navigate to
%APPDATA%/Spotify/Apps. Here you will find xpui.spa, make a copy of this file so that you have a backup. - Rename xpui.spa to xpui.zip and open the zip. Within the zip, there will be xpui.css, extract this file.
- Open the extracted file with a text editor and search for
.b2731cdeb97c1f6a4cf5caa44e943acb-scss. This is the css selector of the ad banner div. - For this selector, change the
display:flextodisplay:none, save the file, drop it back in the zip to replace the original xpui.css. - Change the extension from xpui.zip to xpui.spa
The div selector did not change even after I reinstalled, so I'm guessing it should be the same for everybody.
I have a workaround that works for now.
it worked for me, thank you so much)
this fix will it be added to blockthespot? thank you in advance
@ronny941 if those files are not changed everytime after a new update, it will be added.
@ronny941 if those files are not changed everytime after a new update, it will be added.
the new update of spotify is now out but I can't tell you if the fix works completely you wait the user who gave you this fix
the new update of spotify is now out but I can't tell you if the fix works completely you wait the user who gave you this fix
files change, so this method is unlikely to be added to BTS
the new update of spotify is now out but I can't tell you if the fix works completely you wait the user who gave you this fix
files change, so this method is unlikely to be added to BTS
ok I understand so you have to edit that file every time because with every update of spotify the files change because it puts its originals back just like when blockthespot has to be reapplied for the same reason
Maybe it will help yet, in the xpui.js file you need to find this e=>e.ads.leaderboard. and replace Enabled with Disabled, after which the empty block disappears. Also in this file, I was able to find a line to remove the "Upgrade" button, but as I understand it, the problem above persists and this method cannot be added to BTS.
Maybe it will help yet, in the
xpui.jsfile you need to find thise=>e.ads.leaderboard.and replaceEnabledwithDisabled, after which the empty block disappears. Also in this file, I was able to find a line to remove the"Upgrade"button, but as I understand it, the problem above persists and this method cannot be added to BTS.
I can understand it because the files change with every spotify update and therefore it is impossible to always add these changes to blockthespot
Hello everyone, maybe my script on Python will help someone. He removes the button and "Empty AD Block" (Alpha UI). Not advertising
EXE - file start even if you don't have python :) PY - file requires Python and need only for viewing code.
I would like the author to embed it or make his own workaround :)
Use Block_BannerOnly = 0 if you use 1 you will see ad banner placeholder because patch is not being applied.
@Kibakus good job on the python script.
But I don't think it will be added to BTS. Because, BTS already blocks the Black AD Block element. Its just only the New Alpha UI That has the bug. Which will be fixed eventually.
@Sruko Block_BannerOnly is only for Spotify Premium Users.
@Kibakus good job on the python script. But I don't think it will be added to BTS. Because, BTS already blocks the
Black AD Block element. Its just only the New Alpha UI That has the bug. Which will be fixed eventually.@Sruko
Block_BannerOnlyis only for Spotify Premium Users.
That doesn't matter at all, if you enable it the banner code is not run even if you are not premium. You need to disable it or you will continue to see ads.
See blockthespot_log.txt
GetModuleInformation OK!
main process#1 - patch failed! < old spotify, will always fail on new version
main process#2 - patch success! < new spotify
Mhook_SetHook - getaddrinfo success!
@Sruko BTS normally removes the banner for free users without editing the config. I think in the new UI banner is not being blocked correctly.
@Sruko BTS normally removes the banner for free users without editing the config. I think in the new UI banner is not being blocked correctly.
You can easily test it yourself, if the code as is isn't already clear. If the option is enabled the process will not get patched with the banner removal, and thus you will continue to see it + ads. The current version of BTS already works on new Spotify.
For example you can see that this person had it enabled and saw ads too. https://github.com/mrpond/BlockTheSpot/issues/152#issuecomment-824850355
Maybe it will help yet, in the
xpui.jsfile you need to find thise=>e.ads.leaderboard.and replaceEnabledwithDisabled, after which the empty block disappears. Also in this file, I was able to find a line to remove the"Upgrade"button, but as I understand it, the problem above persists and this method cannot be added to BTS.
Can you telll which is the line in this file to remove the upgrade button? Thanks in advance
@RichardLeblanc
need to find and delete this createElement(pu,{onClick:C,className:gu.Z.UpgradeButton}),i().
Ok my bad, seems there was some inconsistency on my side in terms of Spotify rollout, now the banner actually shows but ads are blocked, the current workaround editing xpui to hide it and patching Spotify directly ("00 83 C4 08 84 C0 0F 84 E5" to "00 83 C4 08 84 E4 0F 84 E5") or via hook to block ads work.
The leaderboard can also be removed with this as alternative in xpui.js
adsEnabled:!0 to adsEnabled:!1
