WTR Lab Term Inconsistency Finder

Finds term inconsistencies in WTR Lab chapters using Gemini AI. Supports multiple API keys with smart rotation, dynamic model fetching, and background processing.

这些是此脚本的所有版本。 只显示代码变更过的版本。

  • v5.3.6 2025-11-11 Imported from URL
  • v5.3.6 2025-11-11

    [5.3.6] - 2025-11-10

    ✨ Added

    • WTR Lab Term Replacer Integration Mode Switcher: Automatically detects if the external Term Replacer userscript is active, switching between "Apply" and "Copy" modes accordingly. Provides clear user messaging.
    • Advanced API Key Rotation System: Implemented a state-managed key pool (AVAILABLE, ON_COOLDOWN, EXHAUSTED, INVALID) with persistent localStorage state. Features context-aware cooldowns, automatic recovery, and intelligent key selection to improve reliability and handle API limits gracefully.

    ♻️ Changed

    • Gemini Prompt Refinement: Updated the system prompt to ignore non-user-actionable numbering discrepancies from the WTR Lab site templates.
    • Finder Tab Layout Stability: Ensured the main UI structure remains static during result updates, preventing layout shifts.
    • UI Stacking Order: Adjusted z-index to ensure the Finder panel appears above the site's bottom navigator.
    • UI Header Cleanup: Removed the version number from the panel header for a cleaner look.

    🐛 Fixed

    • Status Widget Collision: Refined positioning logic to prevent jitter and overlap with other status widgets, correctly ignoring the site's bottom navigator for vertical placement.
    • Dynamic Apply/Copy Behavior: Centralized button mode handling to ensure all action buttons correctly sync with the Term Replacer's detection state, preventing incorrect actions.
    • Smart Quotes Safety: Reworked smart quote replacement to be more conservative and context-aware, preventing malformed transformations.
    • API Backoff Logic: Enhanced API calls with exponential backoff for retriable errors, preventing tight retry loops.
    • Semantic Duplicate Merging: Hardened merging logic with script-aware checks (e.g., Latin/CJK) to prevent improper merges of unrelated terms.
    • Critical API Key Rotation Bug: Fixed a major issue where the script was stuck using only the first API key. The new state management system resolves this completely.
    • Status Widget UX: Shortened verbose status messages to improve readability and prevent UI overflow.

    [5.3.5] - 2025-11-10

    ✨ Added

    • Multi-Build System: Implemented a webpack multi-target build system for performance, GreasyFork, and development outputs.
    • Enhanced Development Workflow: Integrated Prettier, ESLint, and Stylelint for a complete auto-formatting and auto-fixing pipeline.

    ♻️ Changed

    • Build Process: Updated npm run build to include automated linting and fixing.
    • CSS Processing: Configured webpack with proper loaders to handle CSS @import and processing.

    🐛 Fixed

    • CSS Linting Errors: Resolved various selector ordering and duplicate issues.
    • Userscript Validation: Fixed a webpack header validation issue caused by a conflicting homepage field in package.json.
    • Build Failures: Corrected issues related to CSS processing and userscript metadata validation.

    ⚙️ Internal

    • Webpack Configuration: Enhanced multi-target webpack config for all build types.
    • Version Management: Improved version synchronization across build artifacts.
    • Optimized Build Artifacts: Tailored outputs for performance (93.5 KiB), GreasyFork (159 KiB), and development (159 KiB).

    [5.3.3] - 2025-11-07

    ✨ Added

    • Smart Quotes Replacement: Implemented a pre-processing step to standardize quotes before term analysis.
    • Active Chapter Skipping: The script now avoids processing chapters currently being edited to prevent conflicts.

    🐛 Fixed

    • Status Indicator Positioning: Adjusted CSS to avoid collision with other status widgets on the page.

    [5.3.2] - 2025-11-06

    🐛 Fixed

    • Quote Handling False Positives: Enhanced the AI prompt to correctly ignore differences in quote styles (e.g., straight vs. smart quotes).
    • Configuration Bug: Fixed an issue where the "Auto-restore saved results" setting would not save correctly when disabled.
    • UI Conflict: Resolved a z-index conflict with the site's bottom navigation bar.

    [5.3.1] - 2025-11-06

    ✨ Added

    • Complete refactoring to a modern ES6 modular architecture.
    • Multi-API Key Support with rotation and cooldowns.
    • Deep Analysis feature with multiple iterations.
    • Session Persistence for saving and restoring results.
    • Advanced Filtering and an enhanced, responsive UI.
    • Seamless integration with the Term Replacer userscript.
    • GitHub Actions for automated CI builds.

    ♻️ Changed

    • Migrated the build system to webpack-userscript.
    • Reorganized the codebase into focused modules (api, state, ui, utils).
    • Improved error handling with exponential backoff.

    🐛 Fixed

    • Addressed various bugs related to session restoration, memory leaks, API rate limiting, and UI responsiveness.

    [5.2.0] - 2025-10-XX (Legacy)

    ✨ Added

    • Initial AI-powered inconsistency detection.
    • Priority-based result filtering.

    [5.1.0] - 2025-09-XX (Legacy)

    ✨ Added

    • Initial integration with the Gemini AI.
    • Basic chapter data extraction and results display.
  • v5.3.6 2025-11-11 Imported from URL
  • v5.3.6 2025-11-11 Imported from URL
  • v5.3.3-greasyfork 2025-11-07 Imported from URL
  • v5.3.2-greasyfork 2025-11-07 Imported from URL
  • v5.3.2-greasyfork 2025-11-07 Imported from URL
  • v5.3.1-greasyfork 2025-11-06 Imported from URL
  • v5.3.1 2025-11-06