From 37967c67a60a68aa6b993a05dcff5997a0eaa65d Mon Sep 17 00:00:00 2001 From: Matthew Salcido Date: Wed, 31 Jan 2024 19:09:25 -0800 Subject: [PATCH 1/9] Update compact-artist.scss --- css/compact-artist.scss | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/css/compact-artist.scss b/css/compact-artist.scss index c1e0dcdc..083f40bc 100644 --- a/css/compact-artist.scss +++ b/css/compact-artist.scss @@ -76,6 +76,7 @@ table[class*="releases_"] { } } +table[class*="releases_"], table[class*="labelReleasesTable_"] { tr[class*="textWithCoversRow_"] { grid-template-columns: 72px 2fr 1fr 1fr .7fr .3fr .5fr .5fr; @@ -90,7 +91,7 @@ table[class*="labelReleasesTable_"] { } } - +table[class*="releases_"], div[class*="releasesGrid_"] { tr[class*="textWithCoversRow_"] { grid-template-columns: 70px 2fr 1fr 1fr .7fr .3fr .5fr .5fr !important; From 880aa7c7320edd3c08fa2a3ac87407ad61e1f27e Mon Sep 17 00:00:00 2001 From: Matthew Salcido Date: Wed, 31 Jan 2024 19:09:30 -0800 Subject: [PATCH 2/9] Update dark-theme.scss --- css/dark-theme.scss | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/css/dark-theme.scss b/css/dark-theme.scss index 478e1ec2..3b8ba979 100644 --- a/css/dark-theme.scss +++ b/css/dark-theme.scss @@ -5136,7 +5136,7 @@ } // for sale count - span[class*="forsale_"] span[class*="price_"] { + span[class*="forSale_"] span[class*="price_"] { color: var(--price) !important; } @@ -5669,7 +5669,14 @@ div[class*="filterBarContainerDesktop_"] { + // Filters hidden div[class*="filterButtonContainerWhite_"] { + button { + border: 1px solid var(--headers) !important; + } + } + // Filters visible + div[class*="filterButtonContainer_"] { button { background: var(--headers) !important; } @@ -5910,6 +5917,7 @@ div.rnf-unseen-badge { background: var(--skittle-wantlist) !important; + outline: 2px solid var(--site-header-bg) !important; span.rnf-unseen-badge__count { color: var(--white) !important; From a25d1851999555806d993554f7b5281a6b86bb5d Mon Sep 17 00:00:00 2001 From: Matthew Salcido Date: Wed, 31 Jan 2024 19:09:33 -0800 Subject: [PATCH 3/9] Update new-release-page-fixes.scss --- css/new-release-page-fixes.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/css/new-release-page-fixes.scss b/css/new-release-page-fixes.scss index d46519e7..4e9d930a 100644 --- a/css/new-release-page-fixes.scss +++ b/css/new-release-page-fixes.scss @@ -2,7 +2,7 @@ // reduce large padding on Release Header table #page div[class*="info_"] table[class*="table_"] tr th, #page div[class*="info_"] table[class*="table_"] tr td { - padding-bottom: 3px !important; + padding-bottom: 0px !important; } // decrease the height of the add to collection / wantlist buttons From bc6f2f51530dbc84dadda04f4879326774bd1444 Mon Sep 17 00:00:00 2001 From: Matthew Salcido Date: Wed, 31 Jan 2024 19:10:42 -0800 Subject: [PATCH 4/9] Update learn.html --- html/learn.html | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/html/learn.html b/html/learn.html index e875a028..bd913da9 100644 --- a/html/learn.html +++ b/html/learn.html @@ -202,8 +202,8 @@

Collection Box Fix

-

Compact Artist Pages

-

Reduces the overall white space around the release images and the filter side bar on Artist pages. You can toggle this feature on/off and see the effects without having to refresh the page.

+

Compact Artist & Label Pages

+

Reduces the overall white space around the release images and the filter side bar on Artist and Label pages. You can toggle this feature on/off and see the effects without having to refresh the page.

Default Layout
@@ -450,12 +450,6 @@

Filter Unavailable Items

- -
-

Dashboard Link

-

Clicking the Discogs logo in the header will take you to your Dashboard when this is enabled. When this feature is enabled the Dashboard icon in the nav will be hidden.

-
-

Full Width Pages

@@ -596,6 +590,12 @@

Wantlist

An item link or thumbnail.

+ +
+

Original Dashboard Link

+

Clicking the Discogs logo in the header will take you to your Dashboard when this is enabled. When this feature is enabled the Dashboard icon in the nav will be hidden.

+
+
From 21fac6ea85d8d0e601765a9c0af7645ab9f0472b Mon Sep 17 00:00:00 2001 From: Matthew Salcido Date: Wed, 31 Jan 2024 19:10:59 -0800 Subject: [PATCH 5/9] Rename Dashboard Link to Original Dashboard Link --- html/popup.html | 48 ++++++++++++++++++++++++------------------------ 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/html/popup.html b/html/popup.html index 1ad42ba8..d869c34e 100644 --- a/html/popup.html +++ b/html/popup.html @@ -256,30 +256,6 @@

👋 Heads up!

- -
-

Dashboard Link

-
Old Dashboard Link header logo homepage
- -
- - -
- -
- -
-
- Clicking the Discogs logo in the header will take you to your Dashboard when this is enabled. Note this will hide the Dashboard icon in the nav bar. -
-
-
-
-
-

Demand Index

@@ -940,6 +916,30 @@

👋 Heads up!

+ +
+

Original Dashboard Link

+
Old Dashboard Link header logo homepage
+ +
+ + +
+ +
+ +
+
+ Clicking the Discogs logo in the header will take you to your Dashboard when this is enabled. Note this will hide the Dashboard icon in the nav bar. +
+
+
+
+
+

Quick Search

From 45ed9f05662dcde64abc872be463ef6c7c75bdd1 Mon Sep 17 00:00:00 2001 From: Matthew Salcido Date: Wed, 31 Jan 2024 19:12:37 -0800 Subject: [PATCH 6/9] Update to work with artist and label pages --- ...artist.js => release-scanner-artist-label.js} | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) rename js/extension/features/{release-scanner-artist.js => release-scanner-artist-label.js} (95%) diff --git a/js/extension/features/release-scanner-artist.js b/js/extension/features/release-scanner-artist-label.js similarity index 95% rename from js/extension/features/release-scanner-artist.js rename to js/extension/features/release-scanner-artist-label.js index 0d83e3a4..2acf67c2 100644 --- a/js/extension/features/release-scanner-artist.js +++ b/js/extension/features/release-scanner-artist-label.js @@ -177,7 +177,7 @@ */ function openInNewTabs() { - let anchors = document.querySelectorAll('table[class*="releases_"] tr a'); + let anchors = document.querySelectorAll('table[class*="labelReleasesTable_"] tr a'); anchors.forEach(a => { a.setAttribute('target', '_blank'); @@ -253,7 +253,7 @@ document.querySelector('.reset-scanner-wrap').classList.add('hide'); document.querySelectorAll('.de-scan-badge-wrap').forEach(badge => badge.remove()); - skittles = document.querySelectorAll('td[class*="skittles_"]'); + skittles = document.querySelectorAll('tr[class*="text"] td[class*="skittles_"]'); } // ======================================================== @@ -401,14 +401,14 @@ // ======================================================== if ( rl.pageIs('history') ) return; - if ( rl.pageIs('artist') ) { + if ( rl.pageIs('artist') || rl.pageIs('label') ) { - let artistButtonsDiv = 'div[class*="artistButtons_"]'; + let buttonDiv = 'div[class*="buttons_"]'; - if ( document.querySelector(artistButtonsDiv) ) { + if ( document.querySelector(buttonDiv) ) { // 'td[class*="skittles_"]' needs to exist before the skittles var can have a value - rl.waitForElement('td[class*="skittles_"]').then(() => { + rl.waitForElement('tr[class*="text"] td[class*="skittles_"]').then(() => { let scanText = 'Scan Releases', resetText = 'Reset Scanner', @@ -417,11 +417,11 @@
`; - skittles = document.querySelectorAll('td[class*="skittles_"]'); + skittles = document.querySelectorAll('tr[class*="text"] td[class*="skittles_"]'); rl.attachCss('scan-badges', rules); - document.querySelector(artistButtonsDiv).insertAdjacentHTML('beforeend', buttonMarkup); + document.querySelector(buttonDiv).insertAdjacentHTML('afterend', buttonMarkup); // Event Listeners // ------------------------------------------------------ From 82d682e99ef73f0408c3ade1011ebf33b198ee41 Mon Sep 17 00:00:00 2001 From: Matthew Salcido Date: Wed, 31 Jan 2024 19:12:42 -0800 Subject: [PATCH 7/9] Update user-preferences.js --- js/extension/user-preferences.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/js/extension/user-preferences.js b/js/extension/user-preferences.js index 7b83620c..fd13b4ae 100644 --- a/js/extension/user-preferences.js +++ b/js/extension/user-preferences.js @@ -1044,13 +1044,13 @@ appendFragment([resourceLibrary]) elems.push(releaseScanner); - let releaseScannerArtist = document.createElement('script'); + let releaseScannerArtistLabel = document.createElement('script'); - releaseScannerArtist.type = 'text/javascript'; - releaseScannerArtist.src = chrome.runtime.getURL('js/extension/features/release-scanner-artist.js'); - releaseScannerArtist.className = 'de-init'; + releaseScannerArtistLabel.type = 'text/javascript'; + releaseScannerArtistLabel.src = chrome.runtime.getURL('js/extension/features/release-scanner-artist-label.js'); + releaseScannerArtistLabel.className = 'de-init'; - elems.push(releaseScannerArtist); + elems.push(releaseScannerArtistLabel); } if (prefs.removeFromWantlist) { From cbf4e3fe978b30f0948356aed5eb423342ce7fd4 Mon Sep 17 00:00:00 2001 From: Matthew Salcido Date: Wed, 31 Jan 2024 19:12:54 -0800 Subject: [PATCH 8/9] Version bump to 3.6.8 --- manifest.json | 2 +- package-lock.json | 2 +- package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/manifest.json b/manifest.json index 102b41c7..af2ca9bd 100644 --- a/manifest.json +++ b/manifest.json @@ -3,7 +3,7 @@ "name": "Discogs Enhancer", "short_name": "Discogs Enhancer", "description": "Adds a dark theme, block sellers, price comparisons, currency converter, configurable quick search, & more to Discogs!", - "version": "3.6.7", + "version": "3.6.8", "author": "Matthew Salcido", "homepage_url": "https://www.discogs-enhancer.com", "action": { diff --git a/package-lock.json b/package-lock.json index 91b141c3..2b5378bf 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "discogs-enhancer", - "version": "3.6.7", + "version": "3.6.8", "lockfileVersion": 2, "requires": true, "packages": { diff --git a/package.json b/package.json index 5fefabd6..33054568 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "discogs-enhancer", - "version": "3.6.7", + "version": "3.6.8", "description": "A Chrome extension that adds useful functionality to Discogs.com! https://www.discogs-enhancer.com", "main": "index.js", "scripts": { From 93621b82707d9181c4d7eb8bde255035d6b539d1 Mon Sep 17 00:00:00 2001 From: Matthew Salcido Date: Wed, 31 Jan 2024 19:12:57 -0800 Subject: [PATCH 9/9] Update change-log.js --- js/popup/change-log.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/js/popup/change-log.js b/js/popup/change-log.js index 92400cc1..4f191197 100644 --- a/js/popup/change-log.js +++ b/js/popup/change-log.js @@ -3,14 +3,18 @@ module.exports = { { features: [{ name: 'Collection Box Fix', - description: 'Threw together a quick feature that moves the "In Collection" box back to it\'s original location on the Release Page.', + description: 'Threw together a quick feature that moves the "In Collection" and "In Wantlist" boxes back to their original locations on the Release Page.', link: '#collectionBoxFix', }], removedFeatures: [], updates: [ { - name: 'Enhancement', - description: 'Release Scanner has been updated to work with the new Artist Page. Let me know if you find any issues with it.' + name: 'Update', + description: 'Dashboard Link has been renamed to Original Dashboard Link' + }, + { + name: 'Update', + description: 'Release Scanner has been updated to work with the new Artist and Label Pages. Let me know if you find any issues with it.' }, ], thanks: ['Massive thank you to Thomas L. and Noah S. for the kind donations!'],