Greasy Fork is available in English.
Compare Amazon prices across different country sites with a leaner, faster script.
Voici les versions de ce script où le code a été modifié. Voir toutes les versions.
Changelog from Version 3.11 to 4.0 (English)Major Changes in Version 4.0Added Amazon.pl Support: - Introduced Amazon.pl for Poland with its own partner ID, flag image, and currency (PLN).Code Refactoring: - Renamed variables (e.g., from ASIN_REGEX to ASIN_RE, and from amazonSites to sites) for improved clarity and maintainability. - Restructured functions to simplify the execution flow and enhance readability.Performance Enhancements: - Preloaded exchange rates before fetching the base price to speed up currency conversion.UI Improvements: - Redesigned the main container (#amz-checker-container) and header (#amz-checker-header) for a modern look. - Updated the comparison table layout for optimized sorting and a cleaner presentation. - Revamped chart controls for CamelCamelCamel with a dropdown menu and checkboxes to filter price categories.Updated CamelCamelCamel Integration: - Modified the price history chart URL and controls to ensure better responsiveness.General Optimizations: - Various enhancements in event handling and interface responsiveness, r###lting in a leaner and faster script. Changelog de la Version 3.11 à 4.0 (Français)Principaux Changements dans la Version 4.0Prise en charge d’Amazon.pl : - Ajout d’Amazon.pl pour la Pologne avec son propre identifiant partenaire, image de drapeau et devise (PLN).Refonte du Code : - Renommage des variables (par exemple, passage de ASIN_REGEX à ASIN_RE et de amazonSites à sites) pour une meilleure clarté et maintenabilité. - Restructuration globale des fonctions pour simplifier le flux d’exécution et améliorer la lisibilité.Amélioration des Performances : - Préchargement des taux de change avant la récupération du prix de référence afin d'accélérer la conversion monétaire.Améliorations de l’Interface Utilisateur : - Nouvelle conception du conteneur principal (#amz-checker-container) et de l’en-tête (#amz-checker-header) pour un rendu moderne. - Mise à jour de la présentation du tableau comparatif pour un classement optimisé et une présentation plus épurée. - Révision des contrôles du graphique CamelCamelCamel avec un menu déroulant et des cases à cocher pour filtrer les catégories de prix.Mise à jour de l’Intégration CamelCamelCamel : - Adaptation de l’URL des graphiques d’historique des prix et des contrôles associés pour une meilleure réactivité.Optimisations Diverses : - Améliorations générales dans la gestion des événements et la réactivité de l’interface, offrant ainsi un script plus léger et plus rapide.
ASIN_REGEX
ASIN_RE
amazonSites
sites
#amz-checker-container
#amz-checker-header
Version 3.10 ChangelogNew FeaturesAddition of Amazon.co.uk: Expanded coverage to include Amazon.co.uk, enabling price comparisons with the United Kingdom market.AI-Summarized Customer Testimonials Integration: Incorporated concise summaries of customer reviews generated by artificial intelligence, providing better insights into user feedback.UI/UX ImprovementsUnited Kingdom Icon Correction: Replaced the previous icon with Great Britain for a more accurate representation of the United Kingdom.User Interface Enhancement: Optimized the layout and styling of the price comparison table for improved readability and a better user experience.Bug FixesUnited Kingdom Icon: Resolved an issue where the incorrect icon was displayed for Amazon.co.uk.Customer Testimonials Loading: Fixed a bug preventing the correct loading of AI-summarized customer testimonials.Performance ImprovementsLoading Optimization: Enhanced the speed of data retrieval and testimonial loading for a smoother and more responsive experience.Efficient Request Handling: Optimized API requests to reduce response times and minimize the risk of loading failures.Developer NotesDependency Updates: Updated icon links and external resources to ensure compatibility and maintain visual quality.Code Refactoring: Reorganized core components of the script to facilitate the addition of new features and simplify future maintenance.Security Enhancements: Strengthened error handling and data validation mechanisms to ensure the script's stability and reliability.DocumentationUpdated Documentation: Enhanced internal documentation to support easier understanding of the codebase and onboarding for future developers.CompatibilityExtended Amazon Site Support: Added new geographic zones with full support for Amazon.co.uk, thereby broadening the scope of the price comparator.ReferencesIcons: Utilized icons provided by [Icons8](https://icons8.com).APIs: Improved interactions with the Frankfurter API for exchange rates and the summarizer.mon-bnj.workers.dev API for customer testimonial summaries.
## Version 3.0 Changelog### New Features
### UI/UX Improvements
### Bug Fixes
### Performance Improvements
### Developer Notes
---
- Amazon Belgium Integration: Added support for `Amazon.com.be`, enabling price comparisons for Belgium.- Enhanced CamelCamelCamel Loader: Replaced the old GIF with a new spinner loader, providing a smoother, more modern loading animation for the price history chart.
- Spinner Styling: Implemented a custom CSS spinner animation for improved visual feedback while charts are loading.- Extended Country Detection: Improved the logic to seamlessly identify `Amazon.com.be` links and apply the appropriate partner ID.
- Chart Loading Restored: Fixed an issue where the CamelCamelCamel chart would fail to load or display, ensuring consistent price history retrieval.
- Refined Chart Update Logic: Optimized the chart reloading process when switching time periods or toggling pricing options, reducing overhead and improving responsiveness.
- Adjusted the script structure to more easily incorporate additional Amazon domains or new features.- Minor refactoring of event listeners for better code readability and maintainability.
getPriceFromPage
getPriceFromResponse
getPriceFromDocument(doc)
handleResponse
DOMParser
getDeliveryPriceFromDocument
*?
getPriceFromDocument
Note: