1378d5d92b3fb3905d804ff0e678b5f31d96943c
Major UX improvement: Replaced problematic home return popup on timed sites with an on-demand pause button that appears on user interaction. Changes: - NEW: Pause button appears in bottom-left corner on user interaction - Shows only on timed rotation sites (duration > 0) - Auto-hides after 5 seconds of inactivity - Reuses existing inactivity prompt logic for pause dialog - Pause durations: 15 min, 30 min, 1 hour, 2 hours - Home return popup now ONLY appears on manual sites (duration = 0) - Timed sites use pause button instead (cleaner UX) Implementation details: - Added pause button state/functions to preload.js (outside DOMContentLoaded) - Added pause-dialog.html with time selection UI - Added showPauseDialog() function and IPC handler in main.js - Modified attachView() to send pause-button-visibility based on site duration - Modified HOME RETURN CHECK to skip timed sites (line 3622-3625) - Button creation reuses keyboard icon pattern for consistency This fixes the issue where the home return popup would appear but sites could rotate under it on timed rotation sites. Now users get a clean, on-demand pause control that doesn't interfere with normal browsing.
Languages
Shell
94.1%
JavaScript
4.7%
HTML
0.9%
CSS
0.3%