Wersijowa historija Kandilli Earthquake Highlight - 2 wersiji
Kandilli Earthquake Highlight wot emrearsay.dev
Wersijowa historija Kandilli Earthquake Highlight - 2 wersiji
Budźće kedźbliwy ze staršimi wersijemi! Tute wersije so za testowanje a referencne zaměry pokazuja.Wy měł přeco najnowšu wersiju přidatka wužiwać.
Najnowša wersija
Wersija 1.1
2025. máj. 26. wozjewjene - 10,02 KBFunguje z firefox 109.0a1 a pozdźišoSafety:
- HTML escaping - Prevents XSS attacks
- Removed debug logs - No console spam
- Error handling - Silent failure in production
- Memory cleanup - Observer disconnects on page unload
Performance:
- Debouncing - Limits how often highlighting runs (250ms)
- Skip re-processing - Uses dataset.highlighted flag
- Smarter observer - Only reacts to significant DOM changes
- Early returns - Exits fast when no work needed
- Efficient parsing - Tries common position first, fallback second
Additional Benefits:
More precise magnitude detection (0.1-9.9 range)
Better decimal place validation
Handles edge cases gracefullyŽórłowy kod je pod licencu Licenca MIT
Firefox sćahnyć a rozšěrjenje wobstaraćTrjebaće Firefox, zo byšće tute rozšěrjenje wužiwałStarše wersije
Wersija 1.0
2025. máj. 22. wozjewjene - 8,61 KBFunguje z firefox 109.0a1 a pozdźišoSecurity Improvements:
-XSS Protection: Added HTML escaping to block malicious data injection.
-Reduced Exposure: Removed debug console logs to avoid leaking sensitive info.
-Robust Errors: Improved error handling with silent fails in production to avoid disrupting users.
Performance Boost:
-Debounced Processing: Added a 250ms delay to reduce unnecessary work.
-Smarter Highlighting: Flags now prevent duplicate processing.
-Optimized DOM Watching: MutationObserver now ignores minor changes.
-Memory Cleanup: Observers disconnect when the page unloads.
-Early Bailout: Skips work when no updates are needed.
Bug Fixes:
-Magnitude Detection: Now accurately picks up earthquake values.
-Flexible Parsing: Tries standard formats first, then falls back to broader searches.
-Strict Validation: Magnitudes are now capped at 0.1–9.9 for realism.
Code Refinements:
-Cleaner Structure: Rewrote for better readability and maintenance.
-Sharper Logic: More precise magnitude detection.
-Separation of Concerns: Logic is now better organized.Žórłowy kod je pod licencu Licenca MIT