✨ New Features:
- Popup now positioned in top-right corner (not center)
- Permanent floating control panel with 3 buttons
- Control panel shows selected count
- Buttons: Download Selected, Download ALL, Clear Selection
- Clicking buttons triggers downloads from within the page
- Progress panel appears OVER control panel during downloads
- After download completes, returns to control panel
🎯 User Experience:
- No need to open extension popup anymore
- All controls directly on the page
- Real-time progress tracking
- Cleaner workflow
📱 UI:
- Purple gradient design
- Responsive button layout
- Progress bar with percentage
- Auto-hide progress, show controls
🔍 Now logs ALL messages received from popup.js:
- Logs when any message is received (with action type)
- Logs showProgress messages specifically
- Logs getSelectedMangas requests
- Logs getImageUrls requests
- Logs extractAllMangas requests
- Logs hideProgress requests
This will tell us if popup.js is actually sending messages to content script
🔍 Debug logging added:
- Log every updateProgress() call with parameters
- Check if popup exists before updating
- Log percentage calculations
- Verify all DOM elements are found
- Log each element update (title, count, percent, status, bar)
- Force popup visibility with display: block and opacity: 1
- Log popup position on screen
This will help identify exactly where the popup is failing
🎨 Popup improvements:
- Changed to inline styles (no cssText) for better compatibility
- Set display: block by default (always visible)
- Increased z-index to 999999 (maximum priority)
- Better styling with backdrop filter
- Added comprehensive console logging for debugging
- Popup now shows immediately when created
Debugging:
- Added logs for popup creation, DOM insertion, and element access
- Better error tracking for popup visibility issues
✨ Improvements:
- Enhanced page detection to support 'X pages' pattern
- Added comprehensive logging for debugging
- Implemented floating progress popup on page
- Added show/hide progress message handlers
- Better error handling and logging for image extraction
- Fixed popup to display real-time progress
🐛 Fixed:
- Page detection now works for both 'Showing X of Y images' and 'X pages' patterns
- Downloads should now work correctly with proper page iteration
- Added visible feedback via floating popup
🔍 Debugging:
- Added console logs for page detection
- Logs show total pages found and images extracted
- Each page is logged during processing
- Added mangaMetadata Map to store full manga objects with title, token, url, baseUrl
- Modified getSelectedMangas to return full manga objects instead of just IDs
- Fixed substring error when downloading selected manga
- Enhanced checkbox creation to save metadata during initialization
- Improved logging for selection/deselection events
Resolves: Error: Cannot read properties of undefined (reading 'substring')