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 License 條款釋出

    必須使用 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 License 條款釋出

    下載檔案
前往 Mozilla 官網

附加元件

  • 關於
  • Firefox 附加元件部落格
  • 擴充套件工作坊
  • 開發者交流中心
  • 開發者政策
  • 社群部落格
  • 討論區
  • 回報 Bug
  • 評論撰寫指南

瀏覽器

  • Desktop
  • Mobile
  • Enterprise

產品

  • Browsers
  • VPN
  • Relay
  • Monitor
  • Pocket
  • Twitter (@firefox)
  • Instagram (Firefox)
  • YouTube (firefoxchannel)
  • 隱私權
  • Cookie
  • 法律資訊

除另有註明外,本站內容皆採用創用 CC 姓名標示—相同方式分享條款 3.0 或更新版本授權大眾使用。