Firefox 浏览器附加组件
  • 扩展
  • 主题
    • 适用于 Firefox
    • 字典和语言包
    • 其他浏览器网站
    • 适用于 Android 的附加组件
登录
附加组件图标

Kandilli Earthquake Highlight 版本历史 - 2 个版本

Kandilli Earthquake Highlight 作者: emrearsay.dev

目前尚无评分
0 / 5 星
5
0
4
0
3
0
2
0
1
0
Kandilli Earthquake Highlight 版本历史 - 2 个版本
  • 小心旧版本!显示这些版本是为了测试和参考目的。您应该始终使用附加组件的最新版本。

  • 最新版本

    版本 1.1

    发布于 2025年5月26日 - 10.02 KB
    适用于 firefox 109.0a1 及更高版本
    Safety:
    - 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

    源代码遵循 MIT 许可证 发布

    您需要 Firefox 来使用此扩展
    下载 Firefox 并安装扩展
    下载文件
  • 较早版本

    版本 1.0

    发布于 2025年5月22日 - 8.61 KB
    适用于 firefox 109.0a1 及更高版本
    Security 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.

    源代码遵循 MIT 许可证 发布

    下载文件
转至 Mozilla 主页

附加组件

  • 关于
  • Firefox 附加组件博客
  • 扩展工坊
  • 开发者中心
  • 开发者政策
  • 社区博客
  • 论坛
  • 报告缺陷
  • 评价指南

浏览器

  • Desktop
  • Mobile
  • Enterprise

产品

  • Browsers
  • VPN
  • Relay
  • Monitor
  • Pocket
  • Twitter (@firefox)
  • Instagram (Firefox)
  • YouTube (firefoxchannel)
  • 隐私
  • Cookie
  • 法律

除非另有注明,否则本网站上的内容可按知识共享 署名-相同方式共享 3.0 或更新版本使用。