Skip to content

Commit

Permalink
Merge pull request #289 from salcido/quick-search-fix
Browse files Browse the repository at this point in the history
Quick Search Fixes
  • Loading branch information
salcido authored Nov 6, 2024
2 parents 0841c48 + 344596e commit 4bd6fe5
Show file tree
Hide file tree
Showing 20 changed files with 67 additions and 735 deletions.
28 changes: 28 additions & 0 deletions css/dark-theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6258,7 +6258,35 @@
color: var(--text-muted) !important;
}

figure[class*="card_"] {
border-color: var(--borders) !important;
box-shadow: 0 4px 8px -2px var(--box-shadow-light);
}
figcaption {
div[class*="_concatenatedLinks"] span a {
color: var(--text-muted) !important;
}
div[class*="_released"] span {
color: var(--text-muted) !important;
}
div[class*="_format"] {
border-top: 1px solid var(--borders) !important;
}
div[class*="_format"] svg path {
fill: var(--text-muted) !important;
}
}

div[class*="searchBarContainer_"] {
border: none !important;
background: none !important;
}

[class*="searchInputContainer_"] {
[class*="_button"] {
background: var(--filter-chip) !important;
}
}

[class*="collectionListContainer_"] {
[class*="searchContainer_"] {
Expand Down
15 changes: 2 additions & 13 deletions html/learn.html
Original file line number Diff line number Diff line change
Expand Up @@ -311,12 +311,6 @@ <h2 id="editingNotepad">Editing Notepad</h2>
<p>This feaure was developed by <a href="https://github.com/ToastyMallows" target="_blank">ToastyMallows</a>!</p>
</div>

<div class="feature-block">
<h2 id="everlastingCollection">Everlasting Collection</h2>

<p>The Everlasting Collection feature enables seamless scrolling through your Collection without the need to click 'Prev' or 'Next' buttons, as long as you are using the 'Text With Covers' or 'Text Only' layouts. This allows for a more convenient and continuous browsing experience.</p>
</div>

<div class="feature-block">
<h2 id="everlastingMarketplace">Everlasting Marketplace</h2>

Expand Down Expand Up @@ -465,12 +459,6 @@ <h2 id="hideColumns">Hide Min, Median, Max Columns</h2>
<p>This hides the Min, Median, Max columns in the collection page. Helpful if you'd like more space when viewing your collection.</p>
</div>

<!-- Improved Collection UI -->
<div class="feature-block">
<h2 id="improvedUi">Improved Collection UI</h2>
<p>This makes the Collection page a little more organized by moving some links around and colorizing the Move Selected and Remove Selected buttons.</p>
</div>

<!-- Inventory Ratings -->
<div class="feature-block">
<h2 id="inventory-ratings">Inventory Ratings</h2>
Expand Down Expand Up @@ -579,7 +567,7 @@ <h3>Artists</h3>
<p>Any release link, thumbnail, or list.</p>

<h3>Collection</h3>
<p>Any release link or thumbnail.</p>
<p>Any release text link.</p>

<h3>Dashboard</h3>
<p>Any link inside a dashboard module.</p>
Expand Down Expand Up @@ -949,6 +937,7 @@ <h2 id="thanks">Thank You</h2>
<li class="donor">Andy G.</li>
<li class="donor">Archibald P.</li>
<li class="donor">Arturo S. <span style="color: #fff;">&#9733;</span></li>
<li class="donor">Bart</li>
<li class="donor">Bob P.</li>
<li class="donor">Borys S. <span style="color: #fff;">&#9733;</span></li>
<li class="donor">Brad S.</li>
Expand Down
49 changes: 0 additions & 49 deletions html/popup.html
Original file line number Diff line number Diff line change
Expand Up @@ -311,31 +311,6 @@ <h2>&#x1F44B; Heads up!</h2>
</div> <!-- /.help -->
</div>

<!-- Everlasting Collection -->
<div class="toggle-group">
<p class="label">Everlasting Collection</p>
<div class="meta hide">Everlasting Collection Neverending Scroll Forever</div>

<div class="onoffswitch">
<input type="checkbox" name="onoffswitch" class="onoffswitch-checkbox" id="toggleEverlastingCollection" checked>
<label class="onoffswitch-label" for="toggleEverlastingCollection">
<span class="onoffswitch-inner"></span>
<span class="onoffswitch-switch"></span>
</label>
</div>

<div class="help everlastingCollection">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-help-circle" color="#384047"><circle cx="12" cy="12" r="10"></circle><path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"></path><line x1="12" y1="17" x2="12" y2="17"></line></svg>
<div class="help-bubble">
<div class="help-text">
Lets you continously scroll in your Collection without having to click "Prev" or "Next" as long as you are using the "Text With Covers" or "Text Only" layouts.
<span class="learn-more"></span>
</div>
<div class="arrow-right stroke"></div><div class="arrow-right"></div>
</div>
</div> <!-- /.help -->
</div>

<!-- Everlasting Marketplace -->
<div class="toggle-group">
<p class="label">Everlasting Marketplace</p>
Expand Down Expand Up @@ -674,30 +649,6 @@ <h2>&#x1F44B; Heads up!</h2>
</div> <!-- /.help -->
</div>

<!-- Improved Collection UI -->
<div class="toggle-group">
<p class="label">Improved Collection UI</p>
<div class="meta hide">Improved Collection UI User Interface</div>

<div class="onoffswitch">
<input type="checkbox" name="onoffswitch" class="onoffswitch-checkbox" id="toggleCollectionUi" checked>
<label class="onoffswitch-label" for="toggleCollectionUi">
<span class="onoffswitch-inner"></span>
<span class="onoffswitch-switch"></span>
</label>
</div>

<div class="help improvedUi">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-help-circle" color="#384047"><circle cx="12" cy="12" r="10"></circle><path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"></path><line x1="12" y1="17" x2="12" y2="17"></line></svg>
<div class="help-bubble">
<div class="help-text">
Rearranges some of the links in the Collection page. Also colorizes the Move and Remove buttons.
</div>
<div class="arrow-right stroke"></div><div class="arrow-right"></div>
</div>
</div> <!-- /.help -->
</div>

<!-- Inventory Ratings -->
<div class="toggle-group inventory has-options">
<p class="label" title="Click to display options">
Expand Down
17 changes: 10 additions & 7 deletions js/extension/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,13 @@ let prefs = {
blockSellers: true,
confirmBeforeRemoving: false,
collectionBoxFix: false,
collectionUi: false,
compactArtist: false,
converter: true,
darkTheme: false,
darkThemeVariant: '',
darkThemeSystemPref: false,
demandIndex: false,
editingNotepad: false,
everlastingCollection: false,
everlastingMarket: true,
favoriteSellers: true,
feedback: true,
Expand Down Expand Up @@ -293,7 +291,7 @@ chrome.contextMenus.onClicked.addListener((event) => {
break;

case 'clone':
path = 'https://clone.nl/search/?instock=1&query=';
path = 'https://clone.nl/all/search?query=';
break;

case 'decks':
Expand Down Expand Up @@ -321,7 +319,7 @@ chrome.contextMenus.onClicked.addListener((event) => {
break;

case 'hardwax':
path = 'https://hardwax.com/?search=';
path = 'https://hardwax.com/?find=';
break;

case 'juno':
Expand Down Expand Up @@ -355,16 +353,16 @@ chrome.contextMenus.onClicked.addListener((event) => {
break;

case 'rubadub':
path = 'https://rubadub.co.uk/search?type=product&options%5Bunavailable_products%5D=last&options%5Bprefix%5D=none&q=';
suffix = '*';
path = 'https://rubadub.co.uk/search?q=';
break;

case 'rushhour':
path = 'http://www.rushhour.nl/search?sort_by=&query=';
break;

case 'sotu':
path = 'https://soundsoftheuniverse.com/search/?q=';
path = 'https://soundsoftheuniverse.com/search/';
suffix = '/';
break;

case 'soundcloud':
Expand Down Expand Up @@ -392,9 +390,14 @@ chrome.contextMenus.onClicked.addListener((event) => {
encodeStr = str.replace(/ /g, '+');
}

if ( path.includes('sotu') ) {
encodeStr = str.replace(/ /g, '+');
}

if ( path.includes('juno') ) {
encodeStr = str.replace('–', '');
}


chrome.tabs.create({ url: path + encodeStr + suffix });
});
56 changes: 0 additions & 56 deletions js/extension/features/better-collection-ui.js

This file was deleted.

Loading

0 comments on commit 4bd6fe5

Please sign in to comment.