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

+
+
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

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 // ------------------------------------------------------ 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) { 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!'], 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": {