Discogs - Sort by Total Price in Marketplace

Sort by the italicized 'total' price on a Discogs release page instead of pre-shipping price

< Commentaires sur Discogs - Sort by Total Price in Marketplace

Avis: Bon - le script fonctionne correctement

§
Posté le: 2023-06-28

Absolutely amazing! Thank you so much!

Just curious though, what's the purpose of this line:

const weight = row.querySelector(".item_add_to_cart .button") || !ascending ? 0 : 9999999;
JonUleisAuteur
§
Posté le: 2023-09-10

Hey, just saw this comment now. Thank you! That line "weighs" down any items without a cart button (unavailable to you) to the bottom of the sort order, if you're sorting by ascending price.

Poster une réponse

Connectez-vous pour poster une réponse.