Jump to content
alan_fox

[Guide] Block Spotify Ads for 1.5+ Plus UI Improvements

Recommended Posts

sebelas

Work 100 % using Method 1

Share this post


Link to post
Share on other sites
hvq

It works. Thanks. I used Method #1.

Share this post


Link to post
Share on other sites
ChougaNYT
On 5/20/2019 at 6:36 AM, alan_fox said:

Screenshots

 

  Reveal hidden contents

qO3KA0h.png

 

 

YMwM32L.png

 

Block ads

 

Method 1

1. Download

Site: https://www.upload.ee

Sharecode: /files/9987971/Spotify1.5_.7z.html

 

2. Place netutils.dll & Injector.exe & Inject.vbs into Spotify directory:

e.g. C:\Users\YOUR USER NAME\AppData\Roaming\Spotify

 

3. Open Task Scheduler -> Import Task -> BlockTheSpot.xml

 

Source

https://gist.github.com/alanfox2000/1205b800461fb8563cc6b00a6025f4d2

https://gist.github.com/alanfox2000/9193b9b6bac95ca4beaa59b053c1f020

https://github.com/master131/BlockTheSpot

https://github.com/nefarius/Injector

 

Method 2:

1. Download

https://github.com/mrpond/BlockTheSpot/raw/master/chrome_elf.dll

 

2.  Replace the original chrome_elf.dll in Spotify directory

 

 

Method 3:

Create a adblock Javascripts by yourself (spicetify-cli Extensions)

 

UI Improvments

 

Follow the Guide:

https://github.com/khanhas/spicetify-cli

 

 

 

Method 1 works flawless!

Share this post


Link to post
Share on other sites
alan_fox
Posted (edited)

If you hex edit the Spotify.exe, it will show this

LU9ndyk.jpg

 

There are a mod apk for android you can select "Extreme Quality" even you are not premium

this old trick don't work anymore for PC

C:\Users\XXXXX\AppData\Roaming\Spotify\Users\XXXXXXX-user\prefs

audio.play_bitrate_enumeration=4
audio.sync_bitrate_enumeration=4

 

Sometimes Method 1 will still show ads if Injector.exe launch slowy -> ads gone if you select another page (refresh)

 

Edited by alan_fox

Share this post


Link to post
Share on other sites
DmitriyZ

Method 2 is not working with Spotify v.1.1.8.xxx (as of June 11) - it stops running after replacing the dll
Method 1 works fine

Share this post


Link to post
Share on other sites
alan_fox
Posted (edited)

 

 

There are hidden premium option on prefs file on Users folder

ui.hide_hpto

ui.hide_promoted_songs

Hide Ads & promoted songs & enable Very High Quality by editing collection.js & settings.js ?

%appdata%\Spotify\Apps\collection\collection.js

%appdata%\Spotify\Apps\settings\settings.js

 

Original collection.js & settings.js

https://www.upload.ee/files/10155597/scripts.rar.html

 

Spoiler

Premium Settings - Hide ads

    2685: function(e, t, a) {
        "use strict";
        const n = a(1218),
            i = a(88).default,
            o = a(141),
            r = a(517),
            s = a(2),
            l = a(7),
            u = a(4).logError,
            c = a(2686);
        let p;

        function d(e) {
            const t = l("#advertisement");
            e ? t.addClass("hidden") : t.removeClass("hidden")
        }
        t.model = a(2687), t.init = function(e) {
            p || (p = new o("*"));
            const a = l("#display"),
                n = t.model,
                m = r(c(n.serialize()));
            a.appendChild(m), d(n.serialize().enabled), l("#changeAdSettings").on("click", function() {
                window.parent.postMessage({
                    type: i.NAVIGATION_SHOW_AD_SETTINGS
                }, "*")
            }), s("spotify:client").get("session", function(e, t) {
                e && u(e), n.update({
                    enabled: "premium" === t.get("product")
                }), t.on("update", function(e) {
                    "product" in e && n.update({
                        enabled: "premium" === e.product
                    })
                })
            }), n.on("publish", function(e) {
                const t = n.get("enabled");
                let a = e.show;
                t || (a = !0), void 0 !== a && (n.update({
                    show: a
                }), p.set("ui.hide_hpto", !a, function(e) {
                    e && u(e.stack || e)
                }))
            }), n.on("update", function(e) {
                "enabled" in e && d(e.enabled)
            }), e()
        }, t.sync = function(e) {
            const a = t.model;
            p || (p = new o("*")), a.update({
                enabled: n.get("premium")
            }), p.all(function(t, n) {
                t ? e(t) : (a.update({
                    show: !n["ui.hide_hpto"]
                }), e())
            })
        }
    },

 

