Jump to content

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


alan_fox

Recommended Posts

Screenshots

 

Spoiler

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.  Rename the original chrome_elf.dll to chrome_elf_.dll

 

3.  Place the downloaded chrome_elf.dll into Spotify directory

 

 

Method 3:

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

 

UI Improvments

 

Follow the Guide:

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

 

 

Link to comment
Share on other sites


  • Replies 11
  • Views 11.8k
  • Created
  • Last Reply
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!

Link to comment
Share on other sites


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)

 

Link to comment
Share on other sites


  • 2 weeks later...

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

Link to comment
Share on other sites


  • 3 weeks later...

 

 

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")
                                    })
                                })
                            }

 

 


 

Link to comment
Share on other sites


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

Link to comment
Share on other sites


  • Administrator

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

Link to comment
Share on other sites


theredhood

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

 

Link to comment
Share on other sites


  • 3 months later...

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.

Link to comment
Share on other sites


  • 3 weeks later...
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?

Link to comment
Share on other sites


Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...