Erome Enhancer (alpha)

Enhanced Erome browsing: Sort albums by views/videos/duration, filter by content type & duration, infinite scroll with auto-load, like counts display, hide watched albums, duration badges, deleted album display, and more!

Đây là phiên bản của script này, nơi mã nguồn đã được cập nhật. Hiện tất cả các phiên bản.

  • v3.2 14-11-2025

    Version 3.2 — Code Optimization Release

    🔧 Internal Improvements (No Visual Changes)

    Code Refactoring

    • Reduced total line count from ~1550 → ~950 lines (38% reduction)
    • Consolidated all CSS into a single injection at page load
    • Added a centralized SELECTORS object for all DOM queries
    • Unified extraction logic using a new extractMetric() wrapper
    • Merged sortAlbums() + resetAlbums()sortOrResetAlbums()
    • Merged markAsViewed() + markAsDeleted()createOverlay()
    • Simplified button creation via array-based generation loop
    • Minified modal HTML into a single-line string
    • Added optional chaining (?.) throughout for safer null checks
    • Replaced verbose conditionals with ternary operators where appropriate

    Performance Enhancements

    • CSS now injected once, instead of inline on every element
    • Reduced DOM manipulation overhead
    • More efficient selector usage
    • Improved memory management

    Code Organization

    • Grouped functions by purpose
    • Removed duplicated logic
    • Clearer and more maintainable function structure
    • Cleaner and more consistent function signatures
  • v3.1.1 14-11-2025
  • v3.1 14-11-2025
  • v3.0 11-11-2025