From d74ba05b3a3055b6173a49cc6232de38d12774df Mon Sep 17 00:00:00 2001 From: "Daksh P. Jain" Date: Thu, 7 Oct 2021 09:00:57 +0530 Subject: [PATCH 1/2] Update user.css --- user.css | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/user.css b/user.css index 368c0ce..cef55aa 100644 --- a/user.css +++ b/user.css @@ -1068,4 +1068,16 @@ html.right-expanded-cover.buddyfeed-visible .main-coverSlotExpanded-container { .main-actionBar-ActionBarRow button:not(.main-playButton-primary) { color: var(--spice-subtext); -} \ No newline at end of file +} +/* Remove upgrade button*/ +.main-topBar-UpgradeButton { + display: none +} +/* Remove upgrade to premium button in user menu */ +.main-contextMenu-menuItemButton[href="https://www.spotify.com/premium/"] { + display: none +} +/* Remove ad placeholder in main screen */ +.main-leaderboardComponent-container { + display: none +} From 4ee54158a9cd91fea3747abc022ae2ff9a32fca2 Mon Sep 17 00:00:00 2001 From: Send_Nukez Date: Sat, 9 Oct 2021 08:45:47 +0200 Subject: [PATCH 2/2] change ads to be toggleable --- dribbblish.js | 32 ++++++++++++++++++++++++++++++++ user.css | 17 +---------------- 2 files changed, 33 insertions(+), 16 deletions(-) diff --git a/dribbblish.js b/dribbblish.js index 631d465..c658dfa 100644 --- a/dribbblish.js +++ b/dribbblish.js @@ -258,6 +258,38 @@ DribbblishShared.config.register({ } }); +DribbblishShared.config.register({ + area: "Ads", + type: "checkbox", + key: "hideAds", + name: "Hide Ads", + description: `Hide ads / premium features (see: SpotifyNoPremium)`, + defaultValue: false, + onAppended: () => { + document.styleSheets[0].insertRule(/* css */ ` + /* Remove upgrade button*/ + body[hide-ads] .main-topBar-UpgradeButton { + display: none + } + `); + document.styleSheets[0].insertRule(/* css */ ` + /* Remove upgrade to premium button in user menu */ + body[hide-ads] .main-contextMenu-menuItemButton[href="https://www.spotify.com/premium/"] { + display: none + } + `); + document.styleSheets[0].insertRule(/* css */ ` + /* Remove ad placeholder in main screen */ + body[hide-ads] .main-leaderboardComponent-container { + display: none + } + `); + }, + onChange: (val) => { + document.body.setAttribute("hide-ads", val ? "" : null); + } +}); + waitForElement(["#main"], () => { DribbblishShared.config.register({ type: "select", diff --git a/user.css b/user.css index d166bb6..eff5f40 100644 --- a/user.css +++ b/user.css @@ -1221,19 +1221,4 @@ html.right-expanded-cover.buddyfeed-visible .main-coverSlotExpanded-container { .main-actionBar-ActionBarRow button:not(.main-playButton-primary) { color: var(--spice-subtext); -} - -/* Remove upgrade button*/ -.main-topBar-UpgradeButton { - display: none; -} - -/* Remove upgrade to premium button in user menu */ -.main-contextMenu-menuItemButton[href="https://www.spotify.com/premium/"] { - display: none; -} - -/* Remove ad placeholder in main screen */ -.main-leaderboardComponent-container { - display: none; -} +} \ No newline at end of file