BlockTheSpot icon indicating copy to clipboard operation
BlockTheSpot copied to clipboard

ads in New UI | Black Ad placeholder.

Open amd64fox opened this issue 5 years ago • 72 comments

I still see an empty ad block, am I the only one?

Screenshots

Бsdsadsaез имени Без им2321ени

UPD. Also fixed here SPOTX

amd64fox avatar Apr 21 '21 14:04 amd64fox

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

ronny941 avatar Apr 21 '21 22:04 ronny941

I have a workaround that works for now.

  1. Navigate to %APPDATA%/Spotify/Apps. Here you will find xpui.spa, make a copy of this file so that you have a backup.
  2. Rename xpui.spa to xpui.zip and open the zip. Within the zip, there will be xpui.css, extract this file.
  3. Open the extracted file with a text editor and search for .b2731cdeb97c1f6a4cf5caa44e943acb-scss. This is the css selector of the ad banner div.
  4. For this selector, change the display:flex to display:none, save the file, drop it back in the zip to replace the original xpui.css.
  5. 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.

ryzenblue avatar Apr 25 '21 19:04 ryzenblue

I have a workaround that works for now.

it worked for me, thank you so much)

amd64fox avatar Apr 25 '21 20:04 amd64fox

this fix will it be added to blockthespot? thank you in advance

ronny941 avatar Apr 25 '21 21:04 ronny941

@ronny941 if those files are not changed everytime after a new update, it will be added.

Nuzair46 avatar Apr 27 '21 06:04 Nuzair46

@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

ronny941 avatar Apr 30 '21 10:04 ronny941

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

amd64fox avatar Apr 30 '21 10:04 amd64fox

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

ronny941 avatar Apr 30 '21 11:04 ronny941

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.

amd64fox avatar May 01 '21 08:05 amd64fox

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.

I can understand it because the files change with every spotify update and therefore it is impossible to always add these changes to blockthespot

ronny941 avatar May 01 '21 10:05 ronny941

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 :)

Kibakus avatar May 01 '21 13:05 Kibakus

Use Block_BannerOnly = 0 if you use 1 you will see ad banner placeholder because patch is not being applied.

Sruko avatar May 01 '21 18:05 Sruko

@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.

Nuzair46 avatar May 01 '21 20:05 Nuzair46

@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.

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 avatar May 01 '21 21:05 Sruko

@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.

Nuzair46 avatar May 01 '21 21:05 Nuzair46

@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

Sruko avatar May 01 '21 21:05 Sruko

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.

Can you telll which is the line in this file to remove the upgrade button? Thanks in advance

RichardLeblanc avatar May 03 '21 07:05 RichardLeblanc

@RichardLeblanc need to find and delete this createElement(pu,{onClick:C,className:gu.Z.UpgradeButton}),i().

amd64fox avatar May 03 '21 11:05 amd64fox

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.

Sruko avatar May 03 '21 15:05 Sruko

The leaderboard can also be removed with this as alternative in xpui.js adsEnabled:!0 to adsEnabled:!1

Sruko avatar May 03 '21 18:05 Sruko