Premium Settings -  Hide Promoted Songs

 

        setAdOptOut: function(e) {
            (0, s.spFetch)("https://spclient.wg.spotify.com/adoptoutmanager/psb/v1/optout", {
                method: "POST",
                headers: new Headers,
                body: JSON.stringify({
                    markOptOut: e,
                    source: "AD_DEBUG"
                })
            }).then(e => {
                f("Set Ad Opt Out Response, response=%o", e), (0, p.logInfo)("Set Ad Opt Out Response", e)
            }).catch(e => {
                f("Set Ad Opt Out Error, error=%o", e)
            }).then(() => {
                new d.default("*").set("ui.hide_promoted_songs", e, function(e) {
                    e && f("Local Prefs Error, err=o%", e)
                })
            })
        },

Premium Settings - Very High Quality

 

                            if ("premium" !== e.type && "veryhigh" === t) {
                                const e = new n.default("*");
                                return e.get("audio.play_bitrate_enumeration", (e, a) => {
                                    if (e) throw e;
                                    b(t = Object.keys(m)[a]).then(() => {
                                        u.default.update({
                                                streamingQuality: t
                                            }),
                                            function() {
                                                const e = document.querySelector("#streaming-quality");
                                                for (; e.lastChild;) e.removeChild(e.lastChild);
                                                e.appendChild((0, o.default)((0, l.default)(u.default.serialize())))
                                            }(),
                                            function(e) {
                                                new Promise((t, a) => {
                                                    i.default.resolver.post({
                                                        url: "sp://messages/v1/container/user-message",
                                                        body: {
                                                            id: e
                                                        }
                                                    }, e => {
                                                        e ? a(e) : t()
                                                    })
                                                })
                                            }("cant-set-high-quality-streaming")
                                    })
                                })
                            }

 

 


 

Edited by alan_fox

Share this post


Link to post
Share on other sites
beatz
Posted (edited)

@alan_fox Could you please provide me the (I assume) user.css you're using on the screenshots you've uploaded? I wanted that new design with the original Spotify colors. I'm terrible with html and everything related :P

 

Thank you in advance.

Edited by beatz

Share this post


Link to post
Share on other sites
Matt

@beatz you aren't allowed to have more than one account in here, so I deleted the other account. Read the guideline in here to know how to participate on our forums.

Share this post


Link to post
Share on other sites
theredhood
Posted (edited)

Using Method 1 as well, working so far.

The spicetify-cli seems to have a problem with the windows installer though on their end, anyone else have problems installing?

 

Edited: Figured it out, the powershell installer seems broken so I just downloaded the latest version on the releases page and ran it. https://imgur.com/qbXtThj

 

Edited by theredhood
Working now.

Share this post


Link to post
Share on other sites
DmitriyZ

The right link for the dll from the second method is:

https://github.com/mrpond/BlockTheSpot/blob/master/chrome_elf.zip

Also, has anyone noticed that recently the dislike button dissappeared from Spotify? I wonder if someone knows a workaround how to bring it back to keep learning Spotify about my music preferences. The version I use is 1.1.17.543.geb9254e9.

Share this post


Link to post
Share on other sites
sebelas
On 10/20/2019 at 5:08 AM, DmitriyZ said:

The right link for the dll from the second method is:

https://github.com/mrpond/BlockTheSpot/blob/master/chrome_elf.zip

Also, has anyone noticed that recently the dislike button dissappeared from Spotify? I wonder if someone knows a workaround how to bring it back to keep learning Spotify about my music preferences. The version I use is 1.1.17.543.geb9254e9.

 

Hello still working now?

Edited by sebelas

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   1 member

    • unless
×
×
  • Create New...