From 1814c659a27e9599edbd161241683484044081c0 Mon Sep 17 00:00:00 2001 From: Matthew Salcido Date: Tue, 14 Nov 2023 08:24:50 -0800 Subject: [PATCH 1/4] Update collection-box-fix.js --- js/extension/features/collection-box-fix.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/js/extension/features/collection-box-fix.js b/js/extension/features/collection-box-fix.js index 738f2d9c..afaf4bc0 100644 --- a/js/extension/features/collection-box-fix.js +++ b/js/extension/features/collection-box-fix.js @@ -11,19 +11,19 @@ rl.ready(() => { if ( rl.pageIs('release') ) { - rl.waitForElement('div[class*="collection_"]').then(() => { + rl.waitForElement('div[class*="wrapper_"] div[class*="buttons_"]').then(() => { - let inCollection = document.querySelector('div[class*="collection_"]'); + let collectionButtons = document.querySelector('div[class*="wrapper_"] div[class*="buttons_"]'); - if ( inCollection ) { - - let cBox = inCollection.closest('div[class*="side_"'), + let cBox = collectionButtons.closest('div[class*="side_"'), info = document.getElementById('release-actions').closest('div[class*="side_"'); cBox.querySelector('br').remove(); info.insertAdjacentElement('afterend', cBox); - } }); } }); + + +document.querySelectorAll('div[class*="wrapper_"] div[class*="buttons_"]'); From bbd95b7356cfc96bb75052e9e960f148a671ddbc Mon Sep 17 00:00:00 2001 From: Matthew Salcido Date: Tue, 14 Nov 2023 08:25:01 -0800 Subject: [PATCH 2/4] Check for element before running --- .../features/tweak-discriminators-react.js | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/js/extension/features/tweak-discriminators-react.js b/js/extension/features/tweak-discriminators-react.js index 269f2575..b6e95d4a 100644 --- a/js/extension/features/tweak-discriminators-react.js +++ b/js/extension/features/tweak-discriminators-react.js @@ -68,15 +68,19 @@ generateCss(hide, superscript, unselectable, transparent); - document.querySelectorAll('div[class^="main_"] h1 a').forEach(s => { + rl.waitForElement('div[class*="root_"] div[class*="content_"] h1[class*="title_"] span a').then(() => { - let markup = `$1<${elemType} class="de-discriminator">$2`; + document.querySelectorAll('div[class^="main_"] h1 a').forEach(s => { - s.innerHTML = s.textContent.replace(re, markup); + let markup = `$1<${elemType} class="de-discriminator">$2`; - if ( superscript ) { - document.querySelectorAll('.trim-me').forEach(t => { t.textContent = t.textContent.trim(); }); - } + s.innerHTML = s.textContent.replace(re, markup); + + if ( superscript ) { + document.querySelectorAll('.trim-me').forEach(t => { t.textContent = t.textContent.trim(); }); + } + + }); }); } From 0de62fc5a670e6cd60ceaee2e372c8d7fa7ced15 Mon Sep 17 00:00:00 2001 From: Matthew Salcido Date: Tue, 14 Nov 2023 08:25:14 -0800 Subject: [PATCH 3/4] version bump to 3.6.1 --- 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 b3c619d4..b1c5182c 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.0", + "version": "3.6.1", "author": "Matthew Salcido", "homepage_url": "https://www.discogs-enhancer.com", "action": { diff --git a/package-lock.json b/package-lock.json index 992bb219..6ffba88e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "discogs-enhancer", - "version": "3.6.0", + "version": "3.6.1", "lockfileVersion": 2, "requires": true, "packages": { diff --git a/package.json b/package.json index 326a91fb..6feb5b5e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "discogs-enhancer", - "version": "3.6.0", + "version": "3.6.1", "description": "A Chrome extension that adds useful functionality to Discogs.com! https://www.discogs-enhancer.com", "main": "index.js", "scripts": { From 148e934bfcb9ddf4a418fd889b5d539fb2359641 Mon Sep 17 00:00:00 2001 From: Matthew Salcido Date: Tue, 14 Nov 2023 08:28:56 -0800 Subject: [PATCH 4/4] Update popup.html --- html/popup.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/html/popup.html b/html/popup.html index 527e1a8b..4caf0f43 100644 --- a/html/popup.html +++ b/html/popup.html @@ -103,7 +103,7 @@

👋 Heads up!

Collection Box Fix

-
in collection box release page section
+
in collection wantlist box release page section
@@ -117,7 +117,7 @@

👋 Heads up!

- Moves the In Collection section back to it's original location on the Release Page. + Moves the Collection / Wantlist section back to it's original location on the Release Page.