Greasy Fork is available in English.

Pays d'origine des produits Amazon

userscript pour récupérer et afficher le pays d'origine des produits amazon. initialement développé pour faciliter le boycott du PCC.

< Commentaires sur Pays d'origine des produits Amazon

Avis: Bon - le script fonctionne correctement

§
Posté le: 06/07/2024

It's not working for me at the moment. It displays Amazon as the seller instead of the country.

Your script is soooo useful. I hope it gets updated again.

SidemAuteur
§
Posté le: 07/07/2024

If it shows amazon as the seller it's either sold by amazon or the seller origin data is not made available by amazon.
if you dont think that is the case and it erroneously shows amazon, please provide a product page that can demonstrate that problem.

§
Posté le: 08/07/2024
Édité le: 08/07/2024

Thanks for replying.
Here's an example.

Search listing for chocolate shows most items sold by Amazon: https://www.amazon.com/s?k=chocolate

First item I click on, which shows sold by Amazon: https://www.amazon.com/HERSHEYS-Nuggets-Chocolate-Candy-Assortment/dp/B07PFF8J2P/ref=sr_1_5?sr=8-5
But the country of origin listed is USA.

Second item I clicked on, also showing sold by Amazon: https://www.amazon.com/Ferrero-MCLANE500342642-Rocher-Hazelnut-Chocolate/dp/B0002XO5W4/ref=sr_1_6?sr=8-6
But the country of origin listed is Canada.


I'm currently using the chrome extension `Made Where: Country of Origin for Amazon` which correctly shows the country of origin. Maybe you can look into its javascript and see how they do it. I'm not a programmer, and couldn't figure it out by asking ChatGPT to compare its .js to modify your userscript.

SidemAuteur
§
Posté le: 08/07/2024

I have updated the script to make this additional check. It should work now

§
Posté le: 08/07/2024

Cool stuff. Thanks. The correct flag shows up in the product page.

Poster une réponse

Connectez-vous pour poster une réponse.