WTR-Lab Reader & UI Enhancer

Enhance your WTR-Lab reading experience with customizable reader width, navigation panel controls, and font styling options. Create the perfect reading environment on wtr-lab.com with this powerful userscript.

這裡只顯示彼此間有代碼差異的版本。 顯示所有版本。

  • v3.5.1 2025-11-06 Imported from URL
  • v3.5.1 2025-11-06 Imported from URL
  • v3.5 2025-11-02

    [3.5.0] - 2025-11-02

    Added

    • Modern CSS Architecture: Implemented CSS Custom Properties (variables) for enhanced maintainability and dynamic theming support
    • CSS Container Queries: Responsive design that adapts to container sizes rather than viewport for more precise layout control
    • Enhanced Accessibility Features:
      • WCAG 2.2/2.3 compliance improvements
      • Enhanced keyboard navigation and focus management
      • Improved contrast ratios and visual indicators
      • Screen reader optimization with proper ARIA labels
      • Focus-visible states for better keyboard user experience
    • Performance Optimizations:
      • Reduced CSS complexity and improved rendering performance
      • Optimized font loading strategies
      • Enhanced script efficiency and memory usage
    • Progressive Enhancement: Graceful degradation for older browsers while leveraging modern features when available
    • Improved Debug Logging: Enhanced troubleshooting capabilities with structured logging for better issue diagnosis

    Changed

    • CSS Architecture: Migrated from traditional CSS to modern Custom Properties-based architecture
    • Responsive Design: Improved container-based responsive behavior using CSS Container Queries
    • Accessibility Standards: Enhanced all interactive elements to meet modern accessibility guidelines
    • Performance: Optimized styling calculations and reduced computational overhead

    Fixed

    • Focus Management: Improved keyboard navigation and focus indicators across all interactive elements
    • Responsive Behavior: Fixed layout issues on various screen sizes through container-based responsive design
    • Font Loading: Enhanced font loading performance and error handling
    • Theme Adaptation: Improved theme switching behavior for better light/dark mode compatibility

    Technical Improvements

    • Code Maintainability: Restructured CSS with custom properties for easier theme management
    • Browser Compatibility: Implemented progressive enhancement for broader browser support
    • Performance: Optimized DOM queries and CSS application processes
    • Debugging: Enhanced logging system for better development and troubleshooting experience

    Security

    • Data Handling: Improved security in local storage operations and data validation
  • v3.4 2025-10-29

    Changelog

    • v3.4
      • ♻️ Simplified Font Loading: Removed the experimental font caching system to improve reliability. Fonts now load directly from Google Fonts, ensuring consistent performance.
    • v3.3
      • 🐛 Bug Squashing: Fixed an issue with the font caching feature and corrected the settings panel layout to prevent it from becoming too tall on some screens.
    • v3.2
      • Panel Overhaul: Reorganized the settings panel into logical sections for a more intuitive experience. Also fixed missing icons for the 'TTS' and 'List' toggles.
    • v3.1
      • 🆕 Declutter Your UI: Added new options in the settings panel to hide individual buttons from the toolbar above the chapter content.
  • v3.0 2025-10-29

    Changelog

    • v3.0
      • UI Overhaul: The settings panel now automatically matches the website's light and dark themes for a native look and feel.
      • New Feature: Added an option to block the floating "Add Term" button for a cleaner reading experience.
      • 🔧 Code Refinement: Restructured the code to support the new features and improve maintainability.
  • v2.9 2025-10-26

    Changelog

    • v2.9
      • Fix: Resolved a conflict where the script would interfere with the website's native font selection controls.
      • Fix: The script now only removes its own injected <style> and <link> elements when the custom font feature is disabled, leaving the site's original stylesheets intact.
      • Enhancement: Improved compatibility by assigning unique IDs to generated elements for more precise control.
    • v2.8
      • Feature: Added an opt-in checkbox ("Enable Custom Font Style") to control whether the script overrides the site's font. This is disabled by default to prevent unexpected changes on installation.
      • Feature: Updated the font dropdown to prioritize a curated list of 10 recommended fonts for reading, separated into Serif and Sans-serif groups.
      • Enhancement: Retained the ability to fetch all other fonts from the API, which are now listed in a separate "All Other Fonts" group.
      • UI: The font selection dropdown and its related buttons are now disabled when the custom font feature is turned off.
  • v2.7 2025-10-26

    Changelog

    v2.7 (Latest)

    • UI Fix: Fixed a CSS alignment issue where the "Refresh" and "Reset" buttons for the font selection could wrap to a new line on smaller panel widths. They are now permanently aligned to the right of the dropdown.

    v2.6

    • Feature Correction: Re-implemented the navigator background feature to work as intended. It is now correctly named "Constrain Navigator Background."
    • Dynamic Margins: The constrain feature now dynamically calculates margin-left and margin-right to trim the navigator's background perfectly to its content width.
    • Responsiveness: The navigator constraint is now fully responsive and automatically recalculates on window resize.

    v2.5

    • UI Improvement: Simplified the font selection groups by removing the "Top 10 Popular" category, focusing the choices on reading-centric fonts.
    • Feature Addition: Added the initial implementation for the navigator background control.
    • UI Fix: Addressed a minor layout issue with the font control buttons.

    v2.4

    • Feature Enhancement: Organized the font selection dropdown into categorized groups (<optgroup>) for a much-improved user experience. Fonts are now grouped into "Top 10 for Reading (Serif)" and "All Other Fonts."

    v2.3

    • Refinement: Removed the non-public "Bookerly" font to avoid errors and confusion.
    • Refinement: Set "Merriweather" as the new, excellent default font for reading.
    • Code Cleanup: Simplified the font-loading logic.

    v2.2

    • Bug Fix: Resolved a critical CORS error by replacing fetch with GM_xmlhttpRequest for API calls, allowing the script to correctly load the font list.
    • Bug Fix: Fixed an issue that caused Google Fonts to fail loading due to incorrect URL formatting.
    • Feature Addition: Added a "Refresh Fonts" button to the panel to manually update the font list.
    • Robustness: Implemented a font validation system that reverts to the default font if a user's saved font is no longer available.

    v2.1

    • Major Feature: Introduced the dynamic font selection system.
    • Integration: Added integration with the google-webfonts-helper public API to fetch a list of Google Fonts without needing an API key.
    • UI Addition: Added the font style dropdown, reset, and refresh controls to the settings panel.
  • v2.1 2025-10-23

    Changelog

    v2.1

    • Bug Fix: The +, -, and Reset buttons in the panel now correctly update the input field's displayed value.
    • UI Improvement: Resized the control buttons for a cleaner look and made the input field responsive to fill available space.
    • Mobile Compatibility: The settings panel now automatically adjusts its layout on smaller screens to ensure all controls remain accessible and easy to use.

    v2.0

    • Major Overhaul: Replaced the multiple Tampermonkey menu commands with a single Configure Settings command that opens a unified UI panel.
    • New Feature: Added controls to adjust the width of the bottom navigation bar independently from the reader content.
    • New Feature: Implemented a Toggle Debug Logging command for easier troubleshooting.
    • Code Refactor: Restructured the script to be more scalable and maintainable for future enhancements.
  • v1.2 2025-10-21
  • v1.1 2025-10-